summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-13 23:24:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-14 09:21:17 +0100
commitb68b2d90915f7a97e43a39e3117927544886fba0 (patch)
treebba567e064e378c03ad41ba3f0361ba15f328df7
parentad4786b285074b5bd70b3ad0bea6ec1b77ad6740 (diff)
sna: Add some DBG for short-circuiting choice of source bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 546148d6..02727a32 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -510,6 +510,7 @@ sna_render_pixmap_bo(struct sna *sna,
if (priv->gpu_bo &&
(DAMAGE_IS_ALL(priv->gpu_damage) || !priv->cpu_damage ||
priv->gpu_bo->proxy)) {
+ DBG(("%s: GPU all damaged\n", __FUNCTION__));
channel->bo = kgem_bo_reference(priv->gpu_bo);
return 1;
}
@@ -517,6 +518,7 @@ sna_render_pixmap_bo(struct sna *sna,
if (priv->cpu_bo &&
(DAMAGE_IS_ALL(priv->cpu_damage) || !priv->gpu_damage) &&
!priv->cpu_bo->vmap && priv->cpu_bo->pitch < 4096) {
+ DBG(("%s: CPU all damaged\n", __FUNCTION__));
channel->bo = kgem_bo_reference(priv->cpu_bo);
return 1;
}