summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.h
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-12-05 14:14:35 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2013-12-05 14:30:14 -0800
commit672911d7149735ee51cbcff5540b8dcb8a2de321 (patch)
treeea66c0f34fcf8136069d452d8e922ee9751feef3 /lib/intel_batchbuffer.h
parent40b586188c021db58a37ef23ac7d3e20547461a1 (diff)
gem_pipe_control_store_loop: BDW update
I've opted to not use the PIPE_CONTROL w/a for now. I am unclear if it is actually required (the test does pass). Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r--lib/intel_batchbuffer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h
index 6e24e984..441f567e 100644
--- a/lib/intel_batchbuffer.h
+++ b/lib/intel_batchbuffer.h
@@ -112,6 +112,21 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch,
} \
} while(0)
+#define COLOR_BLIT_COPY_BATCH_START(devid, flags) do { \
+ if (intel_gen(devid) >= 8) { \
+ BEGIN_BATCH(8); \
+ OUT_BATCH(MI_NOOP); \
+ OUT_BATCH(XY_COLOR_BLT_CMD_NOLEN | 0x5 | \
+ COLOR_BLT_WRITE_ALPHA | \
+ XY_COLOR_BLT_WRITE_RGB); \
+ } else { \
+ BEGIN_BATCH(6); \
+ OUT_BATCH(XY_COLOR_BLT_CMD_NOLEN | 0x4 | \
+ COLOR_BLT_WRITE_ALPHA | \
+ XY_COLOR_BLT_WRITE_RGB); \
+ } \
+} while(0)
+
#define BLIT_RELOC_UDW(devid) do { \
if (intel_gen(devid) >= 8) { \
OUT_BATCH(0); \