Recompiler: treat GFX10.30 scratch ST mode (SADDR 0x7F) as immediate-only (#1361) #1377
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!1377
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1377/head"
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?
@hajduzsolt on GitHub · 2026-11-24 15:24 UTC · original
hajduzsolt:fix/recomp-scratch-st-mode→main· +41 −6 · 2 files · 1 commits · closed without mergingWhat 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
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DarkPanda69 on GitHub · 2026-11-24 15:31 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-24 16:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
@throny on GitHub · 2026-11-24 20:15 UTC · original
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.
@ivall on GitHub · 2026-11-24 20:44 UTC · original
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