turnip: Don't disable LRZ for color write mask channels beyond the format's
authorEmma Anholt <emma@anholt.net>
Thu, 10 Nov 2022 00:41:29 +0000 (16:41 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Nov 2022 20:11:55 +0000 (20:11 +0000)
commitc9db71c8ba14e846bac46ec343dcf357099a95d5
treee00f22456673088e6ef1e55c2cd03a68c55a6c21
parent062d4d83e1570583fe24537d488f607db7781cce
turnip: Don't disable LRZ for color write mask channels beyond the format's

aztec_ruins under ANGLE was getting LRZ writes disabled because 0xf out of
the 0x3 mask was enabled.  The goal was to see if there are partial writes
being done, though.  This caused a 2-3% performance regression.

Fixes: 85d0205db137 ("tu: Implement extendedDynamicState3ColorWriteMask")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19635>
src/freedreno/vulkan/tu_lrz.c