sna: Include some DBG for segment drawing

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-10 10:57:56 +01:00
parent 3aa98289e3
commit 9af651fdf9
1 changed files with 7 additions and 1 deletions

View File

@ -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;