panfrost: Fix dirty state emission
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 4 Jun 2021 23:06:36 +0000 (19:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000 (18:06 +0000)
commitbc48df001c0d89c63896fd758c2f77f4deb173c4
treec52a4d54dbc4abfd05ed97516f06e9cc53da695e
parent43cff98dfff18c11cb6d94da516f7683085c1c54
panfrost: Fix dirty state emission

If we have per-draw state (vertex ID stuff), there's an ordering
mismatch. Fixes
dEQP-GLES31.functional.draw_base_vertex.draw_elements_instanced_base_vertex.builtin_variable.vertex_id
on Midgard, and I'm not sure why it was passing on Bifrost before. Also
should fix (on both architectures) DRAWID issues.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
src/gallium/drivers/panfrost/pan_context.c