diff options
author | Tapani Pälli <[email protected]> | 2013-01-24 09:56:47 +0200 |
---|---|---|
committer | Chad Versace <[email protected]> | 2013-01-28 12:49:41 -0800 |
commit | 407029591c24edfd75970e8709f68b8e800ff50a (patch) | |
tree | 8dddb83d879e5b4db83d95ff2efd14f4582fb5c9 /src/gallium/state_trackers/egl | |
parent | 8e4bb4bc0913ceac3b8e2953d4172367cd85c20e (diff) |
android: use gralloc_drm_get_gem_handle api
Currently a gralloc internal structure is exposed to Mesa,
Use a query function instead to maintain ABI compatibility.
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl')
-rw-r--r-- | src/gallium/state_trackers/egl/android/native_android.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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 <gralloc_drm_handle.h> +#include <gralloc_drm.h> 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 |