projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834e807
)
sna/gen5: Add a DBG option to force flushes between operations
author
Chris Wilson
<chris@chris-wilson.co.uk>
Wed, 12 Feb 2014 09:58:06 +0000
(09:58 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/src/sna/gen5_render.c
b/src/sna/gen5_render.c
index
25555e0
..
a9db697
100644
(file)
--- 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);
}