From 1fe24983e79f19a7bbcc0f24c9f67bc73bb00950 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 6 Oct 2021 16:25:39 -0400 Subject: [PATCH] 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 Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- 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 1b4aaf2..8eb7f86 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; -- 2.7.4