glsl: Create and use a new ir_variable::count_attribute_slots() wrapper.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 15 Nov 2015 12:32:52 +0000 (04:32 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Jan 2017 23:55:25 +0000 (15:55 -0800)
commit6aa5cb34d03765b7be8611aa516bc201bd337f73
treed06c3c6e2cd699f1b1682b5af7f8e054f69b4e89
parentaead6a1e947af84b0af2853c204d5cad6d92bfff
glsl: Create and use a new ir_variable::count_attribute_slots() wrapper.

This wraps glsl_type::count_attribute_slots(), but will soon contain a
couple of overrides for a couple of GLSL built-ins variables.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/ir.cpp
src/compiler/glsl/ir.h
src/compiler/glsl/ir_set_program_inouts.cpp
src/compiler/glsl/link_varyings.cpp
src/compiler/glsl/linker.cpp