summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-09 14:53:22 -0700
committerKenneth Graunke <[email protected]>2013-09-09 14:54:46 -0700
commit60850b7b9fbb9827d6841dbd4a4cd9b1e3554d45 (patch)
treef5eaed8ff8f333d67b2ab62867d9ad91408d8f21 /src/glsl/ir.cpp
parent260965b7a702efa099dbea6bb90bc5d7426e8465 (diff)
glsl: Rename ir_function_signature::builtin_info to builtin_avail.
builtin_info was originally going to be a structure containing a bunch of information, but after various rewrites, it turned into a boolean availability predicate. builtin_avail is a better name than builtin_info, since it doesn't store any information other than availability. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 67251c1b397..99f6b60b887 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -1617,7 +1617,7 @@ ir_variable::determine_interpolation_mode(bool flat_shade)
ir_function_signature::ir_function_signature(const glsl_type *return_type,
builtin_available_predicate b)
- : return_type(return_type), is_defined(false), builtin_info(b),
+ : return_type(return_type), is_defined(false), builtin_avail(b),
_function(NULL)
{
this->ir_type = ir_type_function_signature;
@@ -1628,7 +1628,7 @@ ir_function_signature::ir_function_signature(const glsl_type *return_type,
bool
ir_function_signature::is_builtin() const
{
- return builtin_info != NULL;
+ return builtin_avail != NULL;
}
@@ -1644,8 +1644,8 @@ ir_function_signature::is_builtin_available(const _mesa_glsl_parse_state *state)
if (state == NULL)
return true;
- assert(builtin_info != NULL);
- return builtin_info(state);
+ assert(builtin_avail != NULL);
+ return builtin_avail(state);
}