sna: Remove an overzealous assert

Testing with a slow gen2 triggers this harmless assertion, so drop it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-10-29 18:00:49 +00:00
parent 9f36e83d76
commit eddd80c44d
1 changed files with 2 additions and 4 deletions

View File

@ -2452,14 +2452,12 @@ static void kgem_finish_buffers(struct kgem *kgem)
(kgem->has_llc || bo->mmapped == MMAPPED_GTT || bo->base.snoop)) {
DBG(("%s: retaining upload buffer (%d/%d)\n",
__FUNCTION__, bo->used, bytes(&bo->base)));
assert(bo->base.rq);
assert(used >= bo->used);
bo->used = used;
if (bo->base.refcnt == 1) {
list_move(&bo->base.list,
&kgem->active_buffers);
kgem->need_retire = true;
}
kgem->need_retire = true;
continue;
}
DBG(("%s: discarding mmapped buffer, used=%d, map type=%d\n",
@ -2467,7 +2465,7 @@ static void kgem_finish_buffers(struct kgem *kgem)
goto decouple;
}
if (!bo->used) {
if (!bo->used || !bo->base.exec) {
/* Unless we replace the handle in the execbuffer,
* then this bo will become active. So decouple it
* from the buffer list and track it in the normal