summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-11 11:31:03 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-11 11:31:03 -0700
commit6b5d674f915b67f3b51c331e3a6ba02e9f82473f (patch)
treed0877298fe3db8fadefa837b7c5d1901519ce69f
parent21b282e9347d06272e5dfc795aa7c0b861c240e1 (diff)
Cell: debug code, comments
-rw-r--r--src/mesa/pipe/cell/ppu/cell_vbuf.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_vbuf.c b/src/mesa/pipe/cell/ppu/cell_vbuf.c
index 1d9a57ce44..63c3b39ec7 100644
--- a/src/mesa/pipe/cell/ppu/cell_vbuf.c
+++ b/src/mesa/pipe/cell/ppu/cell_vbuf.c
@@ -98,6 +98,20 @@ cell_vbuf_draw(struct vbuf_render *vbr,
float xmin, ymin, xmax, ymax;
uint i;
+#if 0
+ printf("cell_vbuf_draw() nr_indices = %u nr_verts = %u\n",
+ nr_indices, nr_vertices);
+ printf(" ");
+ for (i = 0; i < nr_indices; i += 3) {
+ printf("%u %u %u, ", indices[i+0], indices[i+1], indices[i+2]);
+ }
+ printf("\n");
+#elif 0
+ printf("cell_vbuf_draw() nr_indices = %u nr_verts = %u indexes = [%u %u %u ...]\n",
+ nr_indices, nr_vertices,
+ indices[0], indices[1], indices[2]);
+#endif
+
/* compute x/y bounding box */
xmin = ymin = 1e50;
xmax = ymax = -1e50;
@@ -113,8 +127,6 @@ cell_vbuf_draw(struct vbuf_render *vbr,
ymax = v[1];
}
- /*printf("cell_vbuf_draw nr_indices = %u\n", nr_indices);*/
-
if (prim != PIPE_PRIM_TRIANGLES)
return; /* only render tris for now */
@@ -136,6 +148,7 @@ cell_vbuf_draw(struct vbuf_render *vbr,
send_mbox_message(cell_global.spe_contexts[i], CELL_CMD_RENDER);
}
+ /* XXX this is temporary */
cell_flush(&cell->pipe, 0x0);
}