freedreno: Fix graphic glitches on a4xx and a5xx
authorAlejandro Tafalla <atafalla@dnyon.com>
Tue, 27 Sep 2022 08:33:56 +0000 (10:33 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Oct 2022 13:04:07 +0000 (13:04 +0000)
commitafe4b534b52af41ba3265c7150e012f8577d03b7
treebdedd840c95eee0f16b39d197e40d993678a98a3
parent1d32bcdcb2a8540ed9625d695106fe84549f16bf
freedreno: Fix graphic glitches on a4xx and a5xx

Like on adreno 3xx, hw binning and scissor optimizations don't work correctly
together on a4xx and a5xx GPUs.

Disable binning as a workaround if scissor optimizations are being used.

Fixes: f68c6951b86a 8efaae3e1969

Signed-off-by: Alejandro Tafalla <atafalla@dnyon.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18925>
src/gallium/drivers/freedreno/a4xx/fd4_gmem.c
src/gallium/drivers/freedreno/a5xx/fd5_gmem.c