Repository navigation
Conversation
salu64 checked o.size == 32 for ins[1] (shift amounts / 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. Use the same o.size == 32 check for both salu64 source operands, with a GPU test for s_bfm_b64 using m0 and s105 across wave32 and split wave64. Assisted-by: OpenCode (Gemini 4 Neon)
|
Independent verification on current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Test report for head Tested
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. |
|
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
Not tested
AI use
|
|
The direct DXIL backend counterpart of this fix, from @regiumlepidi's parity sweep on #1269:
How to take it: this PR predates the direct backend on patch (1 commit, for
|
|
Independent RX 6800M GPU check on exact PR head Tested
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. |
salu64checkedo.size == 32forins[1](shift amounts ands_bfecontrols) but unconditionally calledread64onins[0]. Ins_bfm_b64,SSRC0is a 32-bit operand (rdna2_spec.rs), so passingm0(124),exec_hi(127), ors105failed translation withErr("op")becausecode64rejects them as 64-bit register pairs.This uses the same
o.size == 32check for bothsalu64source operands.What is in it
crates/xcl/src/gpu/recomp/emit.rs: read 32-bitins[0]operands withread()instead ofread64()insalu64.crates/xcl/src/gpu/recomp/tests.rs: add GPU testgpu_s_bfm_b64_accepts_32bit_ssrc0testingS_BFM_B64withm0ands105across wave32 and split wave64 (verified failing translation before the fix).Tested
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: 2no 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 withs_bfm_b64: opbefore the fix)Regression run
main:
PR:
Not tested
AI use
emit.rs, wrote the fix and GPU test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.