mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
turnip: amend AHB buffer support
...via adopting vk_android_get_ahb_buffer_properties. Acked-by: Rob Clark <robclark@freedesktop.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36151>
This commit is contained in:
parent
bdf9524e1c
commit
e733ac9314
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "tu_buffer.h"
|
||||
|
||||
#include "vk_android.h"
|
||||
#include "vk_debug_utils.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
|
|
@ -118,6 +119,10 @@ tu_GetPhysicalDeviceExternalBufferProperties(
|
|||
flags = VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT;
|
||||
compat_flags = VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT;
|
||||
break;
|
||||
case VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID:
|
||||
vk_android_get_ahb_buffer_properties(
|
||||
physicalDevice, pExternalBufferInfo, pExternalBufferProperties);
|
||||
return;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue