Mesa (main): lavapipe: increment drawid for multidraws
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 14 19:31:48 UTC 2021
Module: Mesa
Branch: main
Commit: 6689c3917e876bf1719b5808e2c0832ee4d50aed
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6689c3917e876bf1719b5808e2c0832ee4d50aed
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Jul 14 09:43:39 2021 -0400
lavapipe: increment drawid for multidraws
Fixes: f99f7c06 ("lavapipe: implement multidraw ext")
Reviewed-by: Joshua Ashton <joshua at froggi.es>
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11878>
---
src/gallium/frontends/lavapipe/lvp_execute.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c
index dc403b8a6c9..84b0511ce6e 100644
--- a/src/gallium/frontends/lavapipe/lvp_execute.c
+++ b/src/gallium/frontends/lavapipe/lvp_execute.c
@@ -1642,6 +1642,7 @@ static void handle_draw(struct lvp_cmd_buffer_entry *cmd,
state->info.start_instance = cmd->u.draw.first_instance;
state->info.instance_count = cmd->u.draw.instance_count;
state->info.view_mask = subpass->view_mask;
+ state->info.increment_draw_id = true;
state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, cmd->u.draw.draws, cmd->u.draw.draw_count);
}
@@ -2207,6 +2208,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;
+ state->info.increment_draw_id = true;
if (state->info.primitive_restart)
state->info.restart_index = util_prim_restart_index_from_size(state->info.index_size);
More information about the mesa-commit
mailing list