summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-02 17:17:47 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-02 17:17:47 -0700
commit9d975377ca6dae7805804c0fbe625bb7c5f9e095 (patch)
treead2a5b01dcf2f29d9a53ec01787356f511afaa86 /ir.h
parent2d946634eb3761dbec5aa8806fc36ff6d65b4f9c (diff)
Track whether whole-arrays are assignable
In GLSL 1.10 this was not allowed, but in GLSL 1.20 and later it is. This causes the following tests to pass: glslparsertest/glsl2/array-09.vert glslparsertest/glsl2/array-13.vert
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 3caff3624a..5267d2bc78 100644
--- a/ir.h
+++ b/ir.h
@@ -146,6 +146,14 @@ public:
unsigned mode:3;
unsigned interpolation:2;
+
+ /**
+ * Flag that the whole array is assignable
+ *
+ * In GLSL 1.20 and later whole arrays are assignable (and comparable for
+ * equality). This flag enables this behavior.
+ */
+ unsigned array_lvalue:1;
};