From c3015b19ad82247000fc0831e8cabd53dae1ee03 Mon Sep 17 00:00:00 2001 From: xpatfussy69x <178718790+xpatfussy69x@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:39:15 +1030 Subject: [PATCH] Recompiler: the per-lane form takes f16 converts and products from #1426 DIFFERS_ON_1426 refused v_cvt_f16_f32, v_mul_f16 and v_pk_mul_f16 because #1426's lowering rounded them toward zero (legacyF32ToF16). 18423c3 (#1742) made them round to nearest even, so the refusal only sent those programs to the fallback. f16_programs_on_the_gpu / f32_programs_on_the_gpu now run the per-lane form for them and match the HLSL path on a 32-lane GPU. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Bph9DWs1uop8mppbbvYfu9 --- crates/xcl/src/gpu/recomp/lower.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/crates/xcl/src/gpu/recomp/lower.rs b/crates/xcl/src/gpu/recomp/lower.rs index ca82cf429..0c6ee4d7c 100644 --- a/crates/xcl/src/gpu/recomp/lower.rs +++ b/crates/xcl/src/gpu/recomp/lower.rs @@ -1619,19 +1619,6 @@ impl Lower<'_, I> { if self.track_frexp_denorm && self.partial[b] && super::emit::writes_frexp_f32_denorm(d) { return Err("a FREXP denormal mode write where some lanes are elsewhere".into()); } - // instructions whose #1426 semantics are known to differ from the HLSL path and the - // console (each reported on #1426): left to the fallback until fixed there - const DIFFERS_ON_1426: &[&str] = &[ - // f32 → f16 of a value below the smallest f16 denormal: 0 instead of rounding to it - "V_CVT_F16_F32", - // f16 products round toward zero (`LegacyF32ToF16`) where the console rounds to - // nearest even (vladbondarenko97's f16 programs; itsSio is fixing it on `main`) - "V_MUL_F16", - "V_PK_MUL_F16", - ]; - if DIFFERS_ON_1426.contains(&name) { - return Err("its #1426 semantics differ from the console's".into()); - } let operand = |input: bool, ty: &str| d.ienc.operands.iter().any(|o| o.input == input && o.output != input && o.ty == ty); let mut inputs: Vec<(Var, I::V)> = Vec::new(); // SGPRs read whole: numbers (EXEC included, which holds a mask here: refused)