mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
spirv/nir: Handle non-vector extractions in vtn_composite_extract
This commit is contained in:
parent
79b8b42081
commit
af74ce5a19
1 changed files with 2 additions and 0 deletions
|
|
@ -2824,6 +2824,8 @@ vtn_composite_extract(struct vtn_builder *b, struct vtn_ssa_value *src,
|
|||
ret->type = glsl_scalar_type(glsl_get_base_type(cur->type));
|
||||
ret->def = vtn_vector_extract(b, cur->def, indices[i]);
|
||||
return ret;
|
||||
} else {
|
||||
cur = cur->elems[indices[i]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue