tu: Add shared image support on Android

ANB shared image is required for KHR_shared_presentable_image support.

https://android.googlesource.com/platform/frameworks/native/+/refs/heads/android16-qpr2-release/vulkan/include/vulkan/vk_android_native_buffer.h#154

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41195>
This commit is contained in:
Valentine Burley 2026-04-20 11:57:51 +02:00 committed by Marge Bot
parent 924e86b957
commit 39406b8e83

View file

@ -1573,6 +1573,9 @@ tu_get_properties(struct tu_physical_device *pdevice,
pdevice->vk.supported_extensions.QCOM_image_processing
? (VkExtent2D) { 64, 64 }
: (VkExtent2D) { 0, 0 };
/* VK_ANDROID_native_buffer */
props->sharedImage = vk_android_get_front_buffer_usage() != 0;
}
static const struct vk_pipeline_cache_object_ops *const cache_import_ops[] = {