diff options
author | Arcady Goldmints-Orlov <[email protected]> | 2019-07-23 14:36:48 -0500 |
---|---|---|
committer | Arcady Goldmints-Orlov <[email protected]> | 2019-07-25 09:01:26 -0500 |
commit | 832cedfdee015f276420d79fc4d9df1a2733daff (patch) | |
tree | 5eaf9f210d76d6c79df691d4d643bbdf13704245 /src/intel | |
parent | 7d11bf215531e96f3187aeb4489a13e13929bff9 (diff) |
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: 69cc6272fbc1 ("anv: Implement VK_EXT_external_memory_host")
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 362d9ad6f27..ceb62e34573 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -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; |