summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-22 18:47:19 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-22 18:52:40 -0600
commit69ab4b23f5a67451e262b75f4a1a40949fc5868c (patch)
tree99fd3fa57475b7a352ec9ac76112f84ae61fb116 /src
parentfa8cbc45e883762f3c3f1f11497a035c217f8d65 (diff)
more debug output
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_prim.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/mesa/pipe/draw/draw_prim.c b/src/mesa/pipe/draw/draw_prim.c
index 94cedb02a9..8f409424ca 100644
--- a/src/mesa/pipe/draw/draw_prim.c
+++ b/src/mesa/pipe/draw/draw_prim.c
@@ -137,8 +137,7 @@ run_vertex_program(struct draw_context *draw,
unsigned int j;
#if 0
- static FILE *file = NULL;
- unsigned i;
+ FILE *file = stdout;
#endif
ALIGN16_DECL(struct tgsi_exec_vector, inputs, PIPE_ATTRIB_MAX);
@@ -207,9 +206,9 @@ run_vertex_program(struct draw_context *draw,
machine.Inputs[attr].xyzw[2].f[j] = p[2]; /*Z*/
machine.Inputs[attr].xyzw[3].f[j] = p[3]; /*W*/
#if 0
- if (attr == 0) {
- fprintf(file, "Input vertex %d: %f %f %f\n",
- j, p[0], p[1], p[2]);
+ if (1/*attr == 0*/) {
+ fprintf(file, "Input vertex %d: attr %d: %f %f %f %f\n",
+ j, attr, p[0], p[1], p[2], p[3]);
fflush( file );
}
#endif
@@ -269,11 +268,12 @@ run_vertex_program(struct draw_context *draw,
vOut[j]->data[0][2] = z * scale[2] + trans[2];
vOut[j]->data[0][3] = w;
#if 0
- fprintf(file, "wincoord: %f %f %f %f\n",
- vOut[j]->data[0][0],
- vOut[j]->data[0][1],
- vOut[j]->data[0][2],
- vOut[j]->data[0][3]);
+ fprintf(file, "Vert %d: wincoord: %f %f %f %f\n",
+ j,
+ vOut[j]->data[0][0],
+ vOut[j]->data[0][1],
+ vOut[j]->data[0][2],
+ vOut[j]->data[0][3]);
fflush( file );
#endif
@@ -287,6 +287,14 @@ run_vertex_program(struct draw_context *draw,
vOut[j]->data[slot][1] = machine.Outputs[attr].xyzw[1].f[j];
vOut[j]->data[slot][2] = machine.Outputs[attr].xyzw[2].f[j];
vOut[j]->data[slot][3] = machine.Outputs[attr].xyzw[3].f[j];
+#if 0
+ fprintf(file, "output attrib %d slot %d: %f %f %f %f\n",
+ attr, slot,
+ vOut[j]->data[slot][0],
+ vOut[j]->data[slot][1],
+ vOut[j]->data[slot][2],
+ vOut[j]->data[slot][3]);
+#endif
slot++;
}
}