Recompiler: tbuffer_load_format_* ignores the V#'s DST_SEL #875
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!875
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-875"
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?
@mastrr9 on GitHub · 2026-11-24 07:12 UTC · original
mastrr9:fix/recomp-tbuffer-load-dst-sel→main· +72 −4 · 2 files · 1 commits · openFixes
FormatLoadincrates/xcl/src/gpu/recomp/emit.rssotbuffer_load_format_*(ENC_MTBUF) uses the identity component select(x, y, z, w)instead of applying the V#sDST_SELfield (dword3[11:0]`):buffer_*_formattakes both its format andDST_SELfrom the V#, whereastbuffer_*_formattakes its format from the instruction and uses the identity select.tbuffer_load_format_*through a V# with a swizzledDST_SELreturned reordered components, and aSEL_0V# returned all zeros.buffer_load_format_*continues to applydst_sel(); stores and(0, 0, 0, 1)missing-component fill are unchanged.tbuffer_load_ignores_vsharp_dst_seland GPU testgpu_tbuffer_load_identity_dst_selverifying both swizzled8_8_8_8_UINTandSEL_016_16_FLOATV#s.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled54ed7eb4bdbd9e205612e807e9b05f0c450ef2accargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 715 passed, 0 failed, 41 ignored (tbuffer_load_ignores_vsharp_dst_selok,gpu_tbuffer_load_identity_dst_selok)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: #875
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
54ed7ebonto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 707 passed, 10 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum).tbuffer_load_format_*DST_SEL tests green on RDNA3 wave64.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@DarkPanda69 on GitHub · 2026-11-24 09:44 UTC · original
Test report for head
077de0d9e.Setup
main077ce40(all applied cleanly), debug build, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17.cargo test -p xcl --lib -- gpu::recomp --test-threads=4, once withXCL_ADAPTER=radeonand once withXCL_ADAPTER=3060.Tested: pass on both GPUs, including AMD RDNA hardware with native wave64.
gpu_tbuffer_load_identity_dst_selok.gpu_tbuffer_load_identity_dst_selok.Not tested: the retail smoke run this draft still needs.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@Toons29 on GitHub · 2026-11-25 03:04 UTC · original
Regression run of
077de0d9on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@JJAutoCompare on GitHub · 2026-11-25 03:59 UTC · original
Intel Arc A770 verification for XCL PR #875
Tested
077de0d9e6ebec78456e2177959f3e9283071934before and after the tests. I read upstreamAGENTS.mdandCONTRIBUTING.mdat maincbc296ab65a2661a61e3e2da109134bcd5319f60. I found no equivalent Arc result for this head in the live PR discussion or GPU results issue #42.26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver32.0.101.9175, Rust and Cargo1.100.0(x86_64-pc-windows-msvc), unoptimized test profile with debuginfo disabled. Both fixtures logged DXC1.9.2609.5(01b62ad4) and DXIL1.9.2609.5loaded fromXCL_DXC_DIR.CARGO_TARGET_DIR=L:/XclTooling/pr1512-tiling-edges-fddfa267/target,CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0, andCARGO_PROFILE_TEST_DEBUG=0.TEMPandTMPpointed at thetempdirectory beside this report. Cargo exited 0 in 1m 17s with onefetch_updatedeprecation warning.tbuffer_load_ignores_vsharp_dst_selgpu_tbuffer_load_identity_dst_seldst_selfor MUBUF and uses component order for MTBUF XYZW and D16 XYZ. It also checked the packing expression and compiled the shader with DXC forcs_6_6.cs_6_6path with split wave64, consistent with the runner’s adapter selection and the same-driver D3D12 capability probe. The fixture checked 16 VGPR words per logical lane across 64 lanes. The8_8_8_8_UINTMUBUF load returned(3, 2, 1, 4)through a swizzled descriptor and MTBUF returned(1, 2, 3, 4). With all descriptor selects set toSEL_0, MTBUF16_16_FLOATreturned(1.0, -2.0, 0.0, 1.0)and MUBUF16_UINTreturned zero. The two MTBUF D16 cases checked packed FLOAT words0xC0003C00,0x3C000000and packed UINT word0x00020001.04:57:59 CET.Not tested
Direct DXIL, native wave64, other GPU adapters or drivers, unrelated memory behavior, other fixtures, fuzzing, the workspace suite, and retail-title smoke runs.
AI use
T3 Code / Codex (
gpt-6.2-sol) verified the live PR, ran the stock fixtures, and wrote this report.@DavidM1911 on GitHub · 2026-11-25 10:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.