From eda87254937509502efacabaa6029a584f67764e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 7 Oct 2013 11:54:59 +0100 Subject: 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 --- src/sna/gen7_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sna/gen7_render.c') 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; } -- cgit v1.2.3