diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 7c7dbfe5df5..6379ed2e7f0 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -4768,6 +4768,7 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) ; lower_const_arrays_to_uniforms(prog->_LinkedShaders[i]->ir); + propagate_invariance(prog->_LinkedShaders[i]->ir); } /* Validation for special cases where we allow sampler array indexing