mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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:
parent
26cbb6b933
commit
4432cf0a58
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue