mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 09:40:29 +01:00
anv: report HOST_ALLOCATION as supported for images
Report VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT as
supported for images. It was being shown supported for buffers, but not
images.
Fixes: 69cc6272fb ("anv: Implement VK_EXT_external_memory_host")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
7d11bf2155
commit
832cedfdee
1 changed files with 4 additions and 0 deletions
|
|
@ -1079,6 +1079,10 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties2(
|
|||
if (external_props)
|
||||
external_props->externalMemoryProperties = prime_fd_props;
|
||||
break;
|
||||
case VK_EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT:
|
||||
if (external_props)
|
||||
external_props->externalMemoryProperties = userptr_props;
|
||||
break;
|
||||
case VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID:
|
||||
if (ahw_supported && external_props) {
|
||||
external_props->externalMemoryProperties = android_image_props;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue