diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-13 22:10:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-13 22:10:08 +0100 |
commit | 3fbdedbf9d509c5ca58ae0a01fe8e54dcc990cf8 (patch) | |
tree | 3978b7d8bea6fef93e68b181608097331f6f3aba /src/sna/gen4_render.c | |
parent | 6c7f998f7bda4f4f1286e079412d5d3a5b2eb073 (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/gen4_render.c')
-rw-r--r-- | src/sna/gen4_render.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index d8b76a15..ceef528f 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -2315,9 +2315,7 @@ gen4_render_composite(struct sna *sna, case 1: if (mask == NULL && sna_blt_composite__convert(sna, - src_x, src_y, - width, height, - dst_x, dst_y, + dst_x, dst_y, width, height, tmp)) return true; |