From b796c33411218aeaf4daaeff41a1bc442b5f945f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 6 Nov 2013 16:24:28 +0000 Subject: sna: Always copy from the tile source The first step when tiling with an intermediatory is to copy from the source bo to the temporary. The alu should only be applied when copying from the temporary to the destination. Signed-off-by: Chris Wilson --- src/sna/sna_tiling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_tiling.c b/src/sna/sna_tiling.c index c8569399..6f0b96a3 100644 --- a/src/sna/sna_tiling.c +++ b/src/sna/sna_tiling.c @@ -857,7 +857,7 @@ sna_tiling_blt_copy_boxes__with_alpha(struct sna *sna, uint8_t alu, assert(bo->pitch <= 8192); assert(bo->tiling != I915_TILING_Y); - if (!sna_blt_copy_boxes(sna, alu, + if (!sna_blt_copy_boxes(sna, GXcopy, src_bo, src_dx, src_dy, bo, -dx, -dy, bpp, REGION_RECTS(&this), REGION_NUM_RECTS(&this))) @@ -1087,7 +1087,7 @@ bool sna_tiling_blt_copy_boxes(struct sna *sna, uint8_t alu, assert(bo->pitch <= 8192); assert(bo->tiling != I915_TILING_Y); - if (!sna_blt_copy_boxes(sna, alu, + if (!sna_blt_copy_boxes(sna, GXcopy, src_bo, src_dx, src_dy, bo, -dx, -dy, bpp, REGION_RECTS(&this), REGION_NUM_RECTS(&this))) -- cgit v1.2.3