From: Jason Ekstrand Date: Wed, 20 Jan 2016 19:36:41 +0000 (-0800) Subject: nir/spirv/glsl450: Implement FrexpStruct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21b2d87408232db710a1ae51d2cd0c79b00e4355;p=mesa.git nir/spirv/glsl450: Implement FrexpStruct --- diff --git a/src/glsl/nir/spirv/vtn_glsl450.c b/src/glsl/nir/spirv/vtn_glsl450.c index d38e1c73d9d..eb81620ea11 100644 --- a/src/glsl/nir/spirv/vtn_glsl450.c +++ b/src/glsl/nir/spirv/vtn_glsl450.c @@ -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: