jay: Add support for saturating f2i16 and f2i8 NIR opcodes

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42056>
This commit is contained in:
Calder Young 2026-06-02 17:08:44 -07:00 committed by Marge Bot
parent 010b443778
commit 101cc5e331

View file

@ -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. */