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>
(cherry picked from commit c9ae59dec5)
This commit is contained in:
Mel Henning 2025-12-17 18:02:04 -05:00 committed by Dylan Baker
parent fe2f91e005
commit d5208d9537
2 changed files with 2 additions and 2 deletions

View file

@ -514,7 +514,7 @@
"description": "nvk: Set maxStorageBufferRange = maxBufferSize", "description": "nvk: Set maxStorageBufferRange = maxBufferSize",
"nominated": true, "nominated": true,
"nomination_type": 2, "nomination_type": 2,
"resolution": 0, "resolution": 1,
"main_sha": null, "main_sha": null,
"because_sha": "65f12fde44075276b640925d4f4301fcf00fc955", "because_sha": "65f12fde44075276b640925d4f4301fcf00fc955",
"notes": null "notes": null

View file

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