From 7bbd445c8cbeb7bcea2c56c4deb9bf6ccf6f2497 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 31 May 2012 16:45:03 +0100 Subject: [PATCH] sna/trapezoids: Apply the drawable offset for the CPU migration Signed-off-by: Chris Wilson --- src/sna/sna_trapezoids.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index e604720d..0fd1b032 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -4425,10 +4425,10 @@ trapezoid_span_fallback(CARD8 op, PicturePtr src, PicturePtr dst, if (mask) { RegionRec region; - region.extents.x1 = dst_x; - region.extents.y1 = dst_y; - region.extents.x2 = dst_x + extents.x2; - region.extents.y2 = dst_y + extents.y2; + region.extents.x1 = dst_x + dst->pDrawable->x; + region.extents.y1 = dst_y + dst->pDrawable->y; + region.extents.x2 = region.extents.x1 + extents.x2; + region.extents.y2 = region.extents.y2 + extents.y2; region.data = NULL; DBG(("%s: move-to-cpu\n", __FUNCTION__));