gallium: added EMIT_HEADER case in emit_vertex()
This commit is contained in:
parent
b9518a4e39
commit
13334c8dd2
|
@ -225,6 +225,11 @@ emit_vertex( struct vbuf_stage *vbuf,
|
||||||
vbuf->vertex_ptr += vinfo->size;
|
vbuf->vertex_ptr += vinfo->size;
|
||||||
count += vinfo->size;
|
count += vinfo->size;
|
||||||
break;
|
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:
|
case EMIT_1F:
|
||||||
*vbuf->vertex_ptr++ = fui(vertex->data[j][0]);
|
*vbuf->vertex_ptr++ = fui(vertex->data[j][0]);
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Reference in New Issue