draw/mesh: reset some user state values on mesh draws.
authorDave Airlie <airlied@redhat.com>
Tue, 26 Sep 2023 00:24:23 +0000 (10:24 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 26 Sep 2023 01:45:23 +0000 (01:45 +0000)
commit6d00c2f78cf651ef156c287368783ac6d0c40d50
treec8b3df21f8d4bfdfd8cd3cd4f38bc1a3a6e6378f
parenta38cb1f59725c134f4ef33053f9b45babe31740e
draw/mesh: reset some user state values on mesh draws.

Otherwise previous non-mesh draws and can leave things dirty.

Fixes crashes in:
dEQP-VK.mesh_shader.ext.query.all_queries.triangles.reset_before.copy.no_wait.indirect_draw.32bit.no_availability.no_blocks.task_mesh.inside_rp.single_view.with_secondary
after other shaders have run.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25385>
src/gallium/auxiliary/draw/draw_pt.c