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:
committed by
Marge Bot
parent
26cbb6b933
commit
4432cf0a58
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user