mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 07:40:38 +02:00
glsl: propagate MaxUnrollIterations to the optimizer's loop unroller
Instead of the hard-coded value of 32. Note that MaxUnrollIterations defaults to 32 so there's no net change. But the gallium state tracker can override this. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
9bd38f3c67
commit
7feabfe23d
1 changed files with 3 additions and 1 deletions
|
|
@ -2294,7 +2294,9 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
if (ctx->ShaderCompilerOptions[i].LowerClipDistance)
|
||||
lower_clip_distance(prog->_LinkedShaders[i]->ir);
|
||||
|
||||
while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false, 32))
|
||||
unsigned max_unroll = ctx->ShaderCompilerOptions[i].MaxUnrollIterations;
|
||||
|
||||
while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false, max_unroll))
|
||||
;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue