turnip: set sparseAddressSpaceSize to zero
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 9 Apr 2020 08:16:51 +0000 (10:16 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 3 Feb 2021 15:01:21 +0000 (16:01 +0100)
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 <siglesias@igalia.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4493>

src/freedreno/vulkan/tu_device.c

index 41c2fd7..c0921a0 100644 (file)
@@ -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,