summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_prim_vbuf.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-23 12:48:41 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-23 12:48:41 -0700
commitcd3643698eafa0869a8317b002e5b066de0172e7 (patch)
treee7474c2e8079b5069b68adca09bd9882bf65c4c9 /src/mesa/pipe/softpipe/sp_prim_vbuf.c
parentb3f081999f8eb904370df7492e39184268c77c13 (diff)
gallium: overhaul usage of vertex_info in draw module.
Remove all dependencies on vertex_info, except for draw_vbuf. Drawing stages now strictly operate on post-transformed vertices and don't know anything about hw vertices. Use vertex program output info for two-side/flat/etc stages. Temporarily disable vbuf module in softpipe driver.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_prim_vbuf.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_vbuf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_vbuf.c b/src/mesa/pipe/softpipe/sp_prim_vbuf.c
index 055cb19f9a..1d58e375a9 100644
--- a/src/mesa/pipe/softpipe/sp_prim_vbuf.c
+++ b/src/mesa/pipe/softpipe/sp_prim_vbuf.c
@@ -263,8 +263,11 @@ static void vbuf_flush_elements( struct draw_stage *stage )
static void vbuf_begin( struct draw_stage *stage )
{
struct vbuf_stage *vbuf = vbuf_stage(stage);
+ struct softpipe_context *softpipe = softpipe_context(vbuf->pipe);
- vbuf->vertex_size = vbuf->draw_context->vertex_info.size * sizeof(float);
+ //vbuf->vertex_size = vbuf->draw_context->vertex_info.size * sizeof(float);
+
+ vbuf->vertex_size = softpipe->vertex_info.size * sizeof(float);
}