lavapipe: fix indexed multi draw draw_id increment

I cut-n-paste this badly from the non-indexed, and used the wrong
struct.

Fixes a bunch of multi-draw CTS

Fixes: cc8f7dbf2a1a ("lavapipe: fix multi-draw regression in shader parameters test")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11899>
This commit is contained in:
Dave Airlie 2021-07-15 15:24:35 +10:00
parent bb35195b73
commit 5447330a25
1 changed files with 1 additions and 1 deletions

View File

@ -2209,7 +2209,7 @@ static void handle_draw_indexed(struct lvp_cmd_buffer_entry *cmd,
state->info.start_instance = cmd->u.draw_indexed.first_instance;
state->info.instance_count = cmd->u.draw_indexed.instance_count;
state->info.view_mask = subpass->view_mask;
if (cmd->u.draw.draw_count > 1)
if (cmd->u.draw_indexed.draw_count > 1)
state->info.increment_draw_id = true;
if (state->info.primitive_restart)