for (j = 0; j + first <= count; j += i) {
unsigned end = MIN2(FETCH_MAX, count - j);
end -= (end % incr);
- for (i = 0; i < count; i ++) {
+ for (i = 0; i < count; i++) {
POINT(varray, i + 0);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
LINE(varray, DRAW_PIPE_RESET_STIPPLE,
i + 0, i + 1);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
LINE(varray, flags, i - 1, i);
}
LINE(varray, flags, i - 1, 0);
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
for (i = 1; i < end; i++, flags = 0) {
LINE(varray, flags, i - 1, i);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
TRIANGLE(varray, DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
i + 0, i + 1, i + 2);
}
+ i = end;
varray->fetch_count = end;
varray_flush_linear(varray);
varray->fetch_start += end;
TRIANGLE(varray, DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
i + 0, i + 1 + (i&1), i + 2 - (i&1));
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
TRIANGLE(varray, DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
i + 0 + (i&1), i + 1 - (i&1), i + 2);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
for (i = 0; i+2 < end; i++) {
TRIANGLE(varray, flags, i + 1, i + 2, 0);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
for (i = 0; i+2 < end; i++) {
TRIANGLE(varray, flags, 0, i + 1, i + 2);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
for (i = 0; i+3 < end; i += 4) {
QUAD(varray, i + 0, i + 1, i + 2, i + 3);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
for (i = 0; i+3 < end; i += 2) {
QUAD(varray, i + 2, i + 0, i + 1, i + 3);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}
TRIANGLE(varray, flags, i + 1, i + 2, 0);
}
+ i = end;
fetch_init(varray, end);
varray_flush(varray);
}