summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-11-08 11:58:47 -0800
committerIan Romanick <[email protected]>2011-11-14 11:08:28 -0800
commit812aa8839388042609f65ed00ae4fbfdb60a11d6 (patch)
treee03454afc47bed317411b89099cb0719ed954a73 /src/mesa
parent196c6d4adfd6cee13782dc558b855c27a15e567c (diff)
linker: Count the number of samplers 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index deab97d3ec4..47282c0aed5 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2158,6 +2158,9 @@ struct gl_shader
unsigned Version; /**< GLSL version used for linking */
+ unsigned num_samplers; /**< Number of samplers used by this shader.
+ * This field is only set post-linking.
+ */
struct exec_list *ir;
struct glsl_symbol_table *symbols;