summaryrefslogtreecommitdiff
path: root/src/sna/gen3_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-09-13 22:10:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-09-13 22:10:08 +0100
commit3fbdedbf9d509c5ca58ae0a01fe8e54dcc990cf8 (patch)
tree3978b7d8bea6fef93e68b181608097331f6f3aba /src/sna/gen3_render.c
parent6c7f998f7bda4f4f1286e079412d5d3a5b2eb073 (diff)
sna: Fix analysis of source extents for BLT composite
After we have computed the source offset vector for the transformed source bo, we need to use that with respect to the destination rectangle to verify that the source sample is wholly within bounds. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen3_render.c')
-rw-r--r--src/sna/gen3_render.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 60e197e0..723dd5ee 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -2868,9 +2868,7 @@ gen3_render_composite(struct sna *sna,
case 1:
if (mask == NULL && tmp->src.bo &&
sna_blt_composite__convert(sna,
- src_x, src_y,
- width, height,
- dst_x, dst_y,
+ dst_x, dst_y, width, height,
tmp))
return true;