From: Jason Ekstrand Date: Thu, 19 May 2016 03:29:59 +0000 (-0700) Subject: glsl/linker: Add a helper variable for compiler options X-Git-Tag: upstream/17.1.0~9490 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac242aac3d2c38fd6843d85363a455271b1348c2;p=platform%2Fupstream%2Fmesa.git glsl/linker: Add a helper variable for compiler options Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index ca2f060..89cd9f7 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -4902,10 +4902,13 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) if (prog->_LinkedShaders[i] == NULL) continue; - if (ctx->Const.ShaderCompilerOptions[i].LowerBufferInterfaceBlocks) + const struct gl_shader_compiler_options *options = + &ctx->Const.ShaderCompilerOptions[i]; + + if (options->LowerBufferInterfaceBlocks) lower_ubo_reference(prog->_LinkedShaders[i]); - if (ctx->Const.ShaderCompilerOptions[i].LowerShaderSharedVariables) + if (options->LowerShaderSharedVariables) lower_shared_reference(prog->_LinkedShaders[i], &prog->Comp.SharedSize);