summaryrefslogtreecommitdiffstats
path: root/src/glsl/link_functions.cpp
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-07-31 08:15:08 -0700
committerPaul Berry <[email protected]>2013-08-01 20:19:02 -0700
commit0026ad4994ca88a6cdd4e5ef4098469ab57bdcc1 (patch)
treeb3ea77af8a0ae4c5a9482b3fe0b386b53ec4aa01 /src/glsl/link_functions.cpp
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/link_functions.cpp')
0 files changed, 0 insertions, 0 deletions