mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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:
parent
924e86b957
commit
39406b8e83
1 changed files with 3 additions and 0 deletions
|
|
@ -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[] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue