summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 39199972..531dd40d 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2688,7 +2688,8 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable,
box++;
} while (--n);
- if (region->extents.x2 - region->extents.x1 > 1 ||
+ if (flags & MOVE_WRITE ||
+ region->extents.x2 - region->extents.x1 > 1 ||
region->extents.y2 - region->extents.y1 > 1) {
sna_damage_subtract(&priv->gpu_damage, region);
priv->clear = false;