mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
vulkan: fix back compat with Android Oreo and below
buffer_handle_t definition was previously inside the deprecated system/core/include/system/window.h. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Acked-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11301>
This commit is contained in:
parent
8a3fa2c4d5
commit
02832f9d03
1 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,12 @@
|
|||
#ifdef ANDROID
|
||||
#include <cutils/native_handle.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
#if ANDROID_API_LEVEL < 28
|
||||
/* buffer_handle_t was defined in the deprecated system/window.h */
|
||||
typedef const native_handle_t *buffer_handle_t;
|
||||
#endif
|
||||
|
||||
#else
|
||||
typedef void *buffer_handle_t;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue