summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/platform_android.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-01-25 11:54:01 -0600
committerMauro Rossi <issor.oruam@gmail.com>2016-11-01 20:41:59 +0100
commit2cc39b5d1a50de695d53511d97fa848ded341e32 (patch)
tree1c0c006ef05604b4cb5cd28f48670f1ac140474d /src/egl/drivers/dri2/platform_android.c
parent10493d443283f84b63a91be48ed0d913d3a9b7a5 (diff)
downloadexternal_mesa3d-2cc39b5d1a50de695d53511d97fa848ded341e32.zip
external_mesa3d-2cc39b5d1a50de695d53511d97fa848ded341e32.tar.gz
external_mesa3d-2cc39b5d1a50de695d53511d97fa848ded341e32.tar.bz2
egl/android: fix missing gralloc_drm_get_gem_handle dependency
gralloc_drm_get_gem_handle has been removed from AOSP drm_gralloc. Remove the dependency on it and just access the struct gralloc_drm_handle_t directly. Maybe there's a better way than accessing the gralloc private data. Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
-rw-r--r--src/egl/drivers/dri2/platform_android.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index cf60f1d..2d8d7df 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -40,6 +40,7 @@
#include "egl_dri2.h"
#include "egl_dri2_fallbacks.h"
#include "gralloc_drm.h"
+#include "gralloc_drm_handle.h"
#define ALIGN(val, align) (((val) + (align) - 1) & ~((align) - 1))
@@ -116,7 +117,8 @@ get_native_buffer_fd(struct ANativeWindowBuffer *buf)
static int
get_native_buffer_name(struct ANativeWindowBuffer *buf)
{
- return gralloc_drm_get_gem_handle(buf->handle);
+ struct gralloc_drm_handle_t *handle = gralloc_drm_handle(buf->handle);
+ return (handle) ? handle->name : 0;
}
static EGLBoolean