sna: Fixup broken assertion

It is valid for the cpu_bo to be NULL, as we may be choosing to free the
large shadow pixel buffer instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-04-25 17:15:37 +01:00
parent 860d3859b5
commit 5967d76ca0
1 changed files with 1 additions and 1 deletions

View File

@ -2256,7 +2256,7 @@ sna_pixmap_force_to_gpu(PixmapPtr pixmap, unsigned flags)
sna_damage_destroy(&priv->cpu_damage);
priv->undamaged = false;
list_del(&priv->list);
assert(!priv->cpu_bo->sync);
assert(priv->cpu_bo == NULL || !priv->cpu_bo->sync);
sna_pixmap_free_cpu(to_sna_from_pixmap(pixmap), priv);
}