Mesa (main): gallium/u_threaded: fix draw_vertex_state with multi draws

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 8 02:52:38 UTC 2021


Module: Mesa
Branch: main
Commit: 1fe24983e79f19a7bbcc0f24c9f67bc73bb00950
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1fe24983e79f19a7bbcc0f24c9f67bc73bb00950

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Oct  6 16:25:39 2021 -0400

gallium/u_threaded: fix draw_vertex_state with multi draws

It caused an assertion failure in debug builds and a GPU hang in release
builds.

Fixes: 0842488859e - gallium/u_threaded: implement draw_vertex_state
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5457

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13235>

---

 src/gallium/auxiliary/util/u_threaded_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c
index 1b4aaf28b48..8eb7f86f161 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.c
+++ b/src/gallium/auxiliary/util/u_threaded_context.c
@@ -3490,6 +3490,7 @@ tc_draw_vertex_state(struct pipe_context *_pipe,
          p->state = state;
 
       take_vertex_state_ownership = false;
+      p->partial_velem_mask = partial_velem_mask;
       p->info.mode = info.mode;
       p->info.take_vertex_state_ownership = false;
       p->num_draws = dr;



More information about the mesa-commit mailing list