projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e1a445
)
i965: stuff the outputs into mrf registers when possible
author
Zack Rusin
<zack@tungstengraphics.com>
Wed, 19 Dec 2007 10:28:28 +0000
(
05:28
-0500)
committer
Zack Rusin
<zack@tungstengraphics.com>
Wed, 19 Dec 2007 10:28:28 +0000
(
05:28
-0500)
src/mesa/pipe/i965simple/brw_vs_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/i965simple/brw_vs_emit.c
b/src/mesa/pipe/i965simple/brw_vs_emit.c
index 174f56ff340f84c1a9709848ffc00b6c09c9c5c5..d8483f213a5443817a940e3c0f4c257497634ab5 100644
(file)
--- 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
}