freedreno/a6xx: fix lrz overflow
authorRob Clark <robdclark@chromium.org>
Sun, 12 Jan 2020 01:30:24 +0000 (17:30 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit2f4f46b7080a1087420939b2f4bf0bea414cd3ce
tree91fc612fdaf7300bcc8f6237da5413cd97a4822e
parent3e79c4f0edc4a263c29f8df6169d0ad74aee7c69
freedreno/a6xx: fix lrz overflow

Running the complete deqp_gles2 seems to trigger an overflow in lrz
cmdstream.  We skip the blit clear fast-path if there have been any
draws (so mid-batch clears of any attached buffer hit the 3d pipe).
Which means it is safe to simply discard any lrz clear rendering.

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