From 699b4fd3139d1d6d02911d6c8f193ead3445f613 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 1 Feb 2014 20:13:53 +0000 Subject: sna: Undo region translation before returning Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sna/sna_accel.c') 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); } -- cgit v1.2.3