[Mesa-dev] [PATCH 7/9] glsl: Pass ctx->Const.NativeIntegers to do_common_optimization().
Ian Romanick
idr at freedesktop.org
Mon Apr 7 06:29:50 PDT 2014
On 04/06/2014 11:49 PM, Kenneth Graunke wrote:
> diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
> index 3bf2789..d8edc95 100644
> --- a/src/glsl/linker.cpp
> +++ b/src/glsl/linker.cpp
> @@ -2298,7 +2298,7 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
>
> unsigned max_unroll = ctx->ShaderCompilerOptions[i].MaxUnrollIterations;
>
> - while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false, max_unroll, &ctx->ShaderCompilerOptions[i]))
> + while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false, max_unroll, &ctx->ShaderCompilerOptions[i], ctx->Const.NativeIntegers))
I think now is a good opportunity to wrap this looooong line. :)
> ;
> }
>
More information about the mesa-dev
mailing list