sna/gen7: Undo overzealous flushing
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Nov 2013 12:49:36 +0000 (12:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Nov 2013 12:49:36 +0000 (12:49 +0000)
commit d580a30aaf97687f9669ea72fbc3310c2fea26f1
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Oct 31 15:58:47 2013 +0000

    sna/gen7: Flush render cache when changing CC state

ultimately doesn't prevent the issue and in the process adversely
affects perforamnce.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/gen7_render.c

index 6261f65..4093c02 100644 (file)
@@ -1110,7 +1110,7 @@ gen7_emit_state(struct sna *sna,
                need_invalidate = true;
 
        need_flush =
-               sna->render_state.gen7.emit_flush ||
+               sna->render_state.gen7.emit_flush &&
                wm_binding_table & GEN7_READS_DST(op->u.gen7.flags);
        if (ALWAYS_FLUSH)
                need_flush = true;