nir/spirv/glsl450: Implement FrexpStruct

This commit is contained in:
Jason Ekstrand
2016-01-20 11:36:41 -08:00
parent c7896d1868
commit 21b2d87408
+7 -1
View File
@@ -612,8 +612,14 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
return;
}
case GLSLstd450FrexpStruct: {
assert(glsl_type_is_struct(val->ssa->type));
val->ssa->elems[0]->def = build_frexp(nb, src[0],
&val->ssa->elems[1]->def);
return;
}
case GLSLstd450ModfStruct:
case GLSLstd450FrexpStruct:
case GLSLstd450PackDouble2x32:
case GLSLstd450UnpackDouble2x32:
case GLSLstd450IMix: