summaryrefslogtreecommitdiffstats
path: root/gralloc.c
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2013-04-15 09:10:09 +0300
committerTapani Pälli <tapani.palli@intel.com>2013-04-15 13:25:55 +0300
commitb201e98a1cbdf217e52da2cf503beb3b21c2e173 (patch)
treeae9d8f127a660fa22d3ef52c3413e3c47e919ea8 /gralloc.c
parent4b3db54505933738ec33f92ec7e2c5304cb18325 (diff)
downloadexternal_drm_gralloc-b201e98a1cbdf217e52da2cf503beb3b21c2e173.zip
external_drm_gralloc-b201e98a1cbdf217e52da2cf503beb3b21c2e173.tar.gz
external_drm_gralloc-b201e98a1cbdf217e52da2cf503beb3b21c2e173.tar.bz2
gralloc: plane support
patch introduces API between hwcomposer and gralloc, hwcomposer can reserve an overlay plane to be used by a particular layer in prepare hook, drmModeSetPlane for each plane gets called later when post() gets called by the eglSwapBuffers (from hwcomposer set), this can be later changed to use atomic modesetting code and drm properties to make one 'atomic flip' for graphics + planes. Change-Id: I3b7d179b285e43eb19fdc3b4c7ce093f3ba6aade Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'gralloc.c')
-rw-r--r--gralloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gralloc.c b/gralloc.c
index 44dc248..873945d 100644
--- a/gralloc.c
+++ b/gralloc.c
@@ -352,6 +352,9 @@ struct drm_module_t HAL_MODULE_INFO_SYM = {
.unlock = drm_mod_unlock,
.perform = drm_mod_perform
},
+ .hwc_reserve_plane = gralloc_drm_reserve_plane,
+ .hwc_disable_planes = gralloc_drm_disable_planes,
+
.mutex = PTHREAD_MUTEX_INITIALIZER,
.drm = NULL
};