diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-23 11:20:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-23 11:20:12 +0000 |
commit | 9267da93969d1727cb95956c3f63643f0039c60d (patch) | |
tree | abd5ae3cef614f8c75c9498f3466180bd3b07ddb | |
parent | 803f6558c665c16ba2d20415e778b5bd1d308c2f (diff) |
sna: Apply composite offset to copy-clear GPU path
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 86b8dfe8..c195dc13 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -3133,6 +3133,8 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, DBG(("%s: applying src clear[%08x] to dst\n", __FUNCTION__, src_priv->clear_color)); RegionTranslate(®ion, dst_dx, dst_dy); + box = REGION_RECTS(®ion); + n = REGION_NUM_RECTS(®ion); if (n == 1) { if (!sna->render.fill_one(sna, dst_pixmap, @@ -3176,7 +3178,6 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, RegionExtents(®ion)); sna_damage_add(&dst_priv->gpu_damage, ®ion); } - RegionTranslate(®ion, -dst_dx, -dst_dy); } if (replaces) { |