From 2b1db3de7b744672ce3ee7eef43e49f326212470 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 4 Apr 2024 11:29:36 +0200 Subject: [PATCH] panvk: Fill maxCustomBorderColorSamplers dEQP-VK doesn't seem to test it, but the validation layer complains. Pick a randomly high value, since there's no physical limit on the custom border color (this is part of the sampler descriptor). Signed-off-by: Boris Brezillon Reviewed-by: Mary Guillemard Part-of: --- src/panfrost/vulkan/panvk_physical_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index 58854f2b33e..4439e704f04 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -675,6 +675,12 @@ panvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, properties->maxVertexAttribDivisor = UINT32_MAX; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT: { + VkPhysicalDeviceCustomBorderColorPropertiesEXT *properties = + (VkPhysicalDeviceCustomBorderColorPropertiesEXT *)ext; + properties->maxCustomBorderColorSamplers = 32768; + break; + } default: break; }