panvk: Advertise zero sparse format properties

This is the correct implementation when you don't support sparse and
fixes piles of CTS crashes.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15285>
This commit is contained in:
Jason Ekstrand 2022-01-28 15:04:14 -06:00 committed by Marge Bot
parent 8feed1f114
commit afe2ef9afc
1 changed files with 4 additions and 2 deletions

View File

@ -466,7 +466,8 @@ panvk_GetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevi
uint32_t *pNumProperties,
VkSparseImageFormatProperties *pProperties)
{
panvk_stub();
/* Sparse images are not yet supported. */
*pNumProperties = 0;
}
void
@ -475,7 +476,8 @@ panvk_GetPhysicalDeviceSparseImageFormatProperties2(VkPhysicalDevice physicalDev
uint32_t *pPropertyCount,
VkSparseImageFormatProperties2 *pProperties)
{
panvk_stub();
/* Sparse images are not yet supported. */
*pPropertyCount = 0;
}
void