From ae252d3613d10a051657c4ca6db27409f7cf40ae Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 4 May 2010 11:51:41 -0700 Subject: [PATCH] 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. --- ir_to_mesa.cpp | 7 +++++++ ir_to_mesa.h | 7 +------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp index fc0649c60ee..f36dea5f314 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) { diff --git a/ir_to_mesa.h b/ir_to_mesa.h index d9482264d46..cef27f8b79c 100644 --- a/ir_to_mesa.h +++ b/ir_to_mesa.h @@ -92,12 +92,7 @@ public: class ir_to_mesa_visitor : public ir_visitor { public: - ir_to_mesa_visitor() - { - result = NULL; - next_temp = 0; - next_constant = 0; - } + ir_to_mesa_visitor(); int next_temp; int next_constant; -- 2.30.2