summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-09-07 02:15:26 +0200
committerIan Romanick <ian.d.romanick@intel.com>2010-09-13 13:03:09 -0700
commit87708e8c90220cc1997cef9de9b394c04d952be9 (patch)
tree45801d3627504ca7cac38a1b41d010a774c1ce19 /src/mesa
parent3361cbac2a883818efeb2b3e27405eeefce60f63 (diff)
glsl: call ir_lower_jumps according to compiler options
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 6e7deae433..6d67da495d 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)