freedreno/a6xx: fix max-scissor opt
authorRob Clark <robdclark@chromium.org>
Tue, 12 May 2020 23:39:20 +0000 (16:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 03:59:44 +0000 (03:59 +0000)
commitf079c00ffc1c9e85321955f679e656196f724848
tree41f7f39fd7109020453a59baf1d94afff3e11e14
parentd6706fdc46fc895b3b3d4446af3d4a9ab1e700c0
freedreno/a6xx: fix max-scissor opt

On a6xx we need a 0,0 based scissor in the binning pass, but can use the
blit-scissor to avoid restore/resolve of untouched pixels, and use the
conditional execution if the IB to bin to skip bins with no geometry
(due to the scissor).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5021>
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
src/gallium/drivers/freedreno/freedreno_gmem.c