sna: Remove existing damage before overwriting with a composite op

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-03-14 11:26:03 +00:00
parent 63eeb98463
commit 8a303f195b
1 changed files with 5 additions and 0 deletions

View File

@ -479,6 +479,11 @@ sna_composite(CARD8 op,
get_drawable_dx(dst->pDrawable),
get_drawable_dy(dst->pDrawable)));
if (op <= PictOpSrc) {
struct sna_pixmap *priv = sna_pixmap_from_drawable(dst->pDrawable);
sna_damage_subtract(&priv->cpu_damage, &region);
}
memset(&tmp, 0, sizeof(tmp));
if (!sna->render.composite(sna,
op, src, mask, dst,