summaryrefslogtreecommitdiff
path: root/src/sna/sna_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-18 12:33:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-19 14:04:37 +0100
commitb2f32373815e166fc6dceb477139ff2ef27db0ba (patch)
tree6d2025fe456de1c05882b1aac1dde938a1a07b27 /src/sna/sna_render.c
parent1b37a167d9caa7868427cb88b2480f3b64e96cc9 (diff)
sna: Tidy a few DBG regarding cached uploads
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r--src/sna/sna_render.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 139081db..ebb1d303 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -553,8 +553,11 @@ static struct kgem_bo *upload(struct sna *sna,
pixmap->usage_hint == 0 &&
channel->width == pixmap->drawable.width &&
channel->height == pixmap->drawable.height) {
+ DBG(("%s: adding upload cache to pixmap=%ld\n",
+ __FUNCTION__, pixmap->drawable.serialNumber));
assert(priv->gpu_damage == NULL);
assert(priv->gpu_bo == NULL);
+ assert(bo->proxy != NULL);
kgem_proxy_bo_attach(bo, &priv->gpu_bo);
}
}
@@ -1210,8 +1213,11 @@ sna_render_picture_extract(struct sna *sna,
if (priv != NULL && bo != NULL &&
box.x2 - box.x1 == pixmap->drawable.width &&
box.y2 - box.y1 == pixmap->drawable.height) {
+ DBG(("%s: adding upload cache to pixmap=%ld\n",
+ __FUNCTION__, pixmap->drawable.serialNumber));
assert(priv->gpu_damage == NULL);
assert(priv->gpu_bo == NULL);
+ assert(bo->proxy != NULL);
kgem_proxy_bo_attach(bo, &priv->gpu_bo);
}
}