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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28656>
This commit is contained in:
Mike Blumenkrantz
2024-04-09 13:20:26 -04:00
committed by Marge Bot
parent fef9ad6f66
commit a5a2bd2969
+1 -1
View File
@@ -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;
}