From 9af651fdf93f6ccdbcb147cb16989f84c2d0ebdc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 May 2012 10:57:56 +0100 Subject: [PATCH] sna: Include some DBG for segment drawing Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 636efdd4..b8ca2147 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -7188,8 +7188,8 @@ rectangle_continue: b->y1 = y1; dirty = false; while (length--) { - e += e1; dirty = true; + e += e1; if (e >= 0) { e += e3; @@ -7200,6 +7200,10 @@ rectangle_continue: b->x2 = x1 + 1; b->y2 = b->y1 + 1; + DBG(("%s: horizontal step: (%d, %d), box: (%d, %d), (%d, %d)\n", + __FUNCTION__, x1, y1, + b->x1, b->y1, b->x2, b->y2)); + if (++b == last_box) { ret = &&X_continue; goto *jump; @@ -7215,6 +7219,8 @@ X_continue: } if (dirty) { x1 -= sdx; + DBG(("%s: horizontal tail: (%d, %d)\n", + __FUNCTION__, x1, y1)); if (sdx < 0) { b->x2 = b->x1 + 1; b->x1 = x1;