sna: Only discard CPU damage if we completely overwrite its extents

If we are performing a clipped copy, then we must be careful not to
completely discard the CPU damage as it may not be entirely replaced.

Reported-by: Roman Jarosz <kedgedev@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54937
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-09-14 19:32:06 +01:00
parent deacab87e4
commit d995705fb0
1 changed files with 2 additions and 1 deletions

View File

@ -4410,7 +4410,8 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
sna_damage_destroy(&dst_priv->cpu_damage);
list_del(&dst_priv->list);
}
hint |= IGNORE_CPU;
if (region->data == NULL)
hint |= IGNORE_CPU;
}
bo = sna_drawable_use_bo(&dst_pixmap->drawable, hint,