freedreno/a6xx: Clear gmem buffers at flush time
authorKristian H. Kristensen <hoegsberg@chromium.org>
Fri, 19 Oct 2018 21:29:49 +0000 (14:29 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Nov 2018 20:44:02 +0000 (15:44 -0500)
commit9595be67a946c673273a4c9ea6b3c189d151e5f1
tree04e9fb15259b97090920e7d51b9e5fe1d5c623dd
parentb5a9bb28c60781799f812ab99524b45eeb721c30
freedreno/a6xx: Clear gmem buffers at flush time

We generate an IB to clear the gmem at flush time and jump to it
before rendering each tile. This lets us get rid of the command stream
patching for gmem offsets.

Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h