From: Zack Rusin Date: Wed, 19 Dec 2007 10:28:28 +0000 (-0500) Subject: i965: stuff the outputs into mrf registers when possible X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93d90c6b570298ea96c5952af1acb31b0a89362c;p=mesa.git i965: stuff the outputs into mrf registers when possible --- 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 }