From c4df2fec961d4ec1f23ca91a14bcaae28177b5c4 Mon Sep 17 00:00:00 2001 From: ivall Date: Mon, 23 Nov 2026 15:03:52 +0100 Subject: [PATCH] Recompiler: #119's clamped 8-bit dots through dot4_u8 / dot4_i8 again DXC hit an internal compiler error on (int64_t)dot4add_i8packed(a, b, 0) (the merge of #119 with the SM 6.4 intrinsics); the clamp forms go back to #119's helpers, the plain forms keep the intrinsics. --- crates/xcl/src/gpu/recomp/emit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/xcl/src/gpu/recomp/emit.rs b/crates/xcl/src/gpu/recomp/emit.rs index 9429ded..7c2440d 100644 --- a/crates/xcl/src/gpu/recomp/emit.rs +++ b/crates/xcl/src/gpu/recomp/emit.rs @@ -2622,8 +2622,8 @@ impl Em { h(1, true), src(2) )), - "v_dot4_u32_u8" if clamp => Some(format!("sat_u32((uint64_t)dot4add_u8packed({}, {}, 0u) + (uint64_t){})", src(0), src(1), src(2))), - "v_dot4_i32_i8" if clamp => Some(format!("sat_i32((int64_t)dot4add_i8packed({}, {}, 0) + (int64_t)(int){})", src(0), src(1), src(2))), + "v_dot4_u32_u8" if clamp => Some(format!("sat_u32((uint64_t)dot4_u8({}, {}, 0u) + (uint64_t){})", src(0), src(1), src(2))), + "v_dot4_i32_i8" if clamp => Some(format!("sat_i32((int64_t)(int)dot4_i8({}, {}, 0u) + (int64_t)(int){})", src(0), src(1), src(2))), "v_dot8_u32_u4" if clamp => Some(format!("sat_u32((uint64_t)dot8_u4({}, {}, 0u) + (uint64_t){})", src(0), src(1), src(2))), "v_dot8_i32_i4" if clamp => Some(format!("sat_i32((int64_t)(int)dot8_i4({}, {}, 0u) + (int64_t)(int){})", src(0), src(1), src(2))), "v_dot2_i32_i16" => Some(format!("(uint)({} * {} + {} * {} + (int){})", si(0, false), si(1, false), si(0, true), si(1, true), src(2))),