summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-16 10:12:12 +0100
committerKeith Whitwell <[email protected]>2008-04-16 12:22:20 +0100
commit909e8ce543a6c1e97d55791d2069cbdc56ea9db6 (patch)
tree2e59afcd16a15648b028fbb932be3dd7339921ac /src/gallium/auxiliary
parenta8582efaca35d09c8ca18918a243a9284583356d (diff)
draw: update debug code
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_vbuf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vbuf.c b/src/gallium/auxiliary/draw/draw_vbuf.c
index e3216ff711d..eeb194afaa7 100644
--- a/src/gallium/auxiliary/draw/draw_vbuf.c
+++ b/src/gallium/auxiliary/draw/draw_vbuf.c
@@ -113,12 +113,12 @@ check_space( struct vbuf_stage *vbuf, unsigned nr )
}
-#if 0
+#if 1
static INLINE void
dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data)
{
- assert(vinfo == vbuf->render->get_vertex_info(vbuf->render));
- unsigned i, j, k;
+// assert(vinfo == vbuf->render->get_vertex_info(vbuf->render));
+ unsigned i, j;
for (i = 0; i < vinfo->num_attribs; i++) {
j = vinfo->src_index[i];
@@ -264,6 +264,8 @@ emit_vertex( struct vbuf_stage *vbuf,
}
else {
draw_vf_emit_vertex(vbuf->vf, vertex, vbuf->vertex_ptr);
+
+ if (0) dump_emitted_vertex(vbuf->vinfo, (uint8_t *)vbuf->vertex_ptr);
vbuf->vertex_ptr += vbuf->vertex_size/4;
}