panfrost: Fix batch state changes on Valhall
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 15 Jun 2022 19:54:08 +0000 (15:54 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Jun 2022 18:38:16 +0000 (18:38 +0000)
commit950d27f9bf148a75eb9e4bdf79f678e3b075f160
tree8c5ca2acc1bf4ebbaac2aa9399b187d6f6e88c4b
parente9190c45d59695f64daf82a7ded0179851cfc397
panfrost: Fix batch state changes on Valhall

If we need to change batch state (currently just point coord origins), not only
do we need to flush the old batch, but also set the desired state on the new
batch. That second step was missing. Fix that so this mechanism works as
intended.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Fixes: 3641dfe4367 ("panfrost: Flip point coords in hardware")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17068>
src/gallium/drivers/panfrost/pan_cmdstream.c