gallium: debug/print vertex tweak
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 11 Aug 2008 21:01:35 +0000 (15:01 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 11 Aug 2008 21:21:40 +0000 (15:21 -0600)
src/gallium/drivers/softpipe/sp_setup.c

index b48eec730b268a3fdf8114a5b9f3c8f655626c3c..14aacd73c2325cb37a951f93a51d89190a4d2800 100644 (file)
@@ -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);