diff options
author | Zack Rusin <[email protected]> | 2007-12-19 05:28:28 -0500 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-12-19 05:28:28 -0500 |
commit | 93d90c6b570298ea96c5952af1acb31b0a89362c (patch) | |
tree | 1604e109600d19fbcdcf7ecdcb380ec1d562a8a1 | |
parent | 4e1a4458662e1766e9de7ce0e23de0766dcb1b9e (diff) |
i965: stuff the outputs into mrf registers when possible
-rw-r--r-- | src/mesa/pipe/i965simple/brw_vs_emit.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/pipe/i965simple/brw_vs_emit.c b/src/mesa/pipe/i965simple/brw_vs_emit.c index 174f56ff340..d8483f213a5 100644 --- a/src/mesa/pipe/i965simple/brw_vs_emit.c +++ b/src/mesa/pipe/i965simple/brw_vs_emit.c @@ -117,9 +117,14 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c, mrf++; } #else - /* for now stuff everything in grf */ - c->regs[TGSI_FILE_OUTPUT][i] = brw_vec8_grf(reg, 0); - reg++; + /*treat pos differently for now */ + if (i == info->pos_idx) { + c->regs[TGSI_FILE_OUTPUT][i] = brw_vec8_grf(reg, 0); + reg++; + } else { + c->regs[TGSI_FILE_OUTPUT][i] = brw_message_reg(mrf); + mrf++; + } #endif } |