glsl: apply implicit matching rules when linking

Previously when linking i.e. when compiler state was NULL. We just
assumed all implicit matching was avaliable.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30752>
This commit is contained in:
Timothy Arceri
2024-08-20 09:43:59 +10:00
parent 018ebeca72
commit 8e4b14dcfd
11 changed files with 80 additions and 33 deletions
+4 -1
View File
@@ -687,7 +687,10 @@ ir_reader::read_call(s_expression *expr)
}
ir_function_signature *callee =
f->matching_signature(state, &parameters, true);
f->matching_signature(state, &parameters,
state->has_implicit_conversions(),
state->has_implicit_int_to_uint_conversion(),
true);
if (callee == NULL) {
ir_read_error(expr, "couldn't find matching signature for function "
"%s", name->value());