Recompiler: route 32_32_UINT MUBUF stores by DST_SEL #2818
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2818
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2818"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CryingLaughing on GitHub · 2026-11-26 14:23 UTC · original
CryingLaughing:fix/mubuf-u32x2-store-select→main· +113 −2 · 3 files · 1 commits · openPart of #1414.
For non-D16 MUBUF
BUFFER_STORE_FORMAT_XYZWwith32_32_UINT, the buffer descriptor selects which two input words reach memory. The current translators always take the first two. Apply the measured desktop RDNA2 routing before packing both translated forms.What is in it
gpu/recomp/emit.rsandgpu/dxil/lower_mem.rs. Preserve the existing order for reserved selectors, and leave the MTBUF and other format paths unchanged.gpu/recomp/tests.rsthat also checks neighboring formats, bounds and guard words.Tested
Head
138e36d6f56e3b6112bf0fa935a9147e9eb5d71conb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. RTX 4080 driver 621.01, i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC, DXC 1.8.2502.11, debug.gpu_mubuf_u32x2_xyzw_store_selects_channelsfailed 0/1/0 at the intended XYZW assertion on the base with the test overlay, in both HLSL and direct DXIL. Both translators stored(17,34)instead of(17,68). The patched fixture passed 1/0/0 in each mode over all 13 cases with no capability skips.cargo build --workspace --locked -j 4succeeded.cargo test --workspace --locked -j 4 --no-fail-fast -- --test-threads=4 --show-outputreported 1,436 passed, 0 failed, 47 ignored across 37 harnesses. The pass count includes 29 capability skips.Independent RTX 5070 Ti Laptop verification covered all 13 cases in wave32 and in the upper half of split wave64, through both translators. Windows GPU check
Independent RX 9070 verification under Wine passed all 13 cases in native wave32 and wave64. A test-only multilane fixture found zero output or guard mismatches on the head across HLSL, direct plain, and direct compact. AMD GPU check
Regression run
Independent retail smoke by Anon64 compared release builds of main and this exact head on an RTX 3060 12 GB (driver 581.80), Core i9-14900KF, and Windows 11 build 26200. The 60-second runs used the same title. The head retained 102.3% of the baseline frames and used 88.3% of its peak commit, with zero crashes or device removals. The run did not establish whether the title reached the changed code.
main:
PR:
Not tested
@ettehn on GitHub · 2026-11-26 14:37 UTC · original
Independent Windows GPU check on
138e36d6f56e3b6112bf0fa935a9147e9eb5d71c: RTX 5070 Ti Laptop (driver 621.24), Windows 11 x64 (build 26200), Rust 1.97.1 MSVC and DXC 1.8.2502.11.XCL_DIRECT_DXIL=0) and direct DXIL (=1).EXEC_LO=0,EXEC_HI=1). This checks the upper half of the split, including the guard words and out-of-bounds case. The extension used the existing split-wave options and did not change translator code.Each backend invocation reported 1 passed, 0 failed, 0 ignored and no capability skips. Command:
cargo test --locked --offline -p xcl --lib -j 2 gpu_mubuf_u32x2_xyzw_store_selects_channels -- --test-threads=1 --nocapturewithXCL_ADAPTER=NVIDIAandXCL_REQUIRE_GPU=wave64. No retail smoke run.OpenAI Codex (6.2sol) assisted with verification.
@SzczepanGrela on GitHub · 2026-11-26 14:44 UTC · original
RX 9070 / Wine verification, including native Wave32/Wave64 and concurrent per-lane stores.
Tested
138e36d6f56e3b6112bf0fa935a9147e9eb5d71cagainst mainb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.8293130ebe370b1+(local asserts-disabled build), DXC/DXIL 1.9.2602.17, Rust 1.97.1, releasex86_64-pc-windows-gnu.XCL_REQUIRE_GPU=wave64,XCL_NETWORK=0, private caches. These tests execute native waves; split is disabled in the local extension.Original fixture
gpu::recomp::tests::gpu_mubuf_u32x2_xyzw_store_selects_channels, three fresh processes per revision/backend:XCL_DIRECT_DXIL=0) and direct DXIL (=1).wave64 XYZWassertion:(17,34)instead of(17,68). Its later rows/wave are not reached in this fixture.Main imports the upstream test with only its new format-constant import replaced by literal 62 inside the test. Production code remains unchanged.
Local multilane fixture
Both source copies additionally receive identical
gpu_mubuf_u32x2_multilane_guard_readback. It retains the 13 upstream expected routes, adds distinct inputs for each lane and disjoint 32-byte output slots through OFFEN, and checks the complete 26 KiB memory image. This includes guard words, inactive-lane slots, reserved selectors, MTBUF, neighboring formats and the out-of-bounds row.Every mode runs through HLSL/DXC, direct plain and direct compact, with DXIL validation before dispatch. Three fresh processes per revision give identical results on all three paths:
Main differs only in rows
XYZW,XYZ1,YX01,YZZ1,Y001. The remaining eight rows match. Guard/inactive/out-of-bounds checks report zero unexpected writes on both revisions. The local test reports head 1/0/0 versus main 0/1/0; main's final assertion collects all 12 mode/path results before failing.Existing
gpu_typed_buffer_loads_and_storesandgpu_grouped_loads_bounds_and_inactive_laneseach pass separately on both revisions withXCL_DIRECT_DXIL=0and1.All 26 process summaries, 72 local mode/path records, 12 upstream head wave records, exact main failures, source reconstruction and executable hashes were independently checked. No runtime skips or ignored tests. Removing the disclosed test insertions reconstructs the exact original sources on both sides.
Build:
cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Invocation: GE-Proton Wine,<libtest.exe> gpu::recomp::tests::<test> --exact --nocapture --test-threads=1. The local fixture explicitly selects all three translator paths.Not tested
Independent native Xbox/RDNA2 instruction measurements, selectors outside the upstream fixture, forced split execution here, native Windows, other GPUs, full workspace suite, retail workload,
scripts/smoke.ps1, performance or FPS. These translated-kernel checks use the PR fixture's expected channel routing.AI use
OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the diff, wrote the local multilane fixture, ran and independently verified the paired tests, and drafted this report. Publication authorized by the account owner.
@Anon64 on GitHub · 2026-11-26 14:55 UTC · original
Regression run of
138e36don a newer retail title: no device removal, no crash, frames and commit within the limits.Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main
b49be18(this PR's base) and of this PR's exact head,scripts/smoke.ps1 -Game <title>for 60 s withXCL_NETWORK=0and A pressed every 4 s from 20 s. Main ran before and after this PR and peaked at 24,953 and 25,032 MB.main:
this PR:
102 % of main's frames, 88 % of its peak commit. One run each.
Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD.
AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.