diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-03 14:13:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-03 14:13:13 +0100 |
commit | a683643ebf9120bd73a7cd740b5fb24f7e8e797b (patch) | |
tree | 757bab9c6b3f5b52c18a7be0be21961eb36fc9f2 /src | |
parent | 47c76bb9680eee89d1cef86058782a7073ca4a47 (diff) |
sna: Fix an instance of undamaged tracking
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_accel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index cbcdcf6e..2fb5529d 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2777,6 +2777,8 @@ done: pixmap->drawable.width, pixmap->drawable.height)) { sna_damage_destroy(&priv->cpu_damage); + list_del(&priv->list); + priv->undamaged = false; *damage = NULL; } else *damage = &priv->gpu_damage; @@ -2998,7 +3000,8 @@ sna_pixmap_move_to_gpu(PixmapPtr pixmap, unsigned flags) pixmap->drawable.height)) { DBG(("%s: already all-damaged\n", __FUNCTION__)); sna_damage_destroy(&priv->cpu_damage); - priv->undamaged = true; + list_del(&priv->list); + priv->undamaged = false; assert(priv->cpu == false); goto active; } |