mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
gallium: fix EMIT_HEADER case in draw_vf_set_vertex_info()
This commit is contained in:
parent
d088d640fc
commit
34be396950
1 changed files with 5 additions and 1 deletions
|
|
@ -265,7 +265,11 @@ void draw_vf_set_vertex_info( struct draw_vertex_fetch *vf,
|
|||
}
|
||||
case EMIT_HEADER:
|
||||
/* XXX emit new DRAW_EMIT_HEADER attribute??? */
|
||||
count += sizeof(struct vertex_header) / 4;
|
||||
attrs[nr_attrs].attrib = 0;
|
||||
attrs[nr_attrs].format = DRAW_EMIT_PAD;
|
||||
attrs[nr_attrs].offset = offsetof(struct vertex_header, data);
|
||||
count += offsetof(struct vertex_header, data)/4;
|
||||
nr_attrs++;
|
||||
break;
|
||||
case EMIT_1F:
|
||||
attrs[nr_attrs].attrib = j;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue