i965: stuff the outputs into mrf registers when possible

This commit is contained in:
Zack Rusin 2007-12-19 05:28:28 -05:00
parent 4e1a445866
commit 93d90c6b57

View file

@ -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
}