diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-08-15 19:03:20 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-08-15 19:04:45 -0600 |
commit | d9a230f30a98eb677bba869a6f7bb9a840e36354 (patch) | |
tree | a87287fc96f6e41173448dc9b7cd9f9222398e48 /src/mesa/pipe/softpipe/sp_state_derived.c | |
parent | 2de99586246d758da14e281718d85c499d1969d6 (diff) |
Hook in new draw_arrays() code, disabled for now.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_derived.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_derived.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_derived.c b/src/mesa/pipe/softpipe/sp_state_derived.c index cd67d1c46f..44beb9c3eb 100644 --- a/src/mesa/pipe/softpipe/sp_state_derived.c +++ b/src/mesa/pipe/softpipe/sp_state_derived.c @@ -156,9 +156,16 @@ static void calculate_vertex_layout( struct softpipe_context *softpipe ) if (attr_mask != softpipe->attr_mask) { softpipe->attr_mask = attr_mask; +#define USE_NEW_DRAW 0 +#if USE_NEW_DRAW + draw_set_vertex_attributes2( softpipe->draw, + slot_to_vf_attr, + softpipe->nr_attrs ); +#else draw_set_vertex_attributes( softpipe->draw, slot_to_vf_attr, softpipe->nr_attrs ); +#endif } } |