diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-13 17:38:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-13 17:41:02 +0100 |
commit | 12f52530db1727e2f835e55dc922e5efaf4d3a16 (patch) | |
tree | 578c70f3905ffe51d6aab5b0e6f231cbc4193051 /src/sna/sna_render.c | |
parent | a861094c23b5f0df7b889bcc03904e32c4c2c6be (diff) |
sna: Add some extra debugging to the texture upload fallback paths
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.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 74a4ded4..113f9ece 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -410,17 +410,21 @@ sna_render_pixmap_bo(struct sna *sna, } if (bo == NULL) { - DBG(("%s: uploading CPU box\n", __FUNCTION__)); + DBG(("%s: uploading CPU box (%d, %d), (%d, %d)\n", + __FUNCTION__, box.x1, box.y1, box.x2, box.y2)); bo = upload(sna, channel, pixmap, x,y, w,h, &box); } } if (bo == NULL) { priv = sna_pixmap_force_to_gpu(pixmap); - if (priv) + if (priv) { bo = kgem_bo_reference(priv->gpu_bo); - else + } else { + DBG(("%s: failed to upload pixmap to gpu, uploading CPU box (%d, %d), (%d, %d) instead\n", + __FUNCTION__, box.x1, box.y1, box.x2, box.y2)); bo = upload(sna, channel, pixmap, x,y, w,h, &box); + } } channel->bo = bo; |