i965: stuff the outputs into mrf registers when possible
authorZack Rusin <zack@tungstengraphics.com>
Wed, 19 Dec 2007 10:28:28 +0000 (05:28 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Wed, 19 Dec 2007 10:28:28 +0000 (05:28 -0500)
src/mesa/pipe/i965simple/brw_vs_emit.c

index 174f56ff340f84c1a9709848ffc00b6c09c9c5c5..d8483f213a5443817a940e3c0f4c257497634ab5 100644 (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
    }