mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
Emit body for constructors in the right place.
Previously, the body of some vector constructors were added to the wrong function signature, and the body of matrix constructors were just being dumped in the main instruction stream.
This commit is contained in:
parent
3289886688
commit
7bcd5bedcc
1 changed files with 2 additions and 2 deletions
|
|
@ -454,7 +454,7 @@ generate_constructor(glsl_symbol_table *symtab, const struct glsl_type *types,
|
|||
declarations);
|
||||
f->add_signature(vec_sig);
|
||||
|
||||
generate_vec_body_from_N_scalars(&sig->body, declarations);
|
||||
generate_vec_body_from_N_scalars(&vec_sig->body, declarations);
|
||||
} else {
|
||||
assert(types[i].is_matrix());
|
||||
|
||||
|
|
@ -467,7 +467,7 @@ generate_constructor(glsl_symbol_table *symtab, const struct glsl_type *types,
|
|||
declarations);
|
||||
f->add_signature(mat_sig);
|
||||
|
||||
generate_mat_body_from_N_scalars(instructions, declarations);
|
||||
generate_mat_body_from_N_scalars(&mat_sig->body, declarations);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue