summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_vs_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-06 10:19:24 +0000
committerKeith Whitwell <[email protected]>2009-11-06 10:19:24 +0000
commit5d7c0cf563b65aeb83f3d2f2ec709a96cf0fbae2 (patch)
tree762eb68bfdd82cf909205501d6ecb167e1a3bb6f /src/gallium/drivers/i965/brw_vs_emit.c
parentb216f1aa474196661aacbaf29604659172d1a74e (diff)
i965g: tgsi outputs cannot be used as source regs
Diffstat (limited to 'src/gallium/drivers/i965/brw_vs_emit.c')
-rw-r--r--src/gallium/drivers/i965/brw_vs_emit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_vs_emit.c b/src/gallium/drivers/i965/brw_vs_emit.c
index 3217777acba..25aea87b8f9 100644
--- a/src/gallium/drivers/i965/brw_vs_emit.c
+++ b/src/gallium/drivers/i965/brw_vs_emit.c
@@ -171,7 +171,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c )
/* Allocate outputs. The non-position outputs go straight into message regs.
*/
- c->nr_outputs = 0;
+ c->nr_outputs = c->prog_data.nr_outputs;
c->first_output = reg;
c->first_overflow_output = 0;
@@ -182,7 +182,6 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c )
/* XXX: need to access vertex output semantics here:
*/
- c->nr_outputs = c->prog_data.nr_outputs;
for (i = 0; i < c->prog_data.nr_outputs; i++) {
assert(i < Elements(c->regs[TGSI_FILE_OUTPUT]));
@@ -244,12 +243,14 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c )
}
}
+#if 0
for (i = 0; i < 128; i++) {
if (c->output_regs[i].used_in_src) {
c->output_regs[i].reg = brw_vec8_grf(reg, 0);
reg++;
}
}
+#endif
c->stack = brw_uw16_reg(BRW_GENERAL_REGISTER_FILE, reg, 0);
reg += 2;