spirv/nir: Handle non-vector extractions in vtn_composite_extract

This commit is contained in:
Jason Ekstrand 2015-12-21 21:20:50 -08:00
parent 79b8b42081
commit af74ce5a19

View file

@ -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]];
}
}