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:
parent
860d3859b5
commit
5967d76ca0
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue