summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell/spu/spu_render.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-15 19:40:51 -0600
committerBrian Paul <[email protected]>2008-10-15 20:56:55 -0600
commit1c915b14a545ffb10cc1c98cc69f997b6471617f (patch)
tree312aac552478f94388bf6f070f33e0fe4806990a /src/gallium/drivers/cell/spu/spu_render.c
parent5ecb4f969403c80e9a5e1e94070ec52f99823909 (diff)
cell: updated debug code
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_render.c')
-rw-r--r--src/gallium/drivers/cell/spu/spu_render.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_render.c b/src/gallium/drivers/cell/spu/spu_render.c
index 75a7f75abce..802455bf790 100644
--- a/src/gallium/drivers/cell/spu/spu_render.c
+++ b/src/gallium/drivers/cell/spu/spu_render.c
@@ -176,21 +176,12 @@ cmd_render(const struct cell_command_render *render, uint *pos_incr)
const ushort *indexes;
uint i, j;
-
-#if 0
- printf("SPU %u: RENDER prim %u, num_vert=%u num_ind=%u "
- "inline_vert=%u\n",
- spu.init.id,
- render->prim_type,
- render->num_verts,
- render->num_indexes,
- render->inline_verts);
-
- /*
- printf(" bound: %g, %g .. %g, %g\n",
- render->xmin, render->ymin, render->xmax, render->ymax);
- */
-#endif
+ D_PRINTF(CELL_DEBUG_CMD,
+ "RENDER prim=%u num_vert=%u num_ind=%u inline_vert=%u\n",
+ render->prim_type,
+ render->num_verts,
+ render->num_indexes,
+ render->inline_verts);
ASSERT(sizeof(*render) % 4 == 0);
ASSERT(total_vertex_bytes % 16 == 0);
@@ -293,8 +284,5 @@ cmd_render(const struct cell_command_render *render, uint *pos_incr)
spu.ztile_status[ty][tx] = spu.cur_ztile_status;
}
-#if 0
- printf("SPU %u: RENDER done\n",
- spu.init.id);
-#endif
+ D_PRINTF(CELL_DEBUG_CMD, "RENDER done\n");
}