vtn: Set parameter type in glsl_type_add_to_function_params

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29577>
This commit is contained in:
Friedrich Vock 2024-06-06 17:25:54 +02:00 committed by Marge Bot
parent 26cbb6b933
commit 4432cf0a58

View file

@ -55,6 +55,7 @@ glsl_type_add_to_function_params(const struct glsl_type *type,
func->params[(*param_idx)++] = (nir_parameter) {
.num_components = glsl_get_vector_elements(type),
.bit_size = glsl_get_bit_size(type),
.type = type,
};
} else if (glsl_type_is_array_or_matrix(type)) {
unsigned elems = glsl_get_length(type);