diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2012-04-06 14:06:13 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2012-05-23 11:41:49 -0700 |
commit | a2e623054b5d8eafebc7499efe93e4bceae16ead (patch) | |
tree | 2faf92102faadd7f3113bd87bcc74d7f93335377 /src/glsl/linker.h | |
parent | 29362875f2613ad87abe7725ce3c56c36d16cf9b (diff) | |
download | external_mesa3d-a2e623054b5d8eafebc7499efe93e4bceae16ead.zip external_mesa3d-a2e623054b5d8eafebc7499efe93e4bceae16ead.tar.gz external_mesa3d-a2e623054b5d8eafebc7499efe93e4bceae16ead.tar.bz2 |
glsl: Set initial values for uniforms in the linker
v2: Fix handling of arrays-of-structure. Thanks to Eric Anholt for
pointing this out.
v3: Minor comment change based on feedback from Ken.
Fixes piglit glsl-1.20/execution/uniform-initializer/fs-structure-array
and glsl-1.20/execution/uniform-initializer/vs-structure-array.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r-- | src/glsl/linker.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h index 0b4c001..d0aaf3e 100644 --- a/src/glsl/linker.h +++ b/src/glsl/linker.h @@ -37,6 +37,9 @@ link_invalidate_variable_locations(gl_shader *sh, enum ir_variable_mode mode, extern void link_assign_uniform_locations(struct gl_shader_program *prog); +extern void +link_set_uniform_initializers(struct gl_shader_program *prog); + /** * Class for processing all of the leaf fields of an uniform * |