gfxstream: ANDROID --> VK_USE_PLATFORM_ANDROID_KHR

gfxstream mostly uses VK_USE_PLATFROM_ANDROID_KHR to determine
the presence of window system extensions.

Reviewed-by: David Gilhooley <djgilhooley.gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36826>
This commit is contained in:
Gurchetan Singh 2025-08-11 17:40:01 -07:00 committed by Marge Bot
parent 651d2fd804
commit 091e2f5ec5

View file

@ -7216,7 +7216,7 @@ void ResourceTracker::on_vkGetPhysicalDeviceExternalBufferProperties_common(
VkExternalBufferProperties* pExternalBufferProperties) {
VkEncoder* enc = (VkEncoder*)context;
#if defined(ANDROID)
#ifdef VK_USE_PLATFORM_ANDROID_KHR
// Older versions of Goldfish's Gralloc did not support allocating AHARDWAREBUFFER_FORMAT_BLOB
// with GPU usage (b/299520213).
if (mGralloc->treatBlobAsImage() &&