nir/spirv/glsl450: Implement the Log built-in.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Dec 2015 05:21:51 +0000 (21:21 -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 33444eb8c76177f89eac161288b8336ef6009039..ecd24c4a3d95b03e2bea40c4cba31acf7e0db6d0 100644 (file)
@@ -152,6 +152,9 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
       return;
 
    case GLSLstd450Log:
+      val->ssa->def = build_log(nb, src[0]);
+      return;
+
    case GLSLstd450FClamp:
    case GLSLstd450UClamp:
    case GLSLstd450SClamp: