summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-11 19:28:01 +0200
committerMarek Olšák <[email protected]>2010-04-11 19:30:09 +0200
commitdb1b3e714cceb8c4f56aa1be7e165f97886d16f6 (patch)
tree4b5d00f9ffe2a5a24265fccd046e61c655a8fc13 /src
parent6eae8e4482b6d5e3d46e10473b05f16381736a5a (diff)
r300g: a fix for piglit/texrect-many
Broken since 146879284c6b844f35afe3a3ef3330726afbe8ac.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_vs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c
index b71972d0fb5..a2619b38319 100644
--- a/src/gallium/drivers/r300/r300_vs.c
+++ b/src/gallium/drivers/r300/r300_vs.c
@@ -307,7 +307,10 @@ void r300_translate_vertex_shader(struct r300_context* r300,
r300_tgsi_to_rc(&ttr, tokens);
- compiler.RequiredOutputs = ~(~0 << (vs->info.num_outputs+1));
+ compiler.RequiredOutputs =
+ ~(~0 << (vs->info.num_outputs +
+ (vs->outputs.wpos != ATTR_UNUSED ? 1 : 0)));
+
compiler.SetHwInputOutput = &set_vertex_inputs_outputs;
/* Insert the WPOS output. */