diff options
author | Paul Berry <[email protected]> | 2013-07-31 08:15:08 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-01 20:19:02 -0700 |
commit | 0026ad4994ca88a6cdd4e5ef4098469ab57bdcc1 (patch) | |
tree | b3ea77af8a0ae4c5a9482b3fe0b386b53ec4aa01 /src/glsl/link_varyings.cpp | |
parent | 906eff09e374c75b0486011b73b7048f6070456e (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_varyings.cpp')
-rw-r--r-- | src/glsl/link_varyings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 2c7e4514e15..e3c8142546d 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -1164,7 +1164,7 @@ check_against_varying_limit(struct gl_context *ctx, /* The packing rules used for vertex shader inputs are also * used for fragment shader inputs. */ - varying_vectors += count_attribute_slots(var->type); + varying_vectors += var->type->count_attribute_slots(); } } |