diff options
author | Dave Airlie <[email protected]> | 2019-11-18 17:04:35 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-11-22 04:37:41 +1000 |
commit | 7325f6ac987d295b101372bffcb98799251fe678 (patch) | |
tree | be5895a402f0eff09f3b84de20e7d82e4e56f77a /src/compiler/spirv/vtn_opencl.c | |
parent | e3b21dfcb118ec097fb48b5c1415c9d2e87beade (diff) |
vtn/opencl: add clz support
This is needed for OpenCL
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_opencl.c')
-rw-r--r-- | src/compiler/spirv/vtn_opencl.c | 2 |
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: |