nvk: Set maxStorageBufferRange = maxBufferSize

We were previously reporting a larger maxStorageBufferRange than our
maxBufferSize, which is weird. Lower maxStorageBufferRange to match
maxBufferSize.

Fixes crucible stress.limits.buffer-update.range.storage.q0

Fixes: 65f12fde44 ("nvk: Improve address space and buffer size limits")
Reviewed-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39021>
This commit is contained in:
Mel Henning 2025-12-17 18:02:04 -05:00 committed by Marge Bot
parent b967942b64
commit c9ae59dec5

View file

@ -791,7 +791,7 @@ nvk_get_device_properties(const struct nvk_instance *instance,
.maxImageArrayLayers = 2048,
.maxTexelBufferElements = 128 * 1024 * 1024,
.maxUniformBufferRange = 65536,
.maxStorageBufferRange = UINT32_MAX,
.maxStorageBufferRange = 1ull << 31,
.maxPushConstantsSize = NVK_MAX_PUSH_SIZE,
.maxMemoryAllocationCount = 4096,
.maxSamplerAllocationCount = 4000,