summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-07 11:54:59 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-07 11:54:59 +0100
commiteda87254937509502efacabaa6029a584f67764e (patch)
tree7708a716f9bc674c4811516047338416ac3c8c5c
parent1c651848cc3f3baec8fa0bcfc68faebd3e58c069 (diff)
sna/gen7: Tweak flushing
We pre-emptively flush the render cache before reads as that seems to improve performance. Now try not flushing if we don't subsequently need to read from the render cache. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen7_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 9fac7b0f..6d5c687f 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -1119,7 +1119,7 @@ gen7_emit_state(struct sna *sna,
sna->render_state.gen7.emit_flush = false;
need_stall = false;
}
- if (sna->render_state.gen7.emit_flush) {
+ if (sna->render_state.gen7.emit_flush && GEN7_READS_DST(op->u.gen7.flags)) {
gen7_emit_pipe_flush(sna, need_stall);
need_stall = false;
}