radv: set sparseAddressSpaceSize to RADV_MAX_MEMORY_ALLOCATION_SIZE
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 8 Apr 2020 08:57:28 +0000 (10:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Apr 2020 11:03:35 +0000 (11:03 +0000)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4487>

src/amd/vulkan/radv_device.c

index fb81d782a148415cf65a89f172ebd78a73086905..030fba00d117dd69782e0b6b5cb23b8a8e7e72a2 100644 (file)
@@ -1339,7 +1339,7 @@ void radv_GetPhysicalDeviceProperties(
                .maxMemoryAllocationCount                 = UINT32_MAX,
                .maxSamplerAllocationCount                = 64 * 1024,
                .bufferImageGranularity                   = 64, /* A cache line */
-               .sparseAddressSpaceSize                   = 0xffffffffu, /* buffer max size */
+               .sparseAddressSpaceSize                   = RADV_MAX_MEMORY_ALLOCATION_SIZE, /* buffer max size */
                .maxBoundDescriptorSets                   = MAX_SETS,
                .maxPerStageDescriptorSamplers            = max_descriptor_set_size,
                .maxPerStageDescriptorUniformBuffers      = max_descriptor_set_size,