summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-07 11:56:23 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-07 11:56:23 +0100
commit55e0f4502657078a666761277bbac56a98b3780c (patch)
treef3207c7598a0716061e813b0ee165a466dc833c9
parenteda87254937509502efacabaa6029a584f67764e (diff)
sna/gen7: Rename debug option ALWAYS_FLUSH to ALWAYS_INVALIDATE
This allows us to distinguish between the texture cache invalidation stage versus the opportunistic flushing, and test either. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen7_render.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 6d5c687f..4b60f531 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -45,6 +45,7 @@
#include "gen4_source.h"
#include "gen4_vertex.h"
+#define ALWAYS_INVALIDATE 0
#define ALWAYS_FLUSH 0
#define ALWAYS_STALL 0
@@ -1111,7 +1112,7 @@ gen7_emit_state(struct sna *sna,
if (ALWAYS_STALL)
need_stall = true;
- if (ALWAYS_FLUSH || kgem_bo_is_dirty(op->src.bo) || kgem_bo_is_dirty(op->mask.bo)) {
+ if (ALWAYS_INVALIDATE || kgem_bo_is_dirty(op->src.bo) || kgem_bo_is_dirty(op->mask.bo)) {
gen7_emit_pipe_invalidate(sna);
kgem_clear_dirty(&sna->kgem);
assert(op->dst.bo->exec);
@@ -1119,7 +1120,7 @@ gen7_emit_state(struct sna *sna,
sna->render_state.gen7.emit_flush = false;
need_stall = false;
}
- if (sna->render_state.gen7.emit_flush && GEN7_READS_DST(op->u.gen7.flags)) {
+ if (ALWAYS_FLUSH || (sna->render_state.gen7.emit_flush && GEN7_READS_DST(op->u.gen7.flags))) {
gen7_emit_pipe_flush(sna, need_stall);
need_stall = false;
}