From: Eric Anholt Date: Mon, 28 Jun 2010 18:44:30 +0000 (-0700) Subject: ir_to_mesa: Traverse the "else" instrs after "else", instead of "then" again. X-Git-Tag: 062012170305~10660^2~598 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a52e8b691cecfeec27717c3289763226d5f1bda;p=profile%2Fivi%2Fmesa.git ir_to_mesa: Traverse the "else" instrs after "else", instead of "then" again. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index b8113da..a825bf9 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -1159,7 +1159,7 @@ ir_to_mesa_visitor::visit(ir_if *ir) else_inst = ir_to_mesa_emit_op1(ir->condition, OPCODE_ELSE, ir_to_mesa_undef_dst, ir_to_mesa_undef); - visit_exec_list(&ir->then_instructions, this); + visit_exec_list(&ir->else_instructions, this); } if_inst = ir_to_mesa_emit_op1(ir->condition, OPCODE_ENDIF,