sna/gen5: Add a DBG option to force flushes between operations
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Feb 2014 09:58:06 +0000 (09:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Feb 2014 09:58:06 +0000 (09:58 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/gen5_render.c

index 25555e0..a9db697 100644 (file)
@@ -54,6 +54,8 @@
 #define DBG_NO_STATE_CACHE 0
 #define DBG_NO_SURFACE_CACHE 0
 
+#define ALWAYS_FLUSH 0
+
 #define MAX_3D_SIZE 8192
 
 #define GEN5_GRF_BLOCKS(nreg)    ((nreg + 15) / 16 - 1)
@@ -1056,7 +1058,7 @@ gen5_emit_state(struct sna *sna,
                kgem_bo_mark_dirty(op->dst.bo);
                flush = false;
        }
-       if (flush) {
+       if (flush || ALWAYS_FLUSH) {
                DBG(("%s: forcing flush\n", __FUNCTION__));
                gen5_emit_pipe_flush(sna);
        }