mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 03:50:13 +01:00
vtn/opencl: add native exp/log-support
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4318>
This commit is contained in:
parent
c98e745e78
commit
25cb87bcdd
1 changed files with 6 additions and 0 deletions
|
|
@ -193,6 +193,10 @@ handle_special(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode,
|
|||
case OpenCLstd_S_Upsample:
|
||||
case OpenCLstd_U_Upsample:
|
||||
return nir_upsample(nb, srcs[0], srcs[1]);
|
||||
case OpenCLstd_Native_exp:
|
||||
return nir_fexp(nb, srcs[0]);
|
||||
case OpenCLstd_Native_log:
|
||||
return nir_flog(nb, srcs[0]);
|
||||
default:
|
||||
vtn_fail("No NIR equivalent");
|
||||
return NULL;
|
||||
|
|
@ -391,6 +395,8 @@ vtn_handle_opencl_instruction(struct vtn_builder *b, SpvOp ext_opcode,
|
|||
case OpenCLstd_S_Upsample:
|
||||
case OpenCLstd_U_Upsample:
|
||||
case OpenCLstd_Clz:
|
||||
case OpenCLstd_Native_exp:
|
||||
case OpenCLstd_Native_log:
|
||||
handle_instr(b, cl_opcode, w, count, handle_special);
|
||||
return true;
|
||||
case OpenCLstd_Vloadn:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue