mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
vtn/opencl: native sqrt support
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-By: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4811>
This commit is contained in:
parent
337ff9c088
commit
af55bdd05d
1 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ nir_alu_op_for_opencl_opcode(struct vtn_builder *b,
|
|||
case OpenCLstd_Native_recip: return nir_op_frcp;
|
||||
case OpenCLstd_Native_rsqrt: return nir_op_frsq;
|
||||
case OpenCLstd_Native_sin: return nir_op_fsin;
|
||||
case OpenCLstd_Native_sqrt: return nir_op_fsqrt;
|
||||
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;
|
||||
|
|
@ -366,6 +367,7 @@ vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
|
|||
case OpenCLstd_Native_recip:
|
||||
case OpenCLstd_Native_rsqrt:
|
||||
case OpenCLstd_Native_sin:
|
||||
case OpenCLstd_Native_sqrt:
|
||||
case OpenCLstd_Fmod:
|
||||
case OpenCLstd_SMul_hi:
|
||||
case OpenCLstd_UMul_hi:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue