[Mesa-dev] [PATCH 04/11] intel/compiler: implement conversion between float/int 16-bit types
Jason Ekstrand
jason at jlekstrand.net
Tue Apr 24 21:46:50 UTC 2018
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
On Wed, Apr 11, 2018 at 12:20 AM, Iago Toral Quiroga <itoral at igalia.com>
wrote:
> ---
> src/intel/compiler/brw_fs_nir.cpp | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/intel/compiler/brw_fs_nir.cpp
> b/src/intel/compiler/brw_fs_nir.cpp
> index 5e0dd37eefd..5c414e45b61 100644
> --- a/src/intel/compiler/brw_fs_nir.cpp
> +++ b/src/intel/compiler/brw_fs_nir.cpp
> @@ -791,10 +791,14 @@ fs_visitor::nir_emit_alu(const fs_builder &bld,
> nir_alu_instr *instr)
> case nir_op_f2f32:
> case nir_op_f2i32:
> case nir_op_f2u32:
> + case nir_op_f2i16:
> + case nir_op_f2u16:
> case nir_op_i2i32:
> case nir_op_u2u32:
> case nir_op_i2i16:
> case nir_op_u2u16:
> + case nir_op_i2f16:
> + case nir_op_u2f16:
> inst = bld.MOV(result, op[0]);
> inst->saturate = instr->dest.saturate;
> break;
> --
> 2.14.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180424/aa399cf7/attachment.html>
More information about the mesa-dev
mailing list