freedreno: avoid unneccessary batch flush
authorRob Clark <robdclark@gmail.com>
Sun, 19 Nov 2017 21:45:04 +0000 (16:45 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 3 Dec 2017 19:17:41 +0000 (14:17 -0500)
commit91730fb0ffc77682cfd5cebbefdad2f8f92f2431
treece9c2dac47f23fc634cb5e2a7be0db2b06fd4af0
parent4ab6ab80365578cc9366b6d2d4a626694e0604a7
freedreno: avoid unneccessary batch flush

In some cases we can end up trying to add a write dependency on ourself,
which shouldn't trigger a flush.

Avoids an extra couple flushes per from in stk.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_batch.c