glsl: Add ir_variable::interface_type field
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Jan 2013 02:51:15 +0000 (21:51 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:07:34 +0000 (09:07 -0500)
commit7a7b44b329c8090969587d1dab23721d47f82e4a
treee15923406c8513af904911c4eeee92a5ec210fd1
parent13be1f4a103802ed936f2374d72b2f6979dafd58
glsl: Add ir_variable::interface_type field

For variables that are in an interface block or are an instance of an
interface block, this is the GLSL_TYPE_INTERFACE type for that block.

Convert the ir_variable::is_in_uniform_block method added in the
previous commit to use this field instead of ir_variable::uniform_block.

v2: Fix the place-holder comment on ir_variable::interface_type.
Suggested by Paul Berry.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp
src/glsl/ir.h
src/glsl/ir_clone.cpp