Recompiler: honour 32-bit SSRC0 in salu64 (s_bfm_b64) #1150

Open
b3IKK wants to merge 1 commit from upstream-pr/1159 into main
b3IKK commented 2026-11-24 12:38:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T12:38:40Z.


salu64 checked o.size == 32 for ins[1] (shift amounts and s_bfe controls) but unconditionally called read64 on ins[0]. In s_bfm_b64, SSRC0 is a 32-bit operand (rdna2_spec.rs), so passing m0 (124), exec_hi (127), or s105 failed translation with Err("op") because code64 rejects them as 64-bit register pairs.

This uses the same o.size == 32 check for both salu64 source operands.

What is in it

  • crates/xcl/src/gpu/recomp/emit.rs: read 32-bit ins[0] operands with read() instead of read64() in salu64.
  • crates/xcl/src/gpu/recomp/tests.rs: add GPU test gpu_s_bfm_b64_accepts_32bit_ssrc0 testing S_BFM_B64 with m0 and s105 across wave32 and split wave64 (verified failing translation before the fix).

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 no wave64 — gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)
  • cargo test -p xcl --lib gpu_s_bfm_b64_accepts_32bit_ssrc0: 1 passed, 0 failed across wave32 and split wave64 (failed with s_bfm_b64: op before the fix)

Regression run

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1226 (PresentX 1226)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15341 MB

PR:

xcl-smoke v1
commit: 04ca7f808558acf8f595580bf0d941ac740479e1
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1648 (PresentX 1648)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14462 MB

Not tested

  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Gemini 4 Neon: audited emit.rs, wrote the fix and GPU test, ran the test suite and scripts/smoke.ps1 regression runs, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5472301803 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1159). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T12:38:40Z. --- `salu64` checked `o.size == 32` for `ins[1]` (shift amounts and `s_bfe` controls) but unconditionally called `read64` on `ins[0]`. In `s_bfm_b64`, `SSRC0` is a 32-bit operand (`rdna2_spec.rs`), so passing `m0` (`124`), `exec_hi` (`127`), or `s105` failed translation with `Err("op")` because `code64` rejects them as 64-bit register pairs. This uses the same `o.size == 32` check for both `salu64` source operands. **What is in it** - `crates/xcl/src/gpu/recomp/emit.rs`: read 32-bit `ins[0]` operands with `read()` instead of `read64()` in `salu64`. - `crates/xcl/src/gpu/recomp/tests.rs`: add GPU test `gpu_s_bfm_b64_accepts_32bit_ssrc0` testing `S_BFM_B64` with `m0` and `s105` across wave32 and split wave64 (verified failing translation before the fix). **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 `no wave64` — `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware`) - `cargo test -p xcl --lib gpu_s_bfm_b64_accepts_32bit_ssrc0`: 1 passed, 0 failed across wave32 and split wave64 (failed with `s_bfm_b64: op` before the fix) **Regression run** main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1226 (PresentX 1226) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15341 MB ``` PR: ``` xcl-smoke v1 commit: 04ca7f808558acf8f595580bf0d941ac740479e1 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1648 (PresentX 1648) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14462 MB ``` **Not tested** - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Gemini 4 Neon: audited `emit.rs`, wrote the fix and GPU test, ran the test suite and `scripts/smoke.ps1` regression runs, and drafted this PR description.
DavidM1911 commented 2026-11-24 13:03:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T12:42:58Z.


Independent verification on current main 384f7f7 (branch already contains it — clean).

Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.

  • cargo test -p xcl --lib bfm: 1 passed, 0 failed — gpu_s_bfm_b64_accepts_32bit_ssrc0 covers the 32-bit SSRC0 operand on real hardware.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

<!-- greyfinch-sync:ivall/xcl:comment:7131820969 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1159#issuecomment-7131820969). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T12:42:58Z. --- Independent verification on current `main` `384f7f7` (branch already contains it — clean). **Machine:** Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11. - `cargo test -p xcl --lib bfm`: **1 passed, 0 failed** — `gpu_s_bfm_b64_accepts_32bit_ssrc0` covers the 32-bit SSRC0 operand on real hardware. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
bjarngard commented 2026-11-24 14:06:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bjarngard on 2026-11-24T13:05:09Z.


Test report for head 04ca7f8 (AMD, native wave64)

Tested

  • AMD Radeon(TM) Graphics (Ryzen 9 9950X iGPU, RDNA2, native wave64), driver 32.0.21043.5001; Windows 11 build 26300; Rust 1.99.1 MSVC; DXC 1.9.2602.17; debug
  • XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPED
  • With XCL_REQUIRE_GPU=wave64: gpu_s_bfm_b64_accepts_32bit_ssrc0 passed

Not tested: retail titles, RDNA3/RDNA4.

AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.

<!-- greyfinch-sync:ivall/xcl:comment:7132327541 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1159#issuecomment-7132327541). Originally posted by [bjarngard](https://github.com/bjarngard) on 2026-11-24T13:05:09Z. --- Test report for head `04ca7f8` (AMD, native wave64) **Tested** - AMD Radeon(TM) Graphics (Ryzen 9 9950X iGPU, RDNA2, native wave64), driver 32.0.21043.5001; Windows 11 build 26300; Rust 1.99.1 MSVC; DXC 1.9.2602.17; debug - `XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4`: 742 passed, 0 failed, 41 ignored, no SKIPPED - With `XCL_REQUIRE_GPU=wave64`: `gpu_s_bfm_b64_accepts_32bit_ssrc0` passed **Not tested:** retail titles, RDNA3/RDNA4. **AI use:** the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
JoaoPauluu commented 2026-11-24 14:06:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T13:57:05Z.


A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. 04ca7f8 as it is (based on 47efa2e), no uncommitted changes. The lib test binary runs under Wine, one test per process (--exact).
  • gpu::recomp::tests::gpu_s_bfm_b64_accepts_32bit_ssrc0: ok, no SKIPPED.

Not tested

  • whether the new test fails without the fix on this stack; the rest of the suite on this head; native Windows; AMD / native wave64.

AI use

  • Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
<!-- greyfinch-sync:ivall/xcl:comment:7133587631 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1159#issuecomment-7133587631). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-24T13:57:05Z. --- A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `04ca7f8` as it is (based on `47efa2e`), no uncommitted changes. The lib test binary runs under Wine, one test per process (`--exact`). - `gpu::recomp::tests::gpu_s_bfm_b64_accepts_32bit_ssrc0`: **ok**, no SKIPPED. **Not tested** - whether the new test fails without the fix on this stack; the rest of the suite on this head; native Windows; AMD / native wave64. **AI use** - Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
milesah3ad commented 2026-11-25 01:11:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milesah3ad on 2026-11-25T01:01:40Z.


The direct DXIL backend counterpart of this fix, from @regiumlepidi's parity sweep on #1269: gpu_s_bfm_b64_accepts_32bit_ssrc0 pass with XCL_DIRECT_DXIL=1 with the patch below. Without it they fail on the direct path.

salu64 in gpu/dxil/lower.rs read the first operand as a 64-bit pair whatever its size, so s_bfm_b64 with a 32-bit SSRC0 that is no valid pair (m0, s105) was refused at translation (op), not miscomputed. The patch reads a 32-bit operand as one dword with a zero high half, for the first operand as for the second, the same change your PR makes in emit.rs.

How to take it: this PR predates the direct backend on main, so rebase it onto main first (your commit rebases cleanly onto 7994cd1), then git am the patch below. Feel free to fold it into your PR with a Co-Authored-By: milesah3ad <[email protected]> line. I didn't open a separate PR, so this doesn't add another review.

patch (1 commit, for git am)
From 17b4d43bf4f566ee57d1134f925c0dc64208321c Mon Sep 17 00:00:00 2001
From: milesah3ad <[email protected]>
Date: Tue, 24 Nov 2026 18:53:33 -0600
Subject: [PATCH] Direct DXIL: salu64 reads a 32-bit first operand as one dword
 (s_bfm_b64)

salu64 read its first operand as a 64-bit pair whatever its size, so
s_bfm_b64 with a 32-bit SSRC0 that is no valid pair (m0, s105) failed
to translate ("op"). A 32-bit operand is now read as one dword with a
zero high half, for the first operand as for the second, as #1159 does
on the HLSL path.

gpu_s_bfm_b64_accepts_32bit_ssrc0 now passes with XCL_DIRECT_DXIL=1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YPhfiWsdJcDBLYSS8edLyS
---
 crates/xcl/src/gpu/dxil/lower.rs | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/crates/xcl/src/gpu/dxil/lower.rs b/crates/xcl/src/gpu/dxil/lower.rs
index 27c4cdb..c3903ff 100644
--- a/crates/xcl/src/gpu/dxil/lower.rs
+++ b/crates/xcl/src/gpu/dxil/lower.rs
@@ -1560,20 +1560,23 @@ impl Lw {
 
     fn salu64(&mut self, d: &Decoded, name: &str, dst: &Dst, ins: &[&Operand]) -> LResult<()> {
         let e = || format!("{}: op", rdna2::format(d));
+        // 32-bit operands (controls, shift amounts, s_bfm_b64's width and offset) are read as one
+        // dword: m0 or s105 is no valid 64-bit pair (#1159)
+        let read_op = |this: &mut Self, o: &Operand| -> LResult<(Value, Value)> {
+            if o.size == 32 {
+                let v = this.read(d, o, false).ok_or_else(e)?;
+                let z = this.c(0);
+                Ok((v, z))
+            } else {
+                this.read64(d, o, false).ok_or_else(e)
+            }
+        };
         let a = match ins.first() {
-            Some(o) => Some(self.read64(d, o, false).ok_or_else(e)?),
+            Some(o) => Some(read_op(self, o)?),
             None => None,
         };
         let b = match ins.get(1) {
-            Some(o) => {
-                if o.size == 32 {
-                    let v = self.read(d, o, false).ok_or_else(e)?;
-                    let z = self.c(0);
-                    Some((v, z))
-                } else {
-                    Some(self.read64(d, o, false).ok_or_else(e)?)
-                }
-            }
+            Some(o) => Some(read_op(self, o)?),
             None => None,
         };
         let z = self.c(0);
-- 
2.48.1.windows.1

Tested

  • RTX 5080 (wave32), driver 621.24, Windows 11 Pro 26300, rustc 1.100.0, DXC 1.9.2609.5, debug. Your commit rebased onto main 7994cd1 plus this patch: gpu_s_bfm_b64_accepts_32bit_ssrc0 pass with and without XCL_DIRECT_DXIL=1.
  • cargo test -p xcl --lib --no-fail-fast -- --test-threads=4 on main 7994cd1 with #587, #686, #1159 and #1296 all merged and the four direct patches applied: 948 passed, 4 failed, 25 ignored, the same in both settings. The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3, which fail the same way on plain main here (944 passed, 4 failed). The +4 are the PRs' own tests.

Not tested: wave64 hardware (the wave64 cases SKIP here), AMD, any title, the full workspace suite (lib only).

AI use: Claude Code (Claude Opus 5.5) wrote the fix and ran the tests on the machine above. I checked the results.

<!-- greyfinch-sync:ivall/xcl:comment:7149130955 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1159#issuecomment-7149130955). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-25T01:01:40Z. --- **The direct DXIL backend counterpart of this fix**, from @regiumlepidi's parity sweep on #1269: `gpu_s_bfm_b64_accepts_32bit_ssrc0` pass with `XCL_DIRECT_DXIL=1` with the patch below. Without it they fail on the direct path. `salu64` in `gpu/dxil/lower.rs` read the first operand as a 64-bit pair whatever its size, so `s_bfm_b64` with a 32-bit SSRC0 that is no valid pair (`m0`, `s105`) was refused at translation (`op`), not miscomputed. The patch reads a 32-bit operand as one dword with a zero high half, for the first operand as for the second, the same change your PR makes in `emit.rs`. **How to take it:** this PR predates the direct backend on `main`, so rebase it onto `main` first (your commit rebases cleanly onto `7994cd1`), then `git am` the patch below. Feel free to fold it into your PR with a `Co-Authored-By: milesah3ad <360542007+[email protected]>` line. I didn't open a separate PR, so this doesn't add another review. <details><summary>patch (1 commit, for <code>git am</code>)</summary> ```diff From 17b4d43bf4f566ee57d1134f925c0dc64208321c Mon Sep 17 00:00:00 2001 From: milesah3ad <360542007+[email protected]> Date: Tue, 24 Nov 2026 18:53:33 -0600 Subject: [PATCH] Direct DXIL: salu64 reads a 32-bit first operand as one dword (s_bfm_b64) salu64 read its first operand as a 64-bit pair whatever its size, so s_bfm_b64 with a 32-bit SSRC0 that is no valid pair (m0, s105) failed to translate ("op"). A 32-bit operand is now read as one dword with a zero high half, for the first operand as for the second, as #1159 does on the HLSL path. gpu_s_bfm_b64_accepts_32bit_ssrc0 now passes with XCL_DIRECT_DXIL=1. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YPhfiWsdJcDBLYSS8edLyS --- crates/xcl/src/gpu/dxil/lower.rs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/crates/xcl/src/gpu/dxil/lower.rs b/crates/xcl/src/gpu/dxil/lower.rs index 27c4cdb..c3903ff 100644 --- a/crates/xcl/src/gpu/dxil/lower.rs +++ b/crates/xcl/src/gpu/dxil/lower.rs @@ -1560,20 +1560,23 @@ impl Lw { fn salu64(&mut self, d: &Decoded, name: &str, dst: &Dst, ins: &[&Operand]) -> LResult<()> { let e = || format!("{}: op", rdna2::format(d)); + // 32-bit operands (controls, shift amounts, s_bfm_b64's width and offset) are read as one + // dword: m0 or s105 is no valid 64-bit pair (#1159) + let read_op = |this: &mut Self, o: &Operand| -> LResult<(Value, Value)> { + if o.size == 32 { + let v = this.read(d, o, false).ok_or_else(e)?; + let z = this.c(0); + Ok((v, z)) + } else { + this.read64(d, o, false).ok_or_else(e) + } + }; let a = match ins.first() { - Some(o) => Some(self.read64(d, o, false).ok_or_else(e)?), + Some(o) => Some(read_op(self, o)?), None => None, }; let b = match ins.get(1) { - Some(o) => { - if o.size == 32 { - let v = self.read(d, o, false).ok_or_else(e)?; - let z = self.c(0); - Some((v, z)) - } else { - Some(self.read64(d, o, false).ok_or_else(e)?) - } - } + Some(o) => Some(read_op(self, o)?), None => None, }; let z = self.c(0); -- 2.48.1.windows.1 ``` </details> **Tested** - RTX 5080 (wave32), driver 621.24, Windows 11 Pro 26300, rustc 1.100.0, DXC 1.9.2609.5, debug. Your commit rebased onto `main` `7994cd1` plus this patch: `gpu_s_bfm_b64_accepts_32bit_ssrc0` pass with and without `XCL_DIRECT_DXIL=1`. - `cargo test -p xcl --lib --no-fail-fast -- --test-threads=4` on `main` `7994cd1` with #587, #686, #1159 and #1296 all merged and the four direct patches applied: 948 passed, 4 failed, 25 ignored, **the same in both settings**. The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3`, which fail the same way on plain `main` here (944 passed, 4 failed). The +4 are the PRs' own tests. **Not tested:** wave64 hardware (the wave64 cases SKIP here), AMD, any title, the full workspace suite (lib only). AI use: Claude Code (Claude Opus 5.5) wrote the fix and ran the tests on the machine above. I checked the results.
luckyteagirl commented 2026-11-25 07:05:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T06:14:36Z.


Independent RX 6800M GPU check on exact PR head 04ca7f808558acf8f595580bf0d941ac740479e1.

Tested

  • Windows 11 build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver 30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.
  • XCL_ADAPTER=6800M XCL_REQUIRE_GPU=wave64 XCL_DIRECT_DXIL=0 cargo test --locked -p xcl --lib -j 2 gpu_s_bfm_b64_accepts_32bit_ssrc0 -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored in 0.30 s. There was no SKIPPED line. The regression tests the HLSL translator's 32-bit SSRC0 handling for S_BFM_B64 using m0 and s105 on wave32 and split wave64.

I did not run the full workspace suite, a pre-fix negative control on this machine, the direct DXIL counterpart proposed in the PR discussion, or a retail title smoke comparison. This is a focused GPU result on an older PR head, not current-main integration coverage. No game data was used or uploaded.

AI-assisted testing and report drafting with OpenAI Codex (GPT-6); I checked the exact revision and test log before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7154589473 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1159#issuecomment-7154589473). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T06:14:36Z. --- Independent RX 6800M GPU check on exact PR head `04ca7f808558acf8f595580bf0d941ac740479e1`. **Tested** - Windows 11 build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver `30.0.13002.13003`, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. - `XCL_ADAPTER=6800M XCL_REQUIRE_GPU=wave64 XCL_DIRECT_DXIL=0 cargo test --locked -p xcl --lib -j 2 gpu_s_bfm_b64_accepts_32bit_ssrc0 -- --test-threads=1 --show-output`: **1 passed, 0 failed, 0 ignored** in 0.30 s. There was no `SKIPPED` line. The regression tests the HLSL translator's 32-bit `SSRC0` handling for `S_BFM_B64` using `m0` and `s105` on wave32 and split wave64. I did not run the full workspace suite, a pre-fix negative control on this machine, the direct DXIL counterpart proposed in the PR discussion, or a retail title smoke comparison. This is a focused GPU result on an older PR head, not current-main integration coverage. No game data was used or uploaded. AI-assisted testing and report drafting with OpenAI Codex (GPT-6); I checked the exact revision and test log before posting.
github-actions[bot] commented 2026-11-28 20:18:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:18:44Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7245193254 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1159#issuecomment-7245193254). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:18:44Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:57:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:57:00Z.


Triage (#1607) – head 04ca7f8

No open or merged PR makes the same change; main's salu64 in emit.rs still reads the first operand with read64, although S_BFM_B64's SSRC0 is 32-bit in rdna2_spec.rs (so m0 or a single SGPR at the end of the bank goes through code64). #1630 only rewrites the s_bfm_b64 mask expression and does not touch the operand read.
No problems found in the diff: S_BFM_B64 is the only salu64 op with a 32-bit SSRC0, and it uses only the low word. The branch conflicts with main (salu64 has moved) and needs a rebase.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301266767 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1159#issuecomment-7301266767). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:57:00Z. --- **Triage (#1607)** – head 04ca7f8 No open or merged PR makes the same change; main's salu64 in emit.rs still reads the first operand with read64, although S_BFM_B64's SSRC0 is 32-bit in rdna2_spec.rs (so m0 or a single SGPR at the end of the bank goes through code64). #1630 only rewrites the s_bfm_b64 mask expression and does not touch the operand read. No problems found in the diff: S_BFM_B64 is the only salu64 op with a 32-bit SSRC0, and it uses only the low word. The branch conflicts with main (salu64 has moved) and needs a rebase. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1159:upstream-pr/1159'
git switch 'upstream-pr/1159'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1159'
git switch 'upstream-pr/1159'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1159'
git switch 'upstream-pr/1159'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1159'
git switch 'main'
git merge --squash 'upstream-pr/1159'
git switch 'main'
git merge --ff-only 'upstream-pr/1159'
git switch 'main'
git merge 'upstream-pr/1159'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1150
No description provided.