diff options
author | Jason Ekstrand <[email protected]> | 2016-05-18 20:29:59 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-23 19:12:34 -0700 |
commit | ac242aac3d2c38fd6843d85363a455271b1348c2 (patch) | |
tree | 5467a626b1875cfd6ef5ecc15fd200e6242084d8 /src/compiler/glsl/linker.cpp | |
parent | aec10a1d5b4a0802f6f09d1b83c79f53ecd3d29f (diff) |
glsl/linker: Add a helper variable for compiler options
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index ca2f0604a3a..89cd9f795cc 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); |