From 407029591c24edfd75970e8709f68b8e800ff50a Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Thu, 24 Jan 2013 09:56:47 +0200 Subject: android: use gralloc_drm_get_gem_handle api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently a gralloc internal structure is exposed to Mesa, Use a query function instead to maintain ABI compatibility. Signed-off-by: Tapani Pälli Reviewed-by: Chad Versace --- src/gallium/state_trackers/egl/android/native_android.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/egl/android/native_android.cpp b/src/gallium/state_trackers/egl/android/native_android.cpp index 267727d5d99..391decc0e7a 100644 --- a/src/gallium/state_trackers/egl/android/native_android.cpp +++ b/src/gallium/state_trackers/egl/android/native_android.cpp @@ -147,18 +147,12 @@ get_pipe_format(int native) #ifndef ANDROID_BACKEND_NO_DRM -#include +#include static int get_handle_name(buffer_handle_t handle) { - struct gralloc_drm_handle_t *dh; - - /* check that the buffer is allocated by drm_gralloc and cast */ - dh = gralloc_drm_handle(handle); - - return (dh) ? dh->name : 0; + return gralloc_drm_get_gem_handle(handle); } - #else static int -- cgit v1.2.3