diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-22 19:19:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-02-23 07:53:07 +0000 |
commit | 2a144baec87b17ead36373a8c5fd80f37be3ac19 (patch) | |
tree | 0188ac0b12458db8b19bad5f42e57cbd09acc893 | |
parent | 921e9aff3f8e7c4a33c352241311aeb4df3011fc (diff) |
sna: Add a little more DBG to watch the flow of allocated bo sizes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 7fa9334b..698e251d 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -683,6 +683,8 @@ constant inline static int cache_bucket(int num_pages) static struct kgem_bo *__kgem_bo_init(struct kgem_bo *bo, int handle, int num_pages) { + DBG(("%s(handle=%d, num_pages=%d)\n", __FUNCTION__, handle, num_pages)); + assert(num_pages); memset(bo, 0, sizeof(*bo)); @@ -1754,7 +1756,7 @@ static void kgem_bo_binding_free(struct kgem *kgem, struct kgem_bo *bo) static void kgem_bo_free(struct kgem *kgem, struct kgem_bo *bo) { - DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle)); + DBG(("%s: handle=%d, size=%d\n", __FUNCTION__, bo->handle, bytes(bo))); assert(bo->refcnt == 0); assert(bo->proxy == NULL); assert(bo->exec == NULL); @@ -2081,7 +2083,7 @@ void kgem_bo_undo(struct kgem *kgem, struct kgem_bo *bo) static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo) { - DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle)); + DBG(("%s: handle=%d, size=%d\n", __FUNCTION__, bo->handle, bytes(bo))); assert(list_is_empty(&bo->list)); assert(bo->refcnt == 0); |