vulkan: #if DETECT_OS_ANDROID --> #if defined(VK_USE_PLATFORM_ANDROID_KHR)

The use of the bionic toolchain (DETECT_OS_ANDROID) does not mean
that the typical set of Android libraries (nativewindow, gralloc)
are used on the system.

Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36829>
This commit is contained in:
Gurchetan Singh
2025-08-11 17:59:05 -07:00
committed by Marge Bot
parent 2d597b6919
commit 11a6a49534
9 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ vk_common_SetDebugUtilsObjectNameEXT(
{
VK_FROM_HANDLE(vk_device, device, _device);
#if DETECT_OS_ANDROID
#ifdef VK_USE_PLATFORM_ANDROID_KHR
if (pNameInfo->objectType == VK_OBJECT_TYPE_SWAPCHAIN_KHR ||
pNameInfo->objectType == VK_OBJECT_TYPE_SURFACE_KHR) {
#else