etnaviv: flush VS texture cache when texture data is changed
authorLucas Stach <l.stach@pengutronix.de>
Tue, 7 Mar 2023 20:02:44 +0000 (21:02 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 27 Mar 2023 14:03:53 +0000 (14:03 +0000)
commit77ab87e5a71d71d9e0cbb5df5eb84df443a03fa5
tree88309a03dc5117ede60d7499069297f782fefd7b
parente7ee11f89a7e3061f2327346091880fdbecf2f7b
etnaviv: flush VS texture cache when texture data is changed

If a sampler resource is changed the vertex texture caches also need to
be flushed, as those are separate from the fragment texture caches.

It seems that some cores need the VS sampler cache flush to be in a
separate state. I have seen no adverse effects of merging the TEXTUREVS
flush into a single flush state emission on GC3000 and up, but the blob
always emits the vertex sampler cache flush as a separate state, so do
the same here to avoid nasty surprises.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22104>
src/gallium/drivers/etnaviv/etnaviv_emit.c