diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-01 20:13:53 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-01 20:14:07 +0000 |
commit | 699b4fd3139d1d6d02911d6c8f193ead3445f613 (patch) | |
tree | 3af1d23fb35728f91e3b9c16bf03d277ac123f96 | |
parent | 2c4b2ed558bec3b71077fb12cc4e008cccc819fa (diff) |
sna: Undo region translation before returning
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index aecae513..d654660b 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2433,6 +2433,9 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable, sna_damage_add(&priv->cpu_damage, region); discard_gpu = false; } + + if (dx | dy) + RegionTranslate(region, -dx, -dy); } else sna_pixmap_free_cpu(sna, priv, false); } |