summaryrefslogtreecommitdiff
path: root/src/glsl/linker.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-05-01 15:10:14 -0700
committerEric Anholt <eric@anholt.net>2012-07-20 10:44:04 -0700
commit8ab5842a6d992956ee365c0e0232c6e6b907863e (patch)
treeefdf5b2d19a5efa149904969cb9338f2f9a01b72 /src/glsl/linker.h
parent9feb403b0eb5365889cb01ca456a19247aaad502 (diff)
glsl: Assign locations for uniforms in UBOs using the std140 rules.
Fixes piglit layout-std140. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
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 5c54437a9ea..7d2e98a1536 100644
--- a/src/glsl/linker.h
+++ b/src/glsl/linker.h
@@ -46,6 +46,9 @@ link_cross_validate_uniform_block(void *mem_ctx,
unsigned int *num_linked_blocks,
struct gl_uniform_block *new_block);
+void
+link_assign_uniform_block_offsets(struct gl_shader *shader);
+
/**
* Class for processing all of the leaf fields of an uniform
*