glsl: introduce data section to ir_variable
[mesa.git] / src / glsl / loop_analysis.h
index 6799f876cd76128e97a615c08b2fdfe01dba61f1..f841042f02688946ba31b0510b69d52896c1b388 100644 (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;
    }