Recompiler: keep entered far-jump sequences indirect #865
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!865
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/865/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?
@nova-aryan on GitHub · 2026-11-24 07:01 UTC · original
nova-aryan:contrib/far-jump-entry-targets→main· +73 −1 · 2 files · 1 commits · merged 2026-11-25 01:18 UTCA branch into the middle of a far-jump address calculation can bypass GETPC. The recognizer still assigned SETPC a constant target, making later control-flow analysis assume an address that the incoming SGPR state does not guarantee. Fixes #863.
What is in it
Tested
Independent Windows validation reported by ettehn on this exact head: RTX 5070 Ti Laptop, driver 621.24, Windows 11 x64, Rust 1.97.1 MSVC debug. Full workspace run reported 716 passed, 0 failed, 41 ignored, with two passing tests reporting SKIPPED (no wave64). Both new regression failures were reproduced against main, all three new tests passed on the PR, and eight extra backward-entry cases passed. These results were supplied by that contributor.
Regression run
Reported by Anon64 on NVIDIA RTX 3060 12 GB, driver 581.80, Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0, release. Same retail title for 60 seconds, clean tree at each commit. Blocks copied verbatim from that report.
main:
PR head:
Not tested
The retail run does not establish whether the title reaches the changed code. Native wave64 coverage was skipped in the reported Windows workspace run. Windows full-suite and retail results above are attributed contributor reports. The author's local validation remains the standalone WSL decoder harness. Other GPU families and retail titles remain unverified.
AI use
Codex with GPT-6.1-sol investigated the issue, wrote the fix and tests, ran the standalone checks and drafted this description.
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@Anon64 on GitHub · 2026-11-24 07:17 UTC · original
Regression runs for this PR's head
3544038and for its basemainbeaa245, on a retail title (same title, 60 s each), made withscripts/smoke.ps1(release, clean tree at each commit) and pasted unedited, for Regression run.main:
this PR:
Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine.
@ettehn on GitHub · 2026-11-24 07:18 UTC · original
Independent Windows check on
3544038(Windows 11 x64, RTX 5070 Ti Laptop, driver 621.24, Rust 1.97.1 MSVC debug). Onbeaa245with just the PR’s three new tests, the uninterrupted case passed and both middle-entry tests failed. On the PR head all three passed. The full workspace run finished with 716 passed, 0 failed, 41 ignored; two tests counted as passing reported SKIPPED (no wave64).I also tested a conditional branch jumping backwards into each of the four instruction positions, for both add and subtract sequences. On main, entering the low add still yielded a fixed target of 0x114. All eight cases passed on the PR: entry at GETPC retained the expected fixed target, and the three middle-entry cases remained indirect. All inputs were synthetic. No retail game was run on this machine.
OpenAI Codex (GPT-6.2 Astra) assisted with verification.
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
3544038onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 708 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). far-jump indirect sequencing green.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.
@guinpereira on GitHub · 2026-11-24 11:30 UTC · original
Test report: NVIDIA RTX 5060 Ti (wave32), head
3544038: 719 passed, 0 failed, 41 ignored; the 3 new tests passTested
stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (Windows SDK 10.0.26100.0). Debug build, noXCL_SAMPLE_*.3544038as is (basebeaa245, not rebased on currentmain), clean tree.cargo build --workspace: ok.cargo test --workspace --no-fail-fast -- --test-threads=4: 719 passed, 0 failed, 41 ignored (lib: 675 passed, 21 ignored).SKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware, the same as onmain.far_jumps_keep_uninterrupted_add_and_subtract_sequences,far_jumps_with_an_entry_into_the_sequence_stay_indirectandfar_jumps_check_incoming_far_targets_before_resolvingpass (CPU-only). The existing GPU testfar_jumps_are_direct_branchesalso passes.resolve_far_jumpsfor the same issue (#863), so the two will conflict.Not tested
scripts/smoke.ps1(no title on this machine).main.AI use: Claude Code (Claude Opus 5.5) ran the commands above and wrote this report. No code changes.