glsl: introduce data section to ir_variable

Data section helps serialization and cloning of a ir_variable. This
patch includes the helper bits used for read only ir_variables.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
Tapani Pälli
2013-12-12 12:57:57 +02:00
parent cbe7431cdb
commit c1d3080ee8
18 changed files with 83 additions and 75 deletions

View File

@@ -217,7 +217,8 @@ public:
/* Variables that are marked read-only *MUST* be loop constant.
*/
assert(!this->var->read_only || (this->var->read_only && is_const));
assert(!this->var->data.read_only
|| (this->var->data.read_only && is_const));
return is_const;
}