aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2020-04-29 18:28:26 +0200
committerMarge Bot <[email protected]>2020-05-04 11:31:29 +0000
commita698c2eedba8195a6486cfb3a2a61dd9fcfa31bb (patch)
tree06d667e9a2e4a2005e973792116c9eb4b53e2c81 /src/compiler
parent594c49be08002f2953a7a32bc774ce8f0fbfd6f9 (diff)
vtn/opencl: native powr 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.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 eb6db0c1eb9..dc5b5dd6a4a 100644
--- a/src/compiler/spirv/vtn_opencl.c
+++ b/src/compiler/spirv/vtn_opencl.c
@@ -88,6 +88,7 @@ nir_alu_op_for_opencl_opcode(struct vtn_builder *b,
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_powr: return nir_op_fpow;
case OpenCLstd_Native_sin: return nir_op_fsin;
case OpenCLstd_SMul_hi: return nir_op_imul_high;
case OpenCLstd_UMul_hi: return nir_op_umul_high;
@@ -359,6 +360,7 @@ vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
case OpenCLstd_Native_divide:
case OpenCLstd_Native_exp2:
case OpenCLstd_Native_log2:
+ case OpenCLstd_Native_powr:
case OpenCLstd_Native_sin:
case OpenCLstd_Fmod:
case OpenCLstd_SMul_hi: