diff options
author | Keith Whitwell <[email protected]> | 2009-12-21 16:57:37 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-12-21 16:57:37 +0000 |
commit | 061411b2611634960f0ba36e42916c67918bb53d (patch) | |
tree | 456176c5be87b1d3352231b9c8c6d9839e8339c8 /src/gallium/drivers/i965/brw_draw.c | |
parent | 1ec7e058f50882b27c0a2abd961bd49848386ff7 (diff) |
i965g: hook vertex state emit up to PIPE_NEW_VERTEX_BUFFER
Diffstat (limited to 'src/gallium/drivers/i965/brw_draw.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_draw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_draw.c b/src/gallium/drivers/i965/brw_draw.c index 45d5ade1fc7..4498773dd86 100644 --- a/src/gallium/drivers/i965/brw_draw.c +++ b/src/gallium/drivers/i965/brw_draw.c @@ -92,6 +92,10 @@ static int brw_emit_prim(struct brw_context *brw, struct brw_3d_primitive prim_packet; int ret; + if (BRW_DEBUG & DEBUG_PRIMS) + debug_printf("%s start %d count %d indexed %d hw_prim %d\n", + __FUNCTION__, start, count, indexed, hw_prim); + prim_packet.header.opcode = CMD_3D_PRIM; prim_packet.header.length = sizeof(prim_packet)/4 - 2; prim_packet.header.pad = 0; @@ -187,7 +191,8 @@ brw_draw_range_elements(struct pipe_context *pipe, hw_prim = brw_set_prim(brw, mode); if (BRW_DEBUG & DEBUG_PRIMS) - debug_printf("PRIM: %s %d %d\n", u_prim_name(mode), start, count); + debug_printf("PRIM: %s start %d count %d index_buffer %p\n", + u_prim_name(mode), start, count, (void *)index_buffer); /* Potentially trigger upload of new index buffer. * |