summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-04 12:24:01 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-04 12:24:01 -0600
commit5ffc5cce1507fd407399911abefeea988a69394e (patch)
treebc37e46afc6d00243f4203ef97478998cdc75f14
parent72f2c55069f167a46560005931382e3b472f92ed (diff)
gallium: new debug code, disabled
-rw-r--r--src/gallium/auxiliary/draw/draw_clip.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_clip.c b/src/gallium/auxiliary/draw/draw_clip.c
index 200152ecab..fd1c71152e 100644
--- a/src/gallium/auxiliary/draw/draw_clip.c
+++ b/src/gallium/auxiliary/draw/draw_clip.c
@@ -181,6 +181,21 @@ static void emit_poly( struct draw_stage *stage,
(header.v[1]->edgeflag << 1) |
(header.v[2]->edgeflag << 2));
+ if (0) {
+ const struct draw_vertex_shader *vs = stage->draw->vertex_shader;
+ uint j, k;
+ printf("Clipped tri:\n");
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < vs->info.num_outputs; k++) {
+ printf(" Vert %d: Attr %d: %f %f %f %f\n", j, k,
+ header.v[j]->data[k][0],
+ header.v[j]->data[k][1],
+ header.v[j]->data[k][2],
+ header.v[j]->data[k][3]);
+ }
+ }
+ }
+
stage->next->tri( stage->next, &header );
header.v[1]->edgeflag = tmp1;