diff options
author | Chris Forbes <[email protected]> | 2014-05-04 20:23:56 +1200 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-06-04 19:35:54 +1200 |
commit | a78c663c2291d9f5acd7367766a2712038db2e78 (patch) | |
tree | 364df3987d38a9136c1b661f93bc8f4f3fd9f452 /src/glsl/ir_function.cpp | |
parent | 240974e93f2df10f64aae17e1ed257379bdac5f7 (diff) |
glsl: Pass parse state to parameter_lists_match()
The available implicit conversions depend on the GLSL version we're
compiling.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir_function.cpp')
-rw-r--r-- | src/glsl/ir_function.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp index 40cf5894af8..4f0d9daa3c4 100644 --- a/src/glsl/ir_function.cpp +++ b/src/glsl/ir_function.cpp @@ -38,7 +38,8 @@ typedef enum { * \see matching_signature() */ static parameter_list_match_t -parameter_lists_match(const exec_list *list_a, const exec_list *list_b) +parameter_lists_match(_mesa_glsl_parse_state *state, + const exec_list *list_a, const exec_list *list_b) { const exec_node *node_a = list_a->head; const exec_node *node_b = list_b->head; @@ -148,7 +149,7 @@ ir_function::matching_signature(_mesa_glsl_parse_state *state, if (sig->is_builtin() && !sig->is_builtin_available(state)) continue; - switch (parameter_lists_match(& sig->parameters, actual_parameters)) { + switch (parameter_lists_match(state, & sig->parameters, actual_parameters)) { case PARAMETER_LIST_EXACT_MATCH: *is_exact = true; return sig; |