nir/spirv/glsl450: Implement Exp built-in.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Dec 2015 05:04:30 +0000 (21:04 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Dec 2015 23:27:03 +0000 (15:27 -0800)
src/glsl/nir/spirv/vtn_glsl450.c

index f4550baaf93f49f33c7896f32c16c17285a8f466..33444eb8c76177f89eac161288b8336ef6009039 100644 (file)
@@ -148,6 +148,9 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
       return;
 
    case GLSLstd450Exp:
+      val->ssa->def = build_exp(nb, src[0]);
+      return;
+
    case GLSLstd450Log:
    case GLSLstd450FClamp:
    case GLSLstd450UClamp: