From: Brian Paul Date: Mon, 11 Aug 2008 21:01:35 +0000 (-0600) Subject: gallium: debug/print vertex tweak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d506fc0acf68c861c4e160a3d931a3f81757242b;p=mesa.git gallium: debug/print vertex tweak --- diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c index b48eec730b2..14aacd73c23 100644 --- a/src/gallium/drivers/softpipe/sp_setup.c +++ b/src/gallium/drivers/softpipe/sp_setup.c @@ -1272,10 +1272,7 @@ void setup_prepare( struct setup_context *setup ) } /* Note: nr_attrs is only used for debugging (vertex printing) */ - { - const struct sp_fragment_shader *fs = setup->softpipe->fs; - setup->quad.nr_attrs = fs->info.num_inputs + 1; /* +1 for vert pos */ - } + setup->quad.nr_attrs = draw_num_vs_outputs(sp->draw); sp->quad.first->begin(sp->quad.first);