sna: Fix bogus assertion from 03fb9ded43

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-11-21 14:31:44 +00:00
parent 2249e9edc3
commit 0884777c33
1 changed files with 3 additions and 1 deletions

View File

@ -4659,7 +4659,9 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
if (n == 1 &&
tmp->drawable.width == src_pixmap->drawable.width &&
tmp->drawable.height == src_pixmap->drawable.height) {
assert(src_priv->gpu_damage);
DBG(("%s: caching upload for src bo\n",
__FUNCTION__));
assert(src_priv->gpu_damage == NULL);
kgem_proxy_bo_attach(src_bo, &src_priv->gpu_bo);
}