diff options
author | Iago Toral Quiroga <[email protected]> | 2018-03-06 13:35:49 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2018-05-03 11:40:25 +0200 |
commit | d5a419176f20961babc78a6f1f319697c55e81ab (patch) | |
tree | 0642758c4ab8a053a9a6b7a3f5c5375319419bb8 /src/intel/compiler | |
parent | 96b51537908cd2aace85f54b437eeb72e6346b7e (diff) |
intel/compiler: implement conversion between float/int 16-bit types
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r-- | src/intel/compiler/brw_fs_nir.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 2f341931ff5..137e917f610 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -793,10 +793,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; |