diff options
author | Ian Romanick <[email protected]> | 2014-05-13 11:59:01 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-09-30 13:34:41 -0700 |
commit | baf5a756640fde8cd4d4e704ed8c9c45da3e5407 (patch) | |
tree | 0657ef8f218275aae628cd8d006becf66d713161 /src/glsl/ir.cpp | |
parent | 1012e95a40fe08f5d4f6219c1bc9812ad8f91423 (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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 739a9f41257..b83884163d5 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1617,6 +1617,17 @@ ir_variable::determine_interpolation_mode(bool flat_shade) return INTERP_QUALIFIER_SMOOTH; } +void +ir_variable::enable_extension_warning(const char *extension) +{ + this->warn_extension = extension; +} + +const char * +ir_variable::get_extension_warning() const +{ + return this->warn_extension; +} ir_function_signature::ir_function_signature(const glsl_type *return_type, builtin_available_predicate b) |