From 9807bba950078d86a25b91064ecfebaa0ee459e3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 1 Feb 2013 18:25:48 +0000 Subject: [PATCH] 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 --- src/sna/kgem.c | 1 - 1 file changed, 1 deletion(-) 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));