diff options
author | Kenneth Graunke <[email protected]> | 2014-04-08 19:58:36 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-04-11 17:41:39 -0700 |
commit | 8268a2f34783076043418a1043fde4572ea8b7b5 (patch) | |
tree | db2f1ec4352d4860b4c7dfa1e192a740b6928c62 /src/glsl/loop_analysis.h | |
parent | da22221aa365923e033a65c1fbe19ed27301d000 (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/loop_analysis.h')
-rw-r--r-- | src/glsl/loop_analysis.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h index f841042f026..295dc797c09 100644 --- a/src/glsl/loop_analysis.h +++ b/src/glsl/loop_analysis.h @@ -53,7 +53,8 @@ set_loop_controls(exec_list *instructions, loop_state *ls); extern bool -unroll_loops(exec_list *instructions, loop_state *ls, unsigned max_iterations); +unroll_loops(exec_list *instructions, loop_state *ls, + const struct gl_shader_compiler_options *options); ir_rvalue * find_initial_value(ir_loop *loop, ir_variable *var); |