From afe2ef9afc912bd695fe9ef65ecb0b02bbccb6d6 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 28 Jan 2022 15:04:14 -0600 Subject: [PATCH] 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 Part-of: --- src/panfrost/vulkan/panvk_formats.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panfrost/vulkan/panvk_formats.c b/src/panfrost/vulkan/panvk_formats.c index 9936a15..b834c43 100644 --- a/src/panfrost/vulkan/panvk_formats.c +++ b/src/panfrost/vulkan/panvk_formats.c @@ -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 -- 2.7.4