diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-08 06:44:20 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-08 06:44:20 +0100 |
commit | adc872a9654dc18d778323ca0721704878ad3851 (patch) | |
tree | 0e17d3245164c7e0341820cc74166b2fe4bb557e | |
parent | a62ad4e80722db187766c83a16fa84ec236cc5eb (diff) |
sna: Add DBG spew to flink()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index d2ca995c..d1ba7536 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1092,7 +1092,8 @@ static void kgem_bo_clear_scanout(struct kgem *kgem, struct kgem_bo *bo) assert(bo->proxy == NULL); - DBG(("%s: handle=%d, fb=%d\n", __FUNCTION__, bo->handle, bo->delta)); + DBG(("%s: handle=%d, fb=%d (reusable=%d)\n", + __FUNCTION__, bo->handle, bo->delta, bo->reusable)); if (bo->delta) { drmModeRmFB(kgem->fd, bo->delta); bo->delta = 0; @@ -3381,6 +3382,9 @@ uint32_t kgem_bo_flink(struct kgem *kgem, struct kgem_bo *bo) if (ret) return 0; + DBG(("%s: flinked handle=%d to name=%d, marking non-reusable\n", + __FUNCTION__, flink.handle, flink.name)); + /* Ordinarily giving the name aware makes the buffer non-reusable. * However, we track the lifetime of all clients and their hold * on the buffer, and *presuming* they do not pass it on to a third |