glsl: Drop do_common_optimization's max_unroll_iterations parameter.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 22:43:46 +0000 (15:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 12 Apr 2014 00:41:37 +0000 (17:41 -0700)
commitda22221aa365923e033a65c1fbe19ed27301d000
tree8a5ebb22586a159dd16b6b5ce9dc582ed9ca5fc0
parentf00a6483e997e8377b62940e6cbe8f750272e3e9
glsl: Drop do_common_optimization's max_unroll_iterations parameter.

Now that we pass in gl_shader_compiler_options, it makes sense to just
use options->MaxUnrollIterations, rather than passing a separate
parameter.

Half of the invocations already passed options->MaxUnrollIterations,
while the other half passed in a hardcoded value of 32.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_optimization.h
src/glsl/linker.cpp
src/glsl/test_optpass.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/main/ff_fragment_shader.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp