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>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user