From afee571d2bdd66323eb489bdf8a08b49bbeeb3db Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Wed, 8 Sep 2021 13:40:12 +0200 Subject: [PATCH] radv: Expose a bufferImageGranularity of 1. It shouldn't matter as image & buffer alignment are enough and we don't need any alignment between the two. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5213 Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 6a90663e471..d8d77ce8d2f 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1775,7 +1775,7 @@ radv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, .maxPushConstantsSize = MAX_PUSH_CONSTANTS_SIZE, .maxMemoryAllocationCount = UINT32_MAX, .maxSamplerAllocationCount = 64 * 1024, - .bufferImageGranularity = 64, /* A cache line */ + .bufferImageGranularity = 1, .sparseAddressSpaceSize = RADV_MAX_MEMORY_ALLOCATION_SIZE, /* buffer max size */ .maxBoundDescriptorSets = MAX_SETS, .maxPerStageDescriptorSamplers = max_descriptor_set_size,