mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
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>
This commit is contained in:
parent
c264fdbc07
commit
586f4a42e7
1 changed files with 1 additions and 0 deletions
|
|
@ -4760,6 +4760,7 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
|
||||||
;
|
;
|
||||||
|
|
||||||
lower_const_arrays_to_uniforms(prog->_LinkedShaders[i]->ir);
|
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
|
/* Validation for special cases where we allow sampler array indexing
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue