diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-19 19:51:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-19 20:11:08 +0000 |
commit | 351c8f16336e757b8a4d218b3afda0698781d143 (patch) | |
tree | 6a1b1366c586cdb448635f6bfd25bd87473407a9 | |
parent | addf66dda7cecaee8e58f53bb4e8d725dfdd2717 (diff) |
sna: Discard all damage when replacing pixmap contents
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 68fb7007..4aed6a64 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -624,6 +624,9 @@ sna_pixmap_move_to_cpu(PixmapPtr pixmap, unsigned int flags) if ((flags & MOVE_READ) == 0) { assert(flags == MOVE_WRITE); + sna_damage_destroy(&priv->cpu_damage); + sna_damage_destroy(&priv->gpu_damage); + if (priv->gpu_bo && pixmap_inplace(sna, pixmap, priv)) { if (kgem_bo_is_busy(priv->gpu_bo) && priv->gpu_bo->exec == NULL) |