nir/spirv/glsl450: Implement the Log built-in.

This commit is contained in:
Kenneth Graunke 2015-12-28 21:21:51 -08:00
parent ffc5ae7c9e
commit 034010924e
1 changed files with 3 additions and 0 deletions

View 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: