diff options
author | Kenneth Graunke <[email protected]> | 2015-11-15 04:32:52 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-01-06 15:55:25 -0800 |
commit | 6aa5cb34d03765b7be8611aa516bc201bd337f73 (patch) | |
tree | d06c3c6e2cd699f1b1682b5af7f8e054f69b4e89 /src/compiler/glsl/ir.h | |
parent | aead6a1e947af84b0af2853c204d5cad6d92bfff (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r-- | src/compiler/glsl/ir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index a11dccd2e9b..1cd6a60c081 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -553,6 +553,8 @@ public: return this->u.max_ifc_array_access; } + unsigned count_attribute_slots(bool is_vertex_stage) const; + inline unsigned get_num_state_slots() const { assert(!this->is_interface_instance() |