summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-14 15:50:07 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-14 18:14:38 +0100
commite39f2dbf98a637fffcc0af98ff54ee296738b0ad (patch)
tree47b9d737abc9a6745ff4fe6acb10d3a923fdb1c7 /lib/intel_batchbuffer.c
parent2d1119dfc0b0e0187f8ee89e144a391f7ccfedd5 (diff)
tests/gem_cs_prefetch: Fix bdw damage
v2: Fix more. Cc: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r--lib/intel_batchbuffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index e284d487..06a54372 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -239,7 +239,9 @@ intel_blt_copy(struct intel_batchbuffer *batch,
CHECK_RANGE(src_pitch) && CHECK_RANGE(dst_pitch));
#undef CHECK_RANGE
- BLIT_COPY_BATCH_START(batch->devid, cmd_bits);
+ BEGIN_BATCH(intel_gen(batch->devid) >= 8 ? 10 : 8);
+ OUT_BATCH(XY_SRC_COPY_BLT_CMD | cmd_bits |
+ (intel_gen(batch->devid) >= 8 ? 8 : 6));
OUT_BATCH((br13_bits) |
(0xcc << 16) | /* copy ROP */
dst_pitch);