summaryrefslogtreecommitdiff
path: root/src/egl/drivers/dri2/platform_android.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
-rw-r--r--src/egl/drivers/dri2/platform_android.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index 7ede48de69c..3432f18b047 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -41,6 +41,7 @@
#include <radeon_drm.h>
#include "egl_dri2.h"
+#include "gralloc_drm.h"
static int
get_format_bpp(int native)
@@ -72,12 +73,7 @@ get_format_bpp(int native)
static int
get_native_buffer_name(struct ANativeWindowBuffer *buf)
{
- struct gralloc_drm_handle_t *handle;
-
- /* check that the buffer is allocated by drm_gralloc and cast */
- handle = gralloc_drm_handle(buf->handle);
-
- return (handle) ? handle->name : 0;
+ return gralloc_drm_get_gem_handle(buf->handle);
}
static EGLBoolean