From 5447330a25f82eff4b449fb5a0304e1d4a762821 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 15 Jul 2021 15:24:35 +1000 Subject: [PATCH] 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 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 e7459b8ea77..d750d5981d6 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -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)