summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2019-07-06 12:02:51 -0700
committerJuan A. Suarez Romero <[email protected]>2019-07-09 10:11:32 +0000
commit84f76533e4834da5bb2a44260ffdb35c3c79fb36 (patch)
tree281b114933a1ddf2f45267baaa36cc5681f2dc8d
parente0d44fd4feee5b6a8d7b7480694baf225570a889 (diff)
anv: fix VkExternalBufferProperties for unsupported handles
compatibleHandleTypes must include the queried handle type. Signed-off-by: Chia-I Wu <[email protected]> Cc: <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> (cherry picked from commit f3c7a02a62fdb8941c2201939efcd1caf13456cb)
-rw-r--r--src/intel/vulkan/anv_formats.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 4e15e626eed..486ce0fc741 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -1170,8 +1170,14 @@ void anv_GetPhysicalDeviceExternalBufferProperties(
}
unsupported:
+ /* From the Vulkan 1.1.113 spec:
+ *
+ * compatibleHandleTypes must include at least handleType.
+ */
pExternalBufferProperties->externalMemoryProperties =
- (VkExternalMemoryProperties) {0};
+ (VkExternalMemoryProperties) {
+ .compatibleHandleTypes = pExternalBufferInfo->handleType,
+ };
}
VkResult anv_CreateSamplerYcbcrConversion(