aboutsummaryrefslogtreecommitdiff
path: root/src/drmmode_template/drmmode_template.c
diff options
context:
space:
mode:
authorJavier Martin <javier.martin@arm.com>2013-09-11 15:08:19 +0100
committerGerrit Code Review <gerrit@mpd-gerrit.cambridge.arm.com>2013-09-12 17:58:39 +0100
commit4c57279e75bbdd9a3cb80670a59f97d1edad064b (patch)
treeb2d0af9e312887814c07de0be9b2d448546fdb84 /src/drmmode_template/drmmode_template.c
parentdccb73fa101b914a73fafbe4c447b5c99d53d916 (diff)
Add support for standard HW cursor API.
Some drivers like the exynos support HW cursor using planes whereas others such as the pl111 DRM or the radeon driver use the standard ioctl() call for handling the cursor. This adds a new field for every drmmode driver where they must declare which API they support. Change-Id: I8027982c33f77c45789e0b822710f4d80be23762
Diffstat (limited to 'src/drmmode_template/drmmode_template.c')
-rw-r--r--src/drmmode_template/drmmode_template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_template/drmmode_template.c b/src/drmmode_template/drmmode_template.c
index 237dae5..a42d7fe 100644
--- a/src/drmmode_template/drmmode_template.c
+++ b/src/drmmode_template/drmmode_template.c
@@ -37,7 +37,7 @@
/* Padding added down each side of cursor image */
#define CURSORPAD (0)
-/* Optional function */
+/* Optional function only for HWCURSOR_API_PLANE interface */
static int init_plane_for_cursor(int drm_fd, uint32_t plane_id)
{
return 0;
@@ -62,6 +62,7 @@ struct drmmode_interface template_interface = {
CURSORW /* cursor width */,
CURSORH /* cursor_height */,
CURSORPAD /* cursor padding */,
+ HWCURSOR_API_STANDARD /* cursor_api */,
init_plane_for_cursor /* init_plane_for_cursor */,
set_cursor_image /* set cursor image */,
0 /* vblank_query_supported */,