From: Luca Barbieri Date: Tue, 7 Sep 2010 00:15:26 +0000 (+0200) Subject: glsl: call ir_lower_jumps according to compiler options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87708e8c90220cc1997cef9de9b394c04d952be9;p=mesa.git glsl: call ir_lower_jumps according to compiler options --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 6e7deae4331..6d67da495d2 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2729,6 +2729,8 @@ _mesa_ir_link_shader(GLcontext *ctx, struct gl_shader_program *prog) do_div_to_mul_rcp(ir); do_explog_to_explog2(ir); + progress = do_lower_jumps(ir, true, true, options->EmitNoMainReturn, options->EmitNoCont, options->EmitNoLoops) || progress; + progress = do_common_optimization(ir, true, options->MaxUnrollIterations) || progress; if (options->EmitNoIfs)