freedreno: Fix gmem invalidating the depth or stencil of packed d/s.
authorEmma Anholt <emma@anholt.net>
Wed, 3 Nov 2021 16:19:42 +0000 (09:19 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 Nov 2021 18:56:23 +0000 (18:56 +0000)
commit29093bc42d20e95288cd306757e7efc928fdb366
treee47bdc8ec6adb70d483dd6b1932bdbcc71a72385
parent858424bd2e0742542cd072ccd4efcfee0ea828b3
freedreno: Fix gmem invalidating the depth or stencil of packed d/s.

The gmem store stores both depth and stencil for z24s8.  So, if we're
doing a write (clear or draw) to one or the other of the channels, we need
the other one restored as well.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13649>
src/freedreno/ci/freedreno-a530-fails.txt
src/freedreno/ci/freedreno-a630-fails.txt
src/gallium/drivers/freedreno/freedreno_draw.c