summaryrefslogtreecommitdiff
path: root/src/glsl/linker.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-07-31 08:15:08 -0700
committerPaul Berry <stereotype441@gmail.com>2013-08-01 20:19:02 -0700
commit0026ad4994ca88a6cdd4e5ef4098469ab57bdcc1 (patch)
treeb3ea77af8a0ae4c5a9482b3fe0b386b53ec4aa01 /src/glsl/linker.h
parent906eff09e374c75b0486011b73b7048f6070456e (diff)
Move count_attribute_slots() out of the linker and into glsl_type.
Our previous justification for leaving this function out of glsl_type was that it implemented counting rules that were specific to GLSL 1.50. However, these counting rules also describe the number of varying slots that Mesa will assign to a varying in the absence of varying packing. That's useful to be able to compute from outside of the linker code (a future patch will use it from ir_set_program_inouts.cpp). So go ahead and move it to glsl_type. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r--src/glsl/linker.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h
index 0ce747d6cb9..64a683d1545 100644
--- a/src/glsl/linker.h
+++ b/src/glsl/linker.h
@@ -155,7 +155,4 @@ linker_error(gl_shader_program *prog, const char *fmt, ...);
void
linker_warning(gl_shader_program *prog, const char *fmt, ...);
-unsigned
-count_attribute_slots(const glsl_type *t);
-
#endif /* GLSL_LINKER_H */