summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-04-08 19:58:36 -0700
committerKenneth Graunke <[email protected]>2014-04-11 17:41:39 -0700
commit8268a2f34783076043418a1043fde4572ea8b7b5 (patch)
treedb2f1ec4352d4860b4c7dfa1e192a740b6928c62 /src/glsl/glsl_parser_extras.cpp
parentda22221aa365923e033a65c1fbe19ed27301d000 (diff)
glsl: Pass gl_shader_compiler_optimizations to unroll_loops().
Loop unrolling will need to know a few more options in the future. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 1fcd5f8ca0a..03c2a972a6e 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -1542,7 +1542,7 @@ do_common_optimization(exec_list *ir, bool linked,
loop_state *ls = analyze_loop_variables(ir);
if (ls->loop_found) {
progress = set_loop_controls(ir, ls) || progress;
- progress = unroll_loops(ir, ls, options->MaxUnrollIterations) || progress;
+ progress = unroll_loops(ir, ls, options) || progress;
}
delete ls;