summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/linker.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-06-21 17:42:59 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-06-23 11:58:50 -0700
commit586f4a42e78f171c28c3ae37adb8671e09bd74b4 (patch)
tree0b909031f7166b5730ba3c2b87f3b71b154732b1 /src/compiler/glsl/linker.cpp
parentc264fdbc073a0dfc393f53a8be880f535fd4b988 (diff)
downloadexternal_mesa3d-586f4a42e78f171c28c3ae37adb8671e09bd74b4.zip
external_mesa3d-586f4a42e78f171c28c3ae37adb8671e09bd74b4.tar.gz
external_mesa3d-586f4a42e78f171c28c3ae37adb8671e09bd74b4.tar.bz2
glsl: Propagate invariant/precise after lowering const arrays.
The new uniform may need precise as well. Fixes copy propagation of constant array uniforms in Tomb Raider shaders. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r--src/compiler/glsl/linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp
index c7cf56e..3bcb907 100644
--- a/src/compiler/glsl/linker.cpp
+++ b/src/compiler/glsl/linker.cpp
@@ -4760,6 +4760,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