summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-19 21:04:02 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-19 21:04:02 +0000
commit06a1792f91d3ae2ebb17e4ad55caec10c5407aa6 (patch)
treeb53eb0839826d1248293d6c5c7582afd682c0321
parent0b5fec3f80c8d2e4d3b504af5bb02fb76be6b3a6 (diff)
sna: Avoid the GPU readback with READ==0 move_to_cpu
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 079a65fd..cc244cba 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -837,6 +837,8 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable,
sna_pixmap_free_cpu(sna, priv);
}
}
+
+ sna_damage_subtract(&priv->gpu_damage, region);
}
if (priv->mapped) {