sna/gen6+: Only apply the BLT copy w/a for self-copies

A missing check along the copy_boxes() path to bring the w/a into line
with the other paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-09 15:34:41 +01:00
parent af4215dd7f
commit 144d970461
1 changed files with 1 additions and 1 deletions

View File

@ -3000,7 +3000,7 @@ bool sna_blt_copy_boxes(struct sna *sna, uint8_t alu,
if (kgem->nexec > 1 && __kgem_ring_empty(kgem)) {
_kgem_submit(kgem);
} else if (kgem->gen >= 060 && kgem_check_batch(kgem, 3)) {
} else if (kgem->gen >= 060 && src_bo == dst_bo && kgem_check_batch(kgem, 3)) {
uint32_t *b = kgem->batch + kgem->nbatch;
b[0] = XY_SETUP_CLIP;
b[1] = b[2] = 0;