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.pitoi...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to