From 11c7f2d2f485e75feadb15d388960c581a96154d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 7 Oct 2014 07:18:22 +0100 Subject: [PATCH] sna: Add pixmap id to DBG hints inside rende migration Signed-off-by: Chris Wilson --- src/sna/sna_render.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index af072f02..8cc63a0d 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -430,8 +430,8 @@ move_to_gpu(PixmapPtr pixmap, const BoxRec *box, bool blt) priv = sna_pixmap(pixmap); if (priv == NULL) { - DBG(("%s: not migrating unattached pixmap\n", - __FUNCTION__)); + DBG(("%s: not migrating unattached pixmap=%ld\n", + __FUNCTION__, pixmap->drawable.serialNumber)); return NULL; } @@ -448,14 +448,16 @@ move_to_gpu(PixmapPtr pixmap, const BoxRec *box, bool blt) } if (priv->cpu_damage == NULL) { - DBG(("%s: not migrating uninitialised pixmap\n", - __FUNCTION__)); + DBG(("%s: not migrating uninitialised pixmap=%ld\n", + __FUNCTION__, pixmap->drawable.serialNumber)); return NULL; } if (pixmap->usage_hint) { - DBG(("%s: not migrating pixmap due to usage_hint=%d\n", - __FUNCTION__, pixmap->usage_hint)); + DBG(("%s: not migrating pixmap=%ld due to usage_hint=%d\n", + __FUNCTION__, + pixmap->drawable.serialNumber, + pixmap->usage_hint)); return NULL; }