sna: Tighten a couple of assertions for damage with use_bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-11-21 12:16:46 +00:00
parent 03fb9ded43
commit 736bb0f705
1 changed files with 2 additions and 1 deletions

View File

@ -2797,7 +2797,7 @@ done:
DBG(("%s: using GPU bo with damage? %d\n",
__FUNCTION__, *damage != NULL));
assert(damage == NULL || !DAMAGE_IS_ALL(*damage));
assert(*damage == NULL || !DAMAGE_IS_ALL(*damage));
assert(priv->gpu_bo->proxy == NULL);
assert(priv->clear == false);
assert(priv->cpu == false);
@ -2807,6 +2807,7 @@ use_gpu_bo:
DBG(("%s: using whole GPU bo\n", __FUNCTION__));
assert(priv->gpu_bo != NULL);
assert(priv->gpu_bo->proxy == NULL);
assert(priv->gpu_damage);
priv->clear = false;
priv->cpu = false;
*damage = NULL;