summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.h
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2013-01-21 14:58:33 +0200
committerTapani Pälli <tapani.palli@intel.com>2013-01-21 14:59:04 +0200
commit73e275e7be13df5c74e26510dcb9d9c0cc24981e (patch)
tree99774bfc9dfec1f413b319d0c98220680780bb89 /gralloc_drm.h
parenta8f0334ef5706875f2c73a2690a2f1fc3e5fee27 (diff)
downloadexternal_drm_gralloc-73e275e7be13df5c74e26510dcb9d9c0cc24981e.zip
external_drm_gralloc-73e275e7be13df5c74e26510dcb9d9c0cc24981e.tar.gz
external_drm_gralloc-73e275e7be13df5c74e26510dcb9d9c0cc24981e.tar.bz2
gralloc: set supported planes for buffers on allocation
This is done so that we should not have to do it dynamically during composition. This information will be used later with hwcomposer module when using planes for composition. Change-Id: I2b6716fe9a8da81050645900c6c0955385946991 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'gralloc_drm.h')
-rw-r--r--gralloc_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gralloc_drm.h b/gralloc_drm.h
index b06e438..8059907 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -122,6 +122,7 @@ struct gralloc_drm_bo_t *gralloc_drm_bo_from_handle(buffer_handle_t handle);
buffer_handle_t gralloc_drm_bo_get_handle(struct gralloc_drm_bo_t *bo, int *stride);
int gralloc_drm_get_gem_handle(buffer_handle_t handle);
void gralloc_drm_resolve_format(buffer_handle_t _handle, uint32_t *pitches, uint32_t *offsets, uint32_t *handles);
+unsigned int planes_for_format(struct gralloc_drm_t *drm, int hal_format);
int gralloc_drm_bo_lock(struct gralloc_drm_bo_t *bo, int x, int y, int w, int h, int enable_write, void **addr);
void gralloc_drm_bo_unlock(struct gralloc_drm_bo_t *bo);