gallium/u_threaded: fix draw_vertex_state with multi draws
authorMarek Olšák <marek.olsak@amd.com>
Wed, 6 Oct 2021 20:25:39 +0000 (16:25 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Oct 2021 02:31:30 +0000 (02:31 +0000)
commit1fe24983e79f19a7bbcc0f24c9f67bc73bb00950
treef5f8196ad81a7a041d6307a69ae05e29a7a0b17e
parent3a06b0b4396ef1c2f58b4ac9efd26e3576ee5faf
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@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>
src/gallium/auxiliary/util/u_threaded_context.c