self-copy-damage

This commit is contained in:
Chris Wilson 2011-10-26 14:57:28 +01:00
parent 0ed3426a81
commit efdc7985e2
1 changed files with 2 additions and 1 deletions

View File

@ -1299,7 +1299,8 @@ sna_self_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
goto fallback;
}
sna_damage_add_boxes(&priv->gpu_damage, box, n, tx, ty);
if (!priv->gpu_only)
sna_damage_add_boxes(&priv->gpu_damage, box, n, tx, ty);
} else {
FbBits *dst_bits, *src_bits;
int stride, bpp;