gallium: added EMIT_HEADER case in emit_vertex()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 13 Mar 2008 22:57:37 +0000 (16:57 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 13 Mar 2008 22:57:37 +0000 (16:57 -0600)
src/gallium/auxiliary/draw/draw_vbuf.c

index 71ac73912b86bf0d2d5797709a84c431293be3a4..f83b441e93968cf10bf86f5edda3bb4eb8ec2d4e 100644 (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++;