summaryrefslogtreecommitdiff
path: root/src/sna/sna_tiling.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-06 16:24:28 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-06 16:24:28 +0000
commitb796c33411218aeaf4daaeff41a1bc442b5f945f (patch)
treef9073328665a80c74fea067924221c51fe3335c0 /src/sna/sna_tiling.c
parentace764501ec7c440eddc1d26670f6fbf29fa648d (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_tiling.c')
-rw-r--r--src/sna/sna_tiling.c4
1 files 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)))