summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2014-05-13 11:59:01 -0700
committerIan Romanick <ian.d.romanick@intel.com>2014-09-30 13:34:41 -0700
commitbaf5a756640fde8cd4d4e704ed8c9c45da3e5407 (patch)
tree0657ef8f218275aae628cd8d006becf66d713161 /src/glsl/ir.h
parent1012e95a40fe08f5d4f6219c1bc9812ad8f91423 (diff)
glsl: Use accessors for ir_variable::warn_extension
The payoff for this will come in the next patch. No change Valgrind massif results for a trimmed apitrace of dota2. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 8003f88ce3d..3537ecfd9ac 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -527,6 +527,18 @@ public:
}
/**
+ * Enable emitting extension warnings for this variable
+ */
+ void enable_extension_warning(const char *extension);
+
+ /**
+ * Get the extension warning string for this variable
+ *
+ * If warnings are not enabled, \c NULL is returned.
+ */
+ const char *get_extension_warning() const;
+
+ /**
* Declared type of the variable
*/
const struct glsl_type *type;
@@ -783,11 +795,6 @@ public:
/*@}*/
/**
- * Emit a warning if this variable is accessed.
- */
- const char *warn_extension;
-
- /**
* Value assigned in the initializer of a variable declared "const"
*/
ir_constant *constant_value;
@@ -810,6 +817,11 @@ private:
* \sa ir_variable::location
*/
const glsl_type *interface_type;
+
+ /**
+ * Emit a warning if this variable is accessed.
+ */
+ const char *warn_extension;
};
/**