aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_opencl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/spirv/vtn_opencl.c')
-rw-r--r--src/compiler/spirv/vtn_opencl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_opencl.c b/src/compiler/spirv/vtn_opencl.c
index 165c0de4a7a..c41023256d4 100644
--- a/src/compiler/spirv/vtn_opencl.c
+++ b/src/compiler/spirv/vtn_opencl.c
@@ -185,6 +185,8 @@ handle_special(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
return nir_rotate(nb, srcs[0], srcs[1]);
case OpenCLstd_Smoothstep:
return nir_smoothstep(nb, srcs[0], srcs[1], srcs[2]);
+ case OpenCLstd_Clz:
+ return nir_clz_u(nb, srcs[0]);
case OpenCLstd_Select:
return nir_select(nb, srcs[0], srcs[1], srcs[2]);
case OpenCLstd_Step: