diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-12 09:58:06 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-12 09:58:06 +0000 |
commit | 27663f31163c22f7dfaf8f5a3e45fa1c93a7d9e4 (patch) | |
tree | d623f889c46b0953fe0705443287ca9da5a3ec48 /src/sna/gen5_render.c | |
parent | 834e8078fc1b8d3acba9fa887d6dcdd861e3c15a (diff) |
sna/gen5: Add a DBG option to force flushes between operations
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen5_render.c')
-rw-r--r-- | src/sna/gen5_render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index 25555e0e..a9db697a 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -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); } |