summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-11 18:11:27 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-11 18:16:34 +0000
commit0b143fcb2bdeec9abd1c1d2a9dbe707cb9165b65 (patch)
tree2746fa42cffbee4a3914e6cadf3969b23ea076ef /src
parent44d3ffdf534eb1c24ab729b9af31f09a86b82256 (diff)
sna: Improve sna_copy_boxes DBG by printing the bo handles
The handles of the bo are easier to track through the DBG as they are more often printed than then their addresses. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 662304db..ce633382 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4274,14 +4274,14 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
box->x2 >= dst_pixmap->drawable.width &&
box->y2 >= dst_pixmap->drawable.height;
- DBG(("%s: dst=(priv=%p, gpu_bo=%p, cpu_bo=%p), src=(priv=%p, gpu_bo=%p, cpu_bo=%p), replaces=%d\n",
+ DBG(("%s: dst=(priv=%p, gpu_bo=%d, cpu_bo=%d), src=(priv=%p, gpu_bo=%d, cpu_bo=%d), replaces=%d\n",
__FUNCTION__,
dst_priv,
- dst_priv ? dst_priv->gpu_bo : NULL,
- dst_priv ? dst_priv->cpu_bo : NULL,
+ dst_priv && dst_priv->gpu_bo ? dst_priv->gpu_bo->handle : 0,
+ dst_priv && dst_priv->cpu_bo ? dst_priv->cpu_bo->handle : 0,
src_priv,
- src_priv ? src_priv->gpu_bo : NULL,
- src_priv ? src_priv->cpu_bo : NULL,
+ src_priv && src_priv->gpu_bo ? src_priv->gpu_bo->handle : 0,
+ src_priv && src_priv->cpu_bo ? src_priv->cpu_bo->handle : 0,
replaces));
if (dst_priv == NULL)