mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
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:
parent
e0d44fd4fe
commit
84f76533e4
1 changed files with 7 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue