Recompiler: treat GFX10.30 scratch ST mode (SADDR 0x7F) as immediate-only (#1361) #1367
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1377"
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?
Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T15:24:01Z.
What is in it
crates/xcl/src/gpu/recomp/emit.rs: splitSADDR == 0x7Ffrom0x7DinEm::scratchso that0x7Fuses0uas the base address without referencingv0, while0x7Dpreserves VADDR mode usingv[ADDR].crates/xcl/src/gpu/recomp/tests.rs: addscratch_address_modes_st_vaddr_and_saddrverifying that ST mode (0x7F) emits0u + offsetwith nov0reference, VADDR mode (0x7D) emitsv3 + offset, and SADDR mode (4) emitss4 + offset. Updategpu_more_atomics_sub_dword_scratch_valuto use0x7Dfor VADDR mode and add an ST mode (0x7F) test with non-zerov0.Tested
cargo test --workspace -- --test-threads=4: 748 passed, 0 failed, 37 ignored (SKIPPED GPU tests: none)cargo test -p xcl --lib recomp::tests::scratch_address_modes_st_vaddr_and_saddr -- --nocapture: 1 passed, 0 failedcargo test -p xcl --lib recomp::tests::gpu_more_atomics_sub_dword_scratch_valu -- --nocapture: 1 passed, 0 failedRegression run
main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-24T15:31:28Z.
NVIDIA run (32-lane waves, so the split wave64 form), which this PR lists as not tested.
Tested: pass, head
d72a747applied on its basemain930e8b4, debug, 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:scratch_address_modes_st_vaddr_and_saddrok.Not tested: the whole workspace suite; a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T16:41:56Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
Imported from ivall/xcl. Originally posted by throny on 2026-11-24T20:15:28Z.
Two contributors checked independently and found that this PR makes the same change as #1365 #1606 (for #1361): #1607, group D30. They suggest keeping #1365. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T20:44:47Z.
Closing this as a duplicate: the contributors who checked groups D6 and D30 in #1607 agree that #1365 makes the same change (scratch with SADDR 0x7F addresses the offset alone) and suggest keeping #1365, which was opened first. Its description check still has to pass before it can be merged; if its author does not get to it, I'll reopen this one.
This says nothing about the quality of the code here. If this PR covers a case #1365 does not, or #1365 is closed without being merged, say so and I'll reopen it.
Thank you for the work.
AI use: Claude Code (Claude Opus 5.5) wrote this comment; the decision is the maintainer's.
Pull request closed