summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-20 17:29:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-20 17:31:23 +0100
commit2f6afb5b1f02cc448da1b342627108ceddda4f0d (patch)
tree6a5a39d9069263bfb0b1b5ea4a2acf5e5225cac2
parent88d840b53d64e67cfee14cc4cef8da46d716c401 (diff)
sna: Only reduce gpu damage after migration
Otherwise we end up doing work for no reason, ala the regression in grads-heat-map. However, it is important that the damage is reduced at some point or else it may grow unbounded. Hopefully normal usage will never hit the pathologocial case... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index b465a347..2b78e92f 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -790,8 +790,8 @@ sna_pixmap_move_to_gpu(PixmapPtr pixmap)
__sna_damage_destroy(priv->cpu_damage);
priv->cpu_damage = NULL;
-done:
sna_damage_reduce(&priv->gpu_damage);
+done:
list_del(&priv->list);
return priv;
}