mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
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...
This commit is contained in:
parent
7d5e38a55a
commit
b9518a4e39
2 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
enum attrib_emit {
|
||||
EMIT_OMIT, /**< don't emit the attribute */
|
||||
EMIT_ALL, /**< emit whole post-xform vertex, w/ header */
|
||||
EMIT_HEADER, /**< emit vertex_header struct (XXX temp?) */
|
||||
EMIT_1F,
|
||||
EMIT_1F_PSIZE, /**< insert constant point size */
|
||||
EMIT_2F,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue