From f50843fcdb2f3f175f9886aa9917fe6da22c65bf Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 30 Jan 2023 11:11:58 -0800 Subject: [PATCH] microsoft/compiler: Handle undef-rounding f2f16 as rtz Part-of: --- src/microsoft/compiler/nir_to_dxil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index e26b0816b2d..8e303a83ac8 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -2107,6 +2107,7 @@ get_cast_op(nir_alu_instr *alu) /* float -> float */ case nir_op_f2f16_rtz: + case nir_op_f2f16: case nir_op_f2f32: case nir_op_f2f64: assert(dst_bits != src_bits); @@ -2707,6 +2708,7 @@ emit_alu(struct ntd_context *ctx, nir_alu_instr *alu) case nir_op_u2f16: case nir_op_i2f16: case nir_op_f2f16_rtz: + case nir_op_f2f16: case nir_op_b2i32: case nir_op_f2f32: case nir_op_f2i32: