xf86-video-intel: src/sna/kgem.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Jun 7 22:45:18 PDT 2012
src/sna/kgem.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit adc872a9654dc18d778323ca0721704878ad3851
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Jun 8 06:44:20 2012 +0100
sna: Add DBG spew to flink()
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index d2ca995..d1ba753 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
More information about the xorg-commit
mailing list