From ea42632ba754846d362e2d9a235dd7ba265b26dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Iglesias=20Gons=C3=A1lvez?= Date: Thu, 9 Apr 2020 10:16:51 +0200 Subject: [PATCH] turnip: set sparseAddressSpaceSize to zero MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to Vulkan spec, "Table 46. Required Limits", as sparse binding is unsupported, we need to return unsupported limit for sparseAddressSpaceSize, which is zero. Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Jonathan Marek Part-of: --- src/freedreno/vulkan/tu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 41c2fd75ac4..c0921a0ca05 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -637,7 +637,7 @@ tu_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, .maxMemoryAllocationCount = UINT32_MAX, .maxSamplerAllocationCount = 64 * 1024, .bufferImageGranularity = 64, /* A cache line */ - .sparseAddressSpaceSize = 0xffffffffu, /* buffer max size */ + .sparseAddressSpaceSize = 0, .maxBoundDescriptorSets = MAX_SETS, .maxPerStageDescriptorSamplers = max_descriptor_set_size, .maxPerStageDescriptorUniformBuffers = max_descriptor_set_size,