aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pt_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-27 17:51:48 +0100
committerKeith Whitwell <[email protected]>2008-05-27 17:52:24 +0100
commitfd20d1c7e8bbe2f40d73679b1514023772cfd8f6 (patch)
treef040a504d570fa081ece9db7f3ec20bbe4903d74 /src/gallium/auxiliary/draw/draw_pt_emit.c
parent660fee8351542dadc0d5550164e753f7c2d67261 (diff)
draw: add disabled debug code
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_emit.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_emit.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c
index e37256b1ff4..cf87cde9965 100644
--- a/src/gallium/auxiliary/draw/draw_pt_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_emit.c
@@ -41,6 +41,8 @@ struct pt_emit {
struct translate_cache *cache;
unsigned prim;
+
+ const struct vertex_info *vinfo;
};
void draw_pt_emit_prepare( struct pt_emit *emit,
@@ -71,7 +73,7 @@ void draw_pt_emit_prepare( struct pt_emit *emit,
/* Must do this after set_primitive() above:
*/
- vinfo = draw->render->get_vertex_info(draw->render);
+ emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render);
/* Translate from pipeline vertices to hw vertices.
@@ -245,6 +247,17 @@ void draw_pt_emit_linear(struct pt_emit *emit,
vertex_count,
hw_verts);
+ if (0) {
+ unsigned i;
+ for (i = 0; i < vertex_count; i++) {
+ debug_printf("\n\n%s vertex %d:\n", __FUNCTION__, i);
+ draw_dump_emitted_vertex( emit->vinfo,
+ (const uint8_t *)hw_verts +
+ translate->key.output_stride * i );
+ }
+ }
+
+
render->draw_arrays(render, start, count);
render->release_vertices(render,