summaryrefslogtreecommitdiff
path: root/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-05-04 11:51:41 -0700
committerEric Anholt <eric@anholt.net>2010-06-24 15:05:19 -0700
commitae252d3613d10a051657c4ca6db27409f7cf40ae (patch)
treebc25940d7881504b1bb4dc3fb4ecd0a41d9ddbff /ir_to_mesa.cpp
parent7aa0b034f70e3140aece94091b2ab200427077e9 (diff)
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.
Diffstat (limited to 'ir_to_mesa.cpp')
-rw-r--r--ir_to_mesa.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp
index fc0649c60e..f36dea5f31 100644
--- a/ir_to_mesa.cpp
+++ b/ir_to_mesa.cpp
@@ -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)
{