summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-13 16:57:37 -0600
committerBrian <[email protected]>2008-03-13 16:57:37 -0600
commit13334c8dd2744402d43f8ea0a9d2c0e5e76ac28e (patch)
tree4d28f958cc7c34e9d42e988a9c0946d1d9da544c /src/gallium/auxiliary
parentb9518a4e39f739a31dd3f62d67563944f8c266a9 (diff)
gallium: added EMIT_HEADER case in emit_vertex()
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_vbuf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vbuf.c b/src/gallium/auxiliary/draw/draw_vbuf.c
index 71ac73912b8..f83b441e939 100644
--- a/src/gallium/auxiliary/draw/draw_vbuf.c
+++ b/src/gallium/auxiliary/draw/draw_vbuf.c
@@ -225,6 +225,11 @@ emit_vertex( struct vbuf_stage *vbuf,
vbuf->vertex_ptr += vinfo->size;
count += vinfo->size;
break;
+ case EMIT_HEADER:
+ memcpy(vbuf->vertex_ptr, vertex, sizeof(*vertex));
+ *vbuf->vertex_ptr += sizeof(*vertex) / 4;
+ count += sizeof(*vertex) / 4;
+ break;
case EMIT_1F:
*vbuf->vertex_ptr++ = fui(vertex->data[j][0]);
count++;