mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
Set correct type for ir_dereference of a matrix or a vector
This commit is contained in:
parent
0157f41e5e
commit
b2deb19dc3
1 changed files with 3 additions and 1 deletions
4
ir.cpp
4
ir.cpp
|
|
@ -186,7 +186,9 @@ ir_dereference::ir_dereference(ir_instruction *var,
|
|||
|
||||
if (vt->is_array()) {
|
||||
type = vt->element_type();
|
||||
} else if (vt->is_matrix() || vt->is_vector()) {
|
||||
} else if (vt->is_matrix()) {
|
||||
type = vt->column_type();
|
||||
} else if (vt->is_vector()) {
|
||||
type = vt->get_base_type();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue