summaryrefslogtreecommitdiffstats
path: root/src/glsl/loop_analysis.h
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2013-12-12 12:57:57 +0200
committerTapani Pälli <[email protected]>2013-12-12 17:28:06 +0200
commitc1d3080ee86cd3d914712ffe0bb533c5d6a6b271 (patch)
treea890afb0ab7df128e3dc9ed5936e927141d8c60a /src/glsl/loop_analysis.h
parentcbe7431cdb57edb87e53e61ff97db54831cc00b7 (diff)
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 <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/loop_analysis.h')
-rw-r--r--src/glsl/loop_analysis.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h
index 6799f876cd7..f841042f026 100644
--- a/src/glsl/loop_analysis.h
+++ b/src/glsl/loop_analysis.h
@@ -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;
}