Mesa (main): lavapipe: fix indexed multi draw draw_id increment
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 15 20:00:33 UTC 2021
Module: Mesa
Branch: main
Commit: 5447330a25f82eff4b449fb5a0304e1d4a762821
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5447330a25f82eff4b449fb5a0304e1d4a762821
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Jul 15 15:24:35 2021 +1000
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 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11899>
---
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)
More information about the mesa-commit
mailing list