[Mesa-dev] [PATCH] radv: reduce max{Uniform, Storage}BufferRange values
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Oct 9 13:39:50 UTC 2018
2^32-1 is too high.
This fixes the following crucible tests:
stress.limits.buffer-update.range.uniform
stress.limits.buffer-update.range.storage
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 429d47325a3..18a373bdcbf 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -887,8 +887,8 @@ void radv_GetPhysicalDeviceProperties(
.maxImageDimensionCube = (1 << 14),
.maxImageArrayLayers = (1 << 11),
.maxTexelBufferElements = 128 * 1024 * 1024,
- .maxUniformBufferRange = UINT32_MAX,
- .maxStorageBufferRange = UINT32_MAX,
+ .maxUniformBufferRange = (1ul << 31),
+ .maxStorageBufferRange = (1ul << 31),
.maxPushConstantsSize = MAX_PUSH_CONSTANTS_SIZE,
.maxMemoryAllocationCount = UINT32_MAX,
.maxSamplerAllocationCount = 64 * 1024,
--
2.19.1
More information about the mesa-dev
mailing list