v3d: Rework the ordering of how we clear things.
authorEric Anholt <eric@anholt.net>
Mon, 23 Jul 2018 20:56:40 +0000 (13:56 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 Jul 2018 18:02:25 +0000 (11:02 -0700)
commit301c32caf4c656731006409720d521f4709e60ac
treebd59f95c4c3296eac42f17f1e6c8a4a3168e4c1c
parentceecddfe77cb611fd8b788f819a1d71b7f371a0d
v3d: Rework the ordering of how we clear things.

First, figure out if we can just sneak the clear into the TLB clear, even
if drawing has already happened (since we have job->load and job->clear to
tell us), taking into account GFXH-1461.  For any pieces we can't TLB
clear, fall back to drawing a quad without flushing the scene.

Fixes extra scene flushes in glmark2 due to GFXH-1461.
src/gallium/drivers/v3d/v3dx_draw.c