glsl: Change from has_builtin_signature to has_user_signature.
The print visitor needs this, and the only existing user can work with has_user_signature just as well.
This commit is contained in:
parent
df62338c49
commit
81f0339398
|
@ -2285,7 +2285,7 @@ ast_function::hir(exec_list *instructions,
|
|||
* that the previously seen signature does not have an associated definition.
|
||||
*/
|
||||
f = state->symbols->get_function(name);
|
||||
if (f != NULL && (state->es_shader || !f->has_builtin_signature())) {
|
||||
if (f != NULL && (state->es_shader || f->has_user_signature())) {
|
||||
sig = f->exact_matching_signature(&hir_parameters);
|
||||
if (sig != NULL) {
|
||||
const char *badvar = sig->qualifiers_match(&hir_parameters);
|
||||
|
|
|
@ -1137,11 +1137,11 @@ ir_function::ir_function(const char *name)
|
|||
|
||||
|
||||
bool
|
||||
ir_function::has_builtin_signature()
|
||||
ir_function::has_user_signature()
|
||||
{
|
||||
foreach_list(n, &this->signatures) {
|
||||
ir_function_signature *const sig = (ir_function_signature *) n;
|
||||
if (sig->is_builtin)
|
||||
if (!sig->is_builtin)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -410,8 +410,8 @@ public:
|
|||
*/
|
||||
const char *name;
|
||||
|
||||
/** Whether or not this function has a signature that is a built-in. */
|
||||
bool has_builtin_signature();
|
||||
/** Whether or not this function has a signature that isn't a built-in. */
|
||||
bool has_user_signature();
|
||||
|
||||
/**
|
||||
* List of ir_function_signature for each overloaded function with this name.
|
||||
|
|
Loading…
Reference in New Issue