summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-27 13:59:49 -0700
committerIan Romanick <[email protected]>2010-09-03 11:55:22 -0700
commitde7c3fe31a7b88a5392dceee3b13b45ed78cdeae (patch)
tree8fab99f244e9cc2daff2226faa5d8eb994102a71 /src/glsl/glsl_parser_extras.cpp
parent3bcfafcf0320ee5407716ff67062e80d162760d4 (diff)
glsl2: Add module to perform simple loop unrolling
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 2d045ac9c7a..390d1f0af05 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -742,6 +742,7 @@ do_common_optimization(exec_list *ir, bool linked)
loop_state *ls = analyze_loop_variables(ir);
progress = set_loop_controls(ir, ls) || progress;
+ progress = unroll_loops(ir, ls) || progress;
delete ls;
return progress;