glsl: Pass gl_shader_compiler_optimizations to unroll_loops().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 9 Apr 2014 02:58:36 +0000 (19:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 12 Apr 2014 00:41:39 +0000 (17:41 -0700)
commit8268a2f34783076043418a1043fde4572ea8b7b5
treedb2f1ec4352d4860b4c7dfa1e192a740b6928c62
parentda22221aa365923e033a65c1fbe19ed27301d000
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 <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/glsl_parser_extras.cpp
src/glsl/loop_analysis.h
src/glsl/loop_unroll.cpp