diff options
author | Kenneth Graunke <[email protected]> | 2014-04-08 15:43:46 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-04-11 17:41:37 -0700 |
commit | da22221aa365923e033a65c1fbe19ed27301d000 (patch) | |
tree | 8a5ebb22586a159dd16b6b5ce9dc582ed9ca5fc0 /src/mesa/drivers | |
parent | f00a6483e997e8377b62940e6cbe8f750272e3e9 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 7a6cd7c17f2..c32e66c9f80 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -200,7 +200,7 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg) false /* loops */ ) || progress; - progress = do_common_optimization(shader->base.ir, true, true, 32, + progress = do_common_optimization(shader->base.ir, true, true, options, ctx->Const.NativeIntegers) || progress; } while (progress); |