projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d088d64
)
gallium: fix EMIT_HEADER case in draw_vf_set_vertex_info()
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 13 Mar 2008 23:39:30 +0000
(17:39 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 13 Mar 2008 23:39:30 +0000
(17:39 -0600)
src/gallium/auxiliary/draw/draw_vf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_vf.c
b/src/gallium/auxiliary/draw/draw_vf.c
index 4b5b2a86f6736aadd54c583f66994a4cd7ac4a27..f4e29a6293276eb80124f33a3370c75878cdfaad 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_vf.c
+++ b/
src/gallium/auxiliary/draw/draw_vf.c
@@
-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;