sna: Tweak assert_bo_retired() to be callable on cached bo

References: https://bugs.freedesktop.org/show_bug.cgi?id=73406
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-02-04 20:57:24 +00:00
parent 0906769c1b
commit de73c5fd1c
1 changed files with 3 additions and 2 deletions

View File

@ -506,12 +506,13 @@ static void kgem_bo_retire(struct kgem *kgem, struct kgem_bo *bo)
if (bo->rq) {
__kgem_bo_clear_busy(bo);
kgem_retire(kgem);
assert_bo_retired(bo);
} else {
assert(bo->exec == NULL);
assert(list_is_empty(&bo->request));
assert(!bo->needs_flush);
ASSERT_IDLE(kgem, bo->handle);
}
assert_bo_retired(bo);
}
static void kgem_bo_maybe_retire(struct kgem *kgem, struct kgem_bo *bo)