summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-06 17:27:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-06 17:27:22 +0100
commitc3fe60c15763c02b3b6238c77e6350d478cd8982 (patch)
tree04aa3cdcd879c58960baf69a2ec267bf81c484ad
parent7284e7f48b812948b40d67396214f7929c1c00eb (diff)
sna/gen7: Add a always-stall debug option
References: https://bugs.freedesktop.org/show_bug.cgi?id=68410 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen7_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 0a863726..9fac7b0f 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -46,6 +46,7 @@
#include "gen4_vertex.h"
#define ALWAYS_FLUSH 0
+#define ALWAYS_STALL 0
#define NO_COMPOSITE 0
#define NO_COMPOSITE_SPANS 0
@@ -1107,6 +1108,8 @@ gen7_emit_state(struct sna *sna,
need_stall = gen7_emit_binding_table(sna, wm_binding_table);
need_stall &= gen7_emit_drawing_rectangle(sna, op);
+ if (ALWAYS_STALL)
+ need_stall = true;
if (ALWAYS_FLUSH || kgem_bo_is_dirty(op->src.bo) || kgem_bo_is_dirty(op->mask.bo)) {
gen7_emit_pipe_invalidate(sna);