ir_to_mesa: Make the first temp index we use 1 to show off bugs.

Regs aren't allocated at the right times yet, so we see TEMP[0] a lot.
This commit is contained in:
Eric Anholt
2010-05-04 11:51:41 -07:00
parent 7aa0b034f7
commit ae252d3613
2 changed files with 8 additions and 6 deletions

View File

@@ -496,6 +496,13 @@ ir_to_mesa_visitor::visit(ir_if *ir)
exit(1);
}
ir_to_mesa_visitor::ir_to_mesa_visitor()
{
result = NULL;
next_temp = 1;
next_constant = 0;
}
static struct prog_src_register
mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg reg)
{