sna: Correct assertion for a partial read buffer

The batch may legitimately be submitted prior to the attachment of the
read buffer, if, for example, we need to switch rings. Therefore update
the assertion to only check that the bo remains in existence via either
a reference from the exec or from the user

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-16 21:34:43 +00:00
parent 377f5e16cd
commit 6fc4cdafeb
1 changed files with 1 additions and 1 deletions

View File

@ -1224,7 +1224,7 @@ static void kgem_finish_partials(struct kgem *kgem)
list_for_each_entry_safe(bo, next, &kgem->partial, base.list) {
if (!bo->write) {
assert(bo->base.exec);
assert(bo->base.exec || bo->base.refcnt > 1);
goto decouple;
}