From a5a2bd29698ce875d1c101e36f798dfa32e93c11 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 9 Apr 2024 13:20:26 -0400 Subject: [PATCH] lavapipe: don't clamp index buffer size for null index buffer draws this should execute however many draws the user is trying to execute cc: mesa-stable Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 8271ae834f8..560e1fdef36 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -2737,7 +2737,7 @@ static void handle_index_buffer2(struct vk_cmd_queue_entry *cmd, state->index_buffer = lvp_buffer_from_handle(ib->buffer)->bo; } else { state->index_size = 4; - state->index_buffer_size = sizeof(uint32_t); + state->index_buffer_size = UINT32_MAX; state->index_offset = 0; state->index_buffer = state->device->zero_buffer; }