sna: Add a modicum of DBG to kgem_is_idle()

Print out the handle of the bo we just checked.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-27 20:07:19 +01:00
parent 8218e5da2b
commit 705103d77e
1 changed files with 2 additions and 1 deletions

View File

@ -353,6 +353,7 @@ kgem_busy(struct kgem *kgem, int handle)
busy.handle = handle;
busy.busy = !kgem->wedged;
(void)drmIoctl(kgem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy);
DBG(("%s: handle=%d, busy=%d, wedged=%d\n", busy.busy, kgem->wedged));
return busy.busy;
}
@ -1769,7 +1770,7 @@ bool __kgem_is_idle(struct kgem *kgem)
return false;
}
DBG(("%s: gpu idle\n", __FUNCTION__));
DBG(("%s: gpu idle (handle=%d)\n", __FUNCTION__, rq->bo->handle));
kgem_retire__requests(kgem);
assert(list_is_empty(&kgem->requests));
return true;