summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-19 20:20:40 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-19 20:20:40 +0100
commit68a7cb21fa14eac9e38bf398623739a892cc0d52 (patch)
tree486341084e2258ebf0b458fbf56e4c49fbefc09e /src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
parentd0a4bf08b1a80d62f81301c5b37723dfca436b62 (diff)
draw: rearrange debug code
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_emit.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_emit.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
index 70d136dce6..002ced2186 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
@@ -75,6 +75,7 @@ struct fetch_emit_middle_end {
struct draw_context *draw;
struct translate *translate;
+ const struct vertex_info *vinfo;
/* Cache point size somewhere it's address won't change:
*/
@@ -106,9 +107,9 @@ static void fetch_emit_prepare( struct draw_pt_middle_end *middle,
/* Must do this after set_primitive() above:
*/
- vinfo = draw->render->get_vertex_info(draw->render);
-
-
+ vinfo = feme->vinfo = draw->render->get_vertex_info(draw->render);
+
+
/* Transform from API vertices to HW vertices, skipping the
* pipeline_vertex intermediate step.
@@ -229,6 +230,15 @@ static void fetch_emit_run( struct draw_pt_middle_end *middle,
fetch_count,
hw_verts );
+ if (0) {
+ unsigned i;
+ for (i = 0; i < fetch_count; i++) {
+ debug_printf("\n\nvertex %d:\n", i);
+ draw_dump_emitted_vertex( feme->vinfo,
+ (const uint8_t *)hw_verts + feme->vinfo->size * 4 * i );
+ }
+ }
+
/* XXX: Draw arrays path to avoid re-emitting index list again and
* again.
*/