From: Brian Date: Thu, 13 Mar 2008 22:57:37 +0000 (-0600) Subject: gallium: added EMIT_HEADER case in emit_vertex() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13334c8dd2744402d43f8ea0a9d2c0e5e76ac28e;p=mesa.git gallium: added EMIT_HEADER case in emit_vertex() --- 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++;