aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/cell/spu
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2008-02-04 16:03:55 -0800
committerIan Romanick <[email protected]>2008-02-05 09:44:33 -0800
commit45f4125fa83c4e43a01d44cb8eb2a4c97b72181f (patch)
tree96258c6c78e2dc2658d5bbf9311a5876ed7d3b09 /src/mesa/pipe/cell/spu
parente8a80c8627972537c595f06fb28cd383569e7ea0 (diff)
Add some debug messages
Diffstat (limited to 'src/mesa/pipe/cell/spu')
-rw-r--r--src/mesa/pipe/cell/spu/spu_vertex_fetch.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_vertex_fetch.c b/src/mesa/pipe/cell/spu/spu_vertex_fetch.c
index 4133fbba179..cfa449e8130 100644
--- a/src/mesa/pipe/cell/spu/spu_vertex_fetch.c
+++ b/src/mesa/pipe/cell/spu/spu_vertex_fetch.c
@@ -378,7 +378,10 @@ static void generic_vertex_fetch(struct spu_vs_context *draw,
wait_on_mask(1 << TAG_VERTEX_BUFFER);
-// _mesa_printf("%s %d\n", __FUNCTION__, count);
+#if DRAW_DBG
+ printf("SPU: %s count = %u, nr_attrs = %u\n",
+ __FUNCTION__, count, nr_attrs);
+#endif
/* loop over vertex attributes (vertex shader inputs)
*/
@@ -401,6 +404,9 @@ static void generic_vertex_fetch(struct spu_vs_context *draw,
const uint64_t addr = src + (elts[i] * pitch);
const unsigned size = ((addr & 0x0f) == 0) ? 16 : 32;
+#if DRAW_DBG
+ printf("SPU: fetching = 0x%llx\n", addr);
+#endif
mfc_get(buffer, addr & ~0x0f, size, TAG_VERTEX_BUFFER, 0, 0);
wait_on_mask(1 << TAG_VERTEX_BUFFER);