summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_prim_vbuf.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-23 23:08:59 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-23 23:08:59 -0700
commit6000dcc973cdc1bd61621b432aed27d21059ae5d (patch)
treeb0995cac257f0da72d4e844da4a4b623ffbeef83 /src/mesa/pipe/softpipe/sp_prim_vbuf.c
parentdc1abc393206c3eb00e7cca60ce3499c993bc1f6 (diff)
gallium: improved vertex layout and interpolant setup in softpipe
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_prim_vbuf.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_vbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_vbuf.c b/src/mesa/pipe/softpipe/sp_prim_vbuf.c
index 0ab8a55d7d..dfabae8302 100644
--- a/src/mesa/pipe/softpipe/sp_prim_vbuf.c
+++ b/src/mesa/pipe/softpipe/sp_prim_vbuf.c
@@ -75,7 +75,7 @@ sp_vbuf_get_vertex_info(struct vbuf_render *vbr)
struct softpipe_vbuf_render *cvbr = softpipe_vbuf_render(vbr);
/* XXX check for state changes? */
assert(!cvbr->softpipe->dirty );
- return &cvbr->softpipe->vertex_info;
+ return &cvbr->softpipe->vertex_info_vbuf;
}
@@ -140,7 +140,7 @@ sp_vbuf_draw(struct vbuf_render *vbr, const ushort *indices, uint nr_indices)
struct softpipe_context *softpipe = cvbr->softpipe;
struct draw_stage *setup = softpipe->setup;
struct prim_header prim;
- unsigned vertex_size = softpipe->vertex_info.size * sizeof(float);
+ unsigned vertex_size = softpipe->vertex_info_vbuf.size * sizeof(float);
unsigned i, j;
void *vertex_buffer = cvbr->vertex_buffer;