mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
vtn/opencl: add native exp2/log2-support
Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4318>
This commit is contained in:
parent
7b2bfb6bc4
commit
6d69ed88f8
1 changed files with 4 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ nir_alu_op_for_opencl_opcode(struct vtn_builder *b,
|
|||
case OpenCLstd_UMin: return nir_op_umin;
|
||||
case OpenCLstd_Fmod: return nir_op_fmod;
|
||||
case OpenCLstd_Mix: return nir_op_flrp;
|
||||
case OpenCLstd_Native_exp2: return nir_op_fexp2;
|
||||
case OpenCLstd_Native_log2: return nir_op_flog2;
|
||||
case OpenCLstd_SMul_hi: return nir_op_imul_high;
|
||||
case OpenCLstd_UMul_hi: return nir_op_umul_high;
|
||||
case OpenCLstd_Popcount: return nir_op_bit_count;
|
||||
|
|
@ -347,6 +349,8 @@ vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
|
|||
case OpenCLstd_SMin:
|
||||
case OpenCLstd_UMin:
|
||||
case OpenCLstd_Mix:
|
||||
case OpenCLstd_Native_exp2:
|
||||
case OpenCLstd_Native_log2:
|
||||
case OpenCLstd_Fmod:
|
||||
case OpenCLstd_SMul_hi:
|
||||
case OpenCLstd_UMul_hi:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue