glsl: Turn UBO variable declarations into ir_variables and check qualifiers.

Fixes piglit layout-*-non-uniform and layout-*-within-block.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Eric Anholt
2012-04-26 18:19:39 -07:00
parent cdad337fec
commit f7561e8ecd
4 changed files with 39 additions and 3 deletions

View File

@@ -513,6 +513,12 @@ public:
* is used to note these cases when no type is specified.
*/
int invariant;
/**
* Flag indicating that these declarators are in a uniform block,
* allowing UBO type qualifiers.
*/
bool ubo_qualifiers_valid;
};