summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_vertex.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-03-13 16:55:48 -0600
committerBrian <brian.paul@tungstengraphics.com>2008-03-13 16:55:48 -0600
commitb9518a4e39f739a31dd3f62d67563944f8c266a9 (patch)
tree9c0e04f5b5c73abb72e05653393d1491cb6b0a92 /src/gallium/auxiliary/draw/draw_vertex.c
parent7d5e38a55ae99a4c28873377572f77f383ce0c3e (diff)
gallium: added new EMIT_HEADER token
Used to emit the struct vertex_header info for softpipe. Before we were using the EMIT_ALL token but that's insufficient for the draw pass-through mode. EMIT_ALL might get removed soon...
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vertex.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vertex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vertex.c b/src/gallium/auxiliary/draw/draw_vertex.c
index daf1ef4b80..970adc95e7 100644
--- a/src/gallium/auxiliary/draw/draw_vertex.c
+++ b/src/gallium/auxiliary/draw/draw_vertex.c
@@ -52,6 +52,9 @@ draw_compute_vertex_size(struct vertex_info *vinfo)
switch (vinfo->emit[i]) {
case EMIT_OMIT:
break;
+ case EMIT_HEADER:
+ vinfo->size += sizeof(struct vertex_header) / 4;
+ break;
case EMIT_4UB:
/* fall-through */
case EMIT_1F_PSIZE: