summaryrefslogtreecommitdiffstats
path: root/src/glsl/link_varyings.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-06-13 03:17:22 +0200
committerMarek Olšák <[email protected]>2013-07-02 17:02:14 +0200
commit3c555827c3e2fdb84ee4b4b8fd8296985cbb1fda (patch)
tree344bc224a6b3893dd4b2b7a516f89f6c52857886 /src/glsl/link_varyings.h
parent284d9549123d7a5417310d359c2c46a4317e47bb (diff)
glsl/linker: check against varying limit after unused varyings are eliminated
We counted even the varyings which were later eliminated, which was suboptimal. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/link_varyings.h')
-rw-r--r--src/glsl/link_varyings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/link_varyings.h b/src/glsl/link_varyings.h
index ee1010a7b7d..daa9d79c94f 100644
--- a/src/glsl/link_varyings.h
+++ b/src/glsl/link_varyings.h
@@ -232,4 +232,9 @@ assign_varying_locations(struct gl_context *ctx,
unsigned num_tfeedback_decls,
tfeedback_decl *tfeedback_decls);
+bool
+check_against_varying_limit(struct gl_context *ctx,
+ struct gl_shader_program *prog,
+ gl_shader *consumer);
+
#endif /* GLSL_LINK_VARYINGS_H */