summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vertex.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-09-10 11:39:43 +0100
committerKeith Whitwell <[email protected]>2008-10-06 11:49:42 +0100
commit53d4706c6c0922160f310834daaec5718ff1c511 (patch)
treeac5c5d1ac44c60b822a3b8f04e5241a127aaab73 /src/gallium/auxiliary/draw/draw_vertex.c
parent0370d6b359016790c6b879c2a4b6661adac20dea (diff)
make draw's vertex_info struct smaller/quicker to compare with memcmp()
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vertex.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vertex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vertex.c b/src/gallium/auxiliary/draw/draw_vertex.c
index 1446f785c51..3214213e445 100644
--- a/src/gallium/auxiliary/draw/draw_vertex.c
+++ b/src/gallium/auxiliary/draw/draw_vertex.c
@@ -49,7 +49,7 @@ draw_compute_vertex_size(struct vertex_info *vinfo)
vinfo->size = 0;
for (i = 0; i < vinfo->num_attribs; i++) {
- switch (vinfo->emit[i]) {
+ switch (vinfo->attrib[i].emit) {
case EMIT_OMIT:
break;
case EMIT_4UB:
@@ -81,8 +81,8 @@ draw_dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data)
unsigned i, j;
for (i = 0; i < vinfo->num_attribs; i++) {
- j = vinfo->src_index[i];
- switch (vinfo->emit[i]) {
+ j = vinfo->attrib[i].src_index;
+ switch (vinfo->attrib[i].emit) {
case EMIT_OMIT:
debug_printf("EMIT_OMIT:");
break;