Mesa (shader-work): glsl: call ir_lower_jumps according to compiler options

Luca Barbieri lb at kemper.freedesktop.org
Mon Sep 6 20:52:50 PDT 2010


Module: Mesa
Branch: shader-work
Commit: 3b78f7d7b492eefbd72aa8256bbc9c36105a8a31
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b78f7d7b492eefbd72aa8256bbc9c36105a8a31

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Tue Sep  7 02:15:26 2010 +0200

glsl: call ir_lower_jumps according to compiler options

---

 src/mesa/program/ir_to_mesa.cpp |    2 ++
 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 7ec883e..5346d8f 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2730,6 +2730,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)



More information about the mesa-commit mailing list