sna: Attempt to discard overwritten operations before CopyArea
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3ee42de066
commit
07a4400fff
|
|
@ -4350,6 +4350,9 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
|
|||
bo = sna_drawable_use_bo(&dst_pixmap->drawable, hint,
|
||||
®ion->extents, &damage);
|
||||
if (bo) {
|
||||
if (replaces)
|
||||
kgem_bo_undo(&sna->kgem, bo);
|
||||
|
||||
if (src_priv && src_priv->clear) {
|
||||
DBG(("%s: applying src clear[%08x] to dst\n",
|
||||
__FUNCTION__, src_priv->clear_color));
|
||||
|
|
|
|||
Loading…
Reference in New Issue