anv: fix VkExternalBufferProperties for unsupported handles

compatibleHandleTypes must include the queried handle type.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit f3c7a02a62)
This commit is contained in:
Chia-I Wu 2019-07-06 12:02:51 -07:00 committed by Juan A. Suarez Romero
parent e0d44fd4fe
commit 84f76533e4

View file

@ -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(