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:
parent
deacab87e4
commit
d995705fb0
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue