summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-08-11 15:01:35 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-11 15:21:40 -0600
commitd506fc0acf68c861c4e160a3d931a3f81757242b (patch)
tree77f61577b02b690d8b26cb3d71a9d9a09d7b44ec
parent22604727e469f4a9881f722be319670d5cde4519 (diff)
gallium: debug/print vertex tweak
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index b48eec730b..14aacd73c2 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);