etnaviv: rs: unconditionally flush color and depth cache before using RS
authorLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2023 20:03:41 +0000 (22:03 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Jun 2023 10:17:42 +0000 (10:17 +0000)
commitb1cd5780d6546d2b0082db11336589b929ec344c
tree5d8a0cce7f7a471a48b9940f8f9c17e342d8734f
parentcfc1be959026f15db32fe68a4d96568921ec401b
etnaviv: rs: unconditionally flush color and depth cache before using RS

When the RS uses the pixel pipes it seems to destroy/invalidate any
content sitting in the color and depth caches from a previous draw.
Always flush the color and depth cache before using the RS to make
sure that any cache content written by the PE is properly flushed
to memory.

Fixes spec@!opengl 1.0@gl-1.0-drawpixels-depth-test and probably a
few others that are suffering from corruption of PE writes.

CC: mesa-stable
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23530>
src/gallium/drivers/etnaviv/etnaviv_rs.c