glsl: call ir_lower_jumps according to compiler options
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 7 Sep 2010 00:15:26 +0000 (02:15 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Sep 2010 20:03:09 +0000 (13:03 -0700)
src/mesa/program/ir_to_mesa.cpp

index 6e7deae43312f3a72e7b55f0adcfe9cee95b4299..6d67da495d2b4e3d7f809e58aed4d3fee442c754 100644 (file)
@@ -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)