summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-04-06 14:06:13 -0700
committerIan Romanick <[email protected]>2012-05-23 11:41:49 -0700
commita2e623054b5d8eafebc7499efe93e4bceae16ead (patch)
tree2faf92102faadd7f3113bd87bcc74d7f93335377 /src/glsl/linker.h
parent29362875f2613ad87abe7725ce3c56c36d16cf9b (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r--src/glsl/linker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h
index 0b4c001f7e3..d0aaf3e1e7d 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
*