i965: handle address reg in get_dst()

This commit is contained in:
Brian Paul
2009-04-15 14:53:51 -06:00
parent f2cfbfa2ba
commit 19ac3e2729
+4
View File
@@ -925,6 +925,10 @@ static struct brw_reg get_dst( struct brw_vs_compile *c,
assert(c->regs[dst.File][dst.Index].nr != 0);
reg = c->regs[dst.File][dst.Index];
break;
case PROGRAM_ADDRESS:
assert(dst.Index == 0);
reg = c->regs[dst.File][dst.Index];
break;
case PROGRAM_UNDEFINED:
/* we may hit this for OPCODE_END, OPCODE_KIL, etc */
reg = brw_null_reg();