From 034010924e046662fce21dee240bdb47619ff6a7 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 28 Dec 2015 21:21:51 -0800 Subject: [PATCH] nir/spirv/glsl450: Implement the Log built-in. --- src/glsl/nir/spirv/vtn_glsl450.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/nir/spirv/vtn_glsl450.c b/src/glsl/nir/spirv/vtn_glsl450.c index 33444eb8c76..ecd24c4a3d9 100644 --- a/src/glsl/nir/spirv/vtn_glsl450.c +++ b/src/glsl/nir/spirv/vtn_glsl450.c @@ -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: -- 2.30.2