diff options
author | Ian Romanick <[email protected]> | 2010-08-27 13:59:49 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-09-03 11:55:22 -0700 |
commit | de7c3fe31a7b88a5392dceee3b13b45ed78cdeae (patch) | |
tree | 8fab99f244e9cc2daff2226faa5d8eb994102a71 /src/glsl/main.cpp | |
parent | 3bcfafcf0320ee5407716ff67062e80d162760d4 (diff) |
glsl2: Add module to perform simple loop unrolling
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r-- | src/glsl/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 411bc08983d..30f11a5a440 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -177,7 +177,8 @@ compile_shader(struct gl_shader *shader) progress = do_swizzle_swizzle(shader->ir) || progress; loop_state *ls = analyze_loop_variables(shader->ir); - set_loop_controls(shader->ir, ls); + progress = set_loop_controls(shader->ir, ls) || progress; + progress = unroll_loops(shader->ir, ls) || progress; delete ls; } while (progress); |