summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-11-08 12:30:58 -0800
committerIan Romanick <[email protected]>2011-11-14 11:08:49 -0800
commit6ac895a664b25eb6252f33d5cfb0e9dd33190490 (patch)
treec94a0a9ce4894322ffe7d93dfd2506b5e5fe36b9 /src/mesa
parent812aa8839388042609f65ed00ae4fbfdb60a11d6 (diff)
linker: Count the number of uniform components used by a shader during linking
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/mtypes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 47282c0aed5..8495a9c2e63 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2161,6 +2161,13 @@ struct gl_shader
unsigned num_samplers; /**< Number of samplers used by this shader.
* This field is only set post-linking.
*/
+ /**
+ * Number of uniform components used by this shader.
+ *
+ * This field is only set post-linking.
+ */
+ unsigned num_uniform_components;
+
struct exec_list *ir;
struct glsl_symbol_table *symbols;