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: 0842488859 - gallium/u_threaded: implement draw_vertex_state
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5457

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13235>
This commit is contained in:
Marek Olšák 2021-10-06 16:25:39 -04:00 committed by Marge Bot
parent 3a06b0b439
commit 1fe24983e7

View file

@ -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;