summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
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);