diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-22 15:52:41 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-22 16:11:41 +0000 |
commit | aeaffb102190a8846c6341e72a4338b41639d679 (patch) | |
tree | 901c4526120335f21205b3dba8c0f3db413203f6 | |
parent | 92badc9c9c2636284af8bc56b098d24ff222f167 (diff) |
sna: Add some more DBG along the downsampling source extraction path
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_render.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index fde95f90..efe415e3 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -671,11 +671,17 @@ static int sna_render_picture_downsample(struct sna *sna, w = box.x2 - box.x1; h = box.y2 - box.y1; + DBG(("%s: sample area (%d, %d), (%d, %d): %dx%d\n", + __FUNCTION__, box.x1, box.y1, box.x2, box.y2, w, h)); assert(w && h); - if (w > 2*sna->render.max_3d_size || h > 2*sna->render.max_3d_size) + if (w > 2*sna->render.max_3d_size || h > 2*sna->render.max_3d_size) { + DBG(("%s: sample size too large for pixman downscaling\n", + __FUNCTION__)); goto fixup; + } if (texture_is_cpu(pixmap, &box) && !move_to_gpu(pixmap, &box)) { + DBG(("%s: uploading partial texture\n", __FUNCTION__)); bo = kgem_upload_source_image_halved(&sna->kgem, picture->format, pixmap->devPrivate.ptr, @@ -746,8 +752,8 @@ static int sna_render_picture_downsample(struct sna *sna, ni = 1; } - DBG(("%s downsampling using %dx%d GPU tiles\n", - __FUNCTION__, ww, hh)); + DBG(("%s %d:%d downsampling using %dx%d GPU tiles\n", + __FUNCTION__, nj, ni, ww, hh)); for (i = 0; i < ni; i++) { BoxRec b; @@ -767,6 +773,9 @@ static int sna_render_picture_downsample(struct sna *sna, else b.x2 = b.x1 + ww; + DBG(("%s: tile %d:%d, box=(%d,%d), (%d, %d)\n", + __FUNCTION__, i, j, b.x1, b.y1, b.x2, b.y2)); + memset(&op, 0, sizeof(op)); if (!sna->render.composite(sna, PictOpSrc, |