diff options
author | Paul Berry <[email protected]> | 2013-10-21 20:27:23 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-24 22:01:14 -0700 |
commit | 4b97c581b4f85e1712c7900cb099c9d56babb05d (patch) | |
tree | 9aa3231ee2f1cf37cd7f2bbd596e530db299037f /src/glsl/ir.h | |
parent | 99512dc40d762d15d636ea711c496bd0350ef7f1 (diff) |
glsl: mark variables produced by lower_named_interface_blocks.
These variables will need to be treated specially by
program_resource_visitor, so that they can be addressed through the
API using their interface block name (and array index, for interface
block arrays).
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index c4c00552ac3..8d5bec9c1ef 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -581,6 +581,24 @@ public: unsigned location_frac:2; /** + * Non-zero if this variable was created by lowering a named interface + * block which was not an array. + * + * Note that this variable and \c from_named_ifc_block_array will never + * both be non-zero. + */ + unsigned from_named_ifc_block_nonarray:1; + + /** + * Non-zero if this variable was created by lowering a named interface + * block which was an array. + * + * Note that this variable and \c from_named_ifc_block_nonarray will never + * both be non-zero. + */ + unsigned from_named_ifc_block_array:1; + + /** * \brief Layout qualifier for gl_FragDepth. * * This is not equal to \c ir_depth_layout_none if and only if this |