freedreno: Disable LRZ write when alpha-to-coverage is enabled
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 17 Aug 2022 08:06:55 +0000 (11:06 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 19 Aug 2022 11:45:14 +0000 (11:45 +0000)
commit09676b5817339cb7653fb23c9c5341b7f95392bb
treec8415543b06d18ea4574248eda2887eba480f0b3
parentdca04b04f7e322c3e8c30837ab0488c61d050f6b
freedreno: Disable LRZ write when alpha-to-coverage is enabled

Alpha-to-coverage acts like discard and happens after FS ends,
so like with discard LRZ write should be disabled.
With discard we don't know at the moment of binning whether
fragment would be not discarded, so we cannot write its depth to LRZ.

Cc: mesa-stable
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18102>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c