summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-04-06 00:56:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-04-06 00:56:45 +0100
commit84eaaba2737b2765f3fe843a138002ad0056a52b (patch)
tree4693257d34b7339296bffbe970dbeeb11ec1c7b7
parent846879ae2ec1050b72ac9ddb7c791300e22f6793 (diff)
downloadxorg-driver-xf86-video-intel-84eaaba2737b2765f3fe843a138002ad0056a52b.tar.gz
sna: Add some debug output for clipping in stippled_1_blt
Having just chased a bug along this path, I found the following debug helpful in a narrowing down why certain paths were chosen. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 8ee4ef76..2f669bcf 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -13732,10 +13732,10 @@ sna_poly_fill_rect_stippled_1_blt(DrawablePtr drawable,
uint8_t *dst, *src;
uint32_t *b;
- DBG(("%s: rect (%d, %d)x(%d, %d) stipple [%d,%d]\n",
+ DBG(("%s: rect (%d, %d)x(%d, %d) stipple [%d,%d, src_stride=%d]\n",
__FUNCTION__,
r->x, r->y, r->width, r->height,
- bx1, bx2));
+ bx1, bx2, bstride*bh));
src_stride = bstride*bh;
assert(src_stride > 0);
@@ -13898,6 +13898,12 @@ sna_poly_fill_rect_stippled_1_blt(DrawablePtr drawable,
if (!region_maybe_clip(&clip, gc->pCompositeClip))
return true;
+ DBG(("%s: clip.extents=[(%d, %d), (%d, %d)] region?=%d\n",
+ __FUNCTION__,
+ clip.extents.x1, clip.extents.y1,
+ clip.extents.x2, clip.extents.y2,
+ clip.data ? clip.data->numRects : 0));
+
pat.x = origin->x + drawable->x;
pat.y = origin->y + drawable->y;
@@ -13926,11 +13932,11 @@ sna_poly_fill_rect_stippled_1_blt(DrawablePtr drawable,
bh = box.y2 - box.y1;
bstride = ALIGN(bw, 2);
- DBG(("%s: rect (%d, %d)x(%d, %d), box (%d,%d),(%d,%d) stipple [%d,%d], pitch=%d, stride=%d\n",
+ DBG(("%s: rect (%d, %d)x(%d, %d), box (%d,%d),(%d,%d) stipple [%d,%d], pitch=%d, stride=%d, len=%d\n",
__FUNCTION__,
r->x, r->y, r->width, r->height,
box.x1, box.y1, box.x2, box.y2,
- bx1, bx2, bw, bstride));
+ bx1, bx2, bw, bstride, bstride*bh));
src_stride = bstride*bh;
assert(src_stride > 0);