radv: limit maxIndirectCommandsTokenCount to 512

512 is already large enough but UIN32_MAX is definitely too large.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27466>
This commit is contained in:
Samuel Pitoiset
2024-02-05 14:39:38 +01:00
committed by Marge Bot
parent 0a44f6319e
commit d15a43c9a9

View File

@@ -1699,7 +1699,7 @@ radv_get_physical_device_properties(struct radv_physical_device *pdevice)
/* VK_NV_device_generated_commands */
p->maxIndirectCommandsStreamCount = 1;
p->maxIndirectCommandsStreamStride = UINT32_MAX;
p->maxIndirectCommandsTokenCount = UINT32_MAX;
p->maxIndirectCommandsTokenCount = 512;
p->maxIndirectCommandsTokenOffset = UINT16_MAX;
p->minIndirectCommandsBufferOffsetAlignment = 4;
p->minSequencesCountBufferOffsetAlignment = 4;