From 101cc5e331ef81330839e1759e803cefe8216fb4 Mon Sep 17 00:00:00 2001 From: Calder Young Date: Tue, 2 Jun 2026 17:08:44 -0700 Subject: [PATCH] jay: Add support for saturating f2i16 and f2i8 NIR opcodes Reviewed-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/jay/jay_from_nir.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/jay/jay_from_nir.c b/src/intel/compiler/jay/jay_from_nir.c index 8284078c5f3..79d81e6237c 100644 --- a/src/intel/compiler/jay/jay_from_nir.c +++ b/src/intel/compiler/jay/jay_from_nir.c @@ -407,8 +407,12 @@ jay_emit_alu(struct nir_to_jay_state *nj, nir_alu_instr *alu) case nir_op_f2f16: case nir_op_f2i16: case nir_op_f2u16: + case nir_op_f2i16_sat: + case nir_op_f2u16_sat: case nir_op_f2i8: - case nir_op_f2u8: { + case nir_op_f2u8: + case nir_op_f2i8_sat: + case nir_op_f2u8_sat: { enum jay_type src_type = jay_alu_source_type(alu, 0); /* UGPR byte to float is not supported. Do it in 2 steps. */