summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-01 18:25:48 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-01 18:25:48 +0000
commit9807bba950078d86a25b91064ecfebaa0ee459e3 (patch)
treee6a23f6e66dfd2b95e49a3d1a3ddabf639676c49 /src/sna
parenta5561f13498066922b54af04cc71549322ce0e3b (diff)
sna: Drop bogus refcnt assertion during kgem_bo_retire()
As we may call it kgem_bo_sync(), during preparation of the upload buffer which in turn may operate on an object straight out of the snoop cache and hence not yet referenced (or in some cases, ever). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/kgem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index c050a52e..36b245df 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -394,7 +394,6 @@ static void kgem_bo_retire(struct kgem *kgem, struct kgem_bo *bo)
DBG(("%s: retiring bo handle=%d (needed flush? %d), rq? %d [busy?=%d]\n",
__FUNCTION__, bo->handle, bo->needs_flush, bo->rq != NULL,
__kgem_busy(kgem, bo->handle)));
- assert(bo->refcnt);
assert(bo->exec == NULL);
assert(list_is_empty(&bo->vma));