summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-01-22 10:35:14 -0600
committerChih-Wei Huang <cwhuang@linux.org.tw>2016-03-17 16:10:43 +0800
commitaac8ca7e1bd5b76967ec9e322526bdb1df10e3d7 (patch)
treeaa27f6657f9e6a0e4922c41576e7aa2aef09ef11 /gralloc_drm.h
parent55002c84ee70b0d2447b05e720cb4d85ba0080b3 (diff)
downloadexternal_drm_gralloc-aac8ca7e1bd5b76967ec9e322526bdb1df10e3d7.zip
external_drm_gralloc-aac8ca7e1bd5b76967ec9e322526bdb1df10e3d7.tar.gz
external_drm_gralloc-aac8ca7e1bd5b76967ec9e322526bdb1df10e3d7.tar.bz2
Add gralloc_drm_get_prime_fd function
Mesa EGL needs to retrieve prime fds from gralloc handles. Signed-off-by: Rob Herring <robh@kernel.org>
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 e1a9957..ac0a53d 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -133,6 +133,7 @@ void gralloc_drm_bo_decref(struct gralloc_drm_bo_t *bo);
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_prime_fd(buffer_handle_t _handle);
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);