diff options
author | Erik Faye-Lund <[email protected]> | 2020-04-29 18:25:43 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-04 11:31:29 +0000 |
commit | 594c49be08002f2953a7a32bc774ce8f0fbfd6f9 (patch) | |
tree | 315d61a9b2c7defff3f01aede8b6aae849e8c9c7 /src/compiler | |
parent | bce8a86b652981db3684da943c6cbb3fd7d7f1ae (diff) |
vtn/opencl: native divide support
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-By: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4811>
Diffstat (limited to 'src/compiler')
-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 a048f3de619..eb6db0c1eb9 100644 --- a/src/compiler/spirv/vtn_opencl.c +++ b/src/compiler/spirv/vtn_opencl.c @@ -85,6 +85,7 @@ nir_alu_op_for_opencl_opcode(struct vtn_builder *b, case OpenCLstd_Fmod: return nir_op_fmod; case OpenCLstd_Mix: return nir_op_flrp; case OpenCLstd_Native_cos: return nir_op_fcos; + case OpenCLstd_Native_divide: return nir_op_fdiv; case OpenCLstd_Native_exp2: return nir_op_fexp2; case OpenCLstd_Native_log2: return nir_op_flog2; case OpenCLstd_Native_sin: return nir_op_fsin; @@ -355,6 +356,7 @@ vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode, case OpenCLstd_UMin: case OpenCLstd_Mix: case OpenCLstd_Native_cos: + case OpenCLstd_Native_divide: case OpenCLstd_Native_exp2: case OpenCLstd_Native_log2: case OpenCLstd_Native_sin: |