sna: Correct assertion for reusing COW

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47597
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-05-24 12:03:41 +01:00
parent 2005b273e1
commit dbe2b5896e
1 changed files with 1 additions and 1 deletions

View File

@ -4637,7 +4637,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
/* XXX hack for firefox -- subsequent uses of src will be corrupt! */
if (src_priv && src_priv->cow && src_priv->gpu_bo == dst_priv->gpu_bo) {
assert(DAMAGE_IS_ALL(src_priv->gpu_damage));
assert(src_priv->cpu_damage == NULL);
bo = dst_priv->gpu_bo;
damage = NULL;
} else