sna: Periodically reduce the gpu damage (after migrating any cpu damage)

This will prevent the gpu damage list from growing unbounded.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-06-09 15:13:17 +01:00
parent 38d084ee62
commit 190a678656
1 changed files with 1 additions and 0 deletions

View File

@ -773,6 +773,7 @@ sna_pixmap_move_to_gpu(PixmapPtr pixmap)
priv->cpu_damage = NULL;
done:
sna_damage_reduce(&priv->gpu_damage);
list_del(&priv->list);
return priv;
}