diff options
author | Corbin Simpson <[email protected]> | 2009-02-23 05:04:17 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-02-23 05:59:59 -0800 |
commit | d265706cd3849679e543797b4ad4edf463cd4586 (patch) | |
tree | 3c4adc6befd233d1b0224e6e7f13bb82cbcfcf31 /src | |
parent | 65b79383fb0ad7e14d097f6fdd7227605df4c7cb (diff) |
r300-gallium: Fix pasto and debug messages.
This could explain at least one kind of lockup. Yay?
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r300/r300_swtcl_emit.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_swtcl_emit.c b/src/gallium/drivers/r300/r300_swtcl_emit.c index 141fa57590e..5b028aaf7b7 100644 --- a/src/gallium/drivers/r300/r300_swtcl_emit.c +++ b/src/gallium/drivers/r300/r300_swtcl_emit.c @@ -184,6 +184,9 @@ static void prepare_render(struct r300_swtcl_render* render) /* Make sure that all possible state is emitted. */ r300_emit_dirty_state(r300); + debug_printf("r300: Preparing vertex buffer %p for render, " + "vertex size %d, vertex count %d\n", render->vbo, + r300->vertex_info.vinfo.size, render->vbo_size); /* Set the pointer to our vertex buffer. The emitted values are this: * PACKET3 [3D_LOAD_VBPNTR] * COUNT [1] @@ -210,9 +213,11 @@ static void r300_swtcl_render_draw_arrays(struct vbuf_render* render, prepare_render(r300render); + debug_printf("r300: Doing vbuf render, count %d\n", count); + BEGIN_CS(2); OUT_CS(CP_PACKET3(R300_PACKET3_3D_DRAW_VBUF_2, 0)); - OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) | + OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST | (count << 16) | r300render->hwprim | R300_VAP_VF_CNTL__INDEX_SIZE_32bit); END_CS; } @@ -243,6 +248,8 @@ static void r300_swtcl_render_draw(struct vbuf_render* render, memcpy(index_map, indices, count * 4); pipe_buffer_unmap(screen, index_buffer); + debug_printf("r300: Doing indexbuf render, count %d\n", count); + BEGIN_CS(5); OUT_CS(CP_PACKET3(R300_PACKET3_3D_DRAW_INDX_2, 0)); OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) | |