sna/trapezoids: Apply the drawable offset for the CPU migration

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-31 16:45:03 +01:00
parent c5313620a2
commit 7bbd445c8c
1 changed files with 4 additions and 4 deletions

View File

@ -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__));