vulkan/runtime: refactor to use DETECT_OS_ANDROID instead of ANDROID

Also update vk_android_native_buffer.h to use __ANDROID__ directly.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27374>
This commit is contained in:
Yiwei Zhang
2024-01-30 13:36:17 -08:00
committed by Marge Bot
parent f7d35be362
commit 2dd95bc4b7
9 changed files with 13 additions and 12 deletions

View File

@@ -18,7 +18,7 @@
#define __VK_ANDROID_NATIVE_BUFFER_H__
/* MESA: A hack to avoid #ifdefs in driver code. */
#ifdef ANDROID
#ifdef __ANDROID__
#include <cutils/native_handle.h>
#include <vulkan/vulkan.h>