gallium: added EMIT_HEADER case in emit_vertex()

This commit is contained in:
Brian 2008-03-13 16:57:37 -06:00
parent b9518a4e39
commit 13334c8dd2
1 changed files with 5 additions and 0 deletions

View File

@ -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++;