Repository navigation
Recompiler: treat untargeted S_SETPC_B64 as Term::Other and track ES-to-GS edges - #1528
OtavioTadeu wants to merge 1 commit into
Conversation
…to-GS edges S_SETPC_B64 has flags F_BRANCH | F_INDIRECT without F_TERMINATOR, so term() fell through to Term::Next when branch_target returned None, and edges omitted the ES-to-GS handoff into gs_start (and xcl_entry_pc in split_wave64 mode). Multi-block ES+GS geometry shaders could therefore have structured_span absorb S_SETPC_B64 or gs_start as fallthrough. Fixes xcl-dev#1360. Verified with cargo test -p xcl --lib recomp::geometry_tests (1 passed, DXC compiled), recomp::attribute_tests (3 passed), and recomp::tests::geometry. Assisted-by: Antigravity (Gemini 4 Neon)
0fda42f to
c04e60f
Compare
|
Duplicate note: #1375 (opened earlier, also a draft) fixes #1360 with the same rule. In
Both edit the same lines of AI use: Claude Code (Claude Opus 5.5) compared the diffs and wrote this. |
|
Tested PR #1528 (head Environment
I used two separate worktrees and target dirs (PR head and base) with 1. Targeted tests, native wave64 on RDNA4 (
2. Forced split path ( This runs the NVIDIA-style 32-lane split path on the RDNA GPU. 3. Full workspace (
The one extra pass on the PR is the new test (lib tests: 749 vs 748). Both trees report the same failing target, Not tested / not done
Review questions (from reading the diff only, so I may be missing context)
An AI assistant helped me run the tests and draft this comment. The commands and outputs are mine from the runs above. |
|
Test report for Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the commands and wrote this report; I checked it before posting. |
Integrates xcl-dev#1528 (c04e60f) and the reviewed 47c3ec0d correction. Both ES arms reach the GS while fetch calls and S_CODE_END retain fallthrough. Independent edge-removal checks failed before correction. Assisted-by: T3 Code (gpt-6.2-astra)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why. |
S_SETPC_B64hasF_BRANCH | F_INDIRECTwithoutF_TERMINATOR, soterm()misclassified untargetedS_SETPC_B64asTerm::Next, andedgesomitted the ES-to-GS handoff intogs_start(andxcl_entry_pcinsplit_wave64), allowingstructured_spanto break multi-block ES+GSMode::Geometryshaders. Fixes #1360.What is in it
crates/xcl/src/gpu/recomp/mod.rs: classify untargetedF_BRANCHinstructions asTerm::Otherinterm(), include ES-to-GSS_SETPC_B64andsplit_wave64entry edges inedges, and add a multi-block ES+GS test (verified with DXC)Tested
stable-x86_64-pc-windows-msvc), debug buildcargo test --workspace -- --test-threads=4: 777 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask[no wave64],gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware[no wave64],heap_window_out_of_memory_falls_back_to_the_switch_form[no heap windows])cargo test -p xcl --lib recomp::geometry_tests: 1 passed, 0 failed (DXC compiled)cargo test -p xcl --lib recomp::attribute_tests: 3 passed, 0 failedcargo test -p xcl --lib recomp::tests::geometry: 2 passed, 0 failedRegression run
scripts/smoke.ps1 -Game retail_title -Seconds 60(mainbaseline vs PR head on NVIDIA GeForce GTX 1660 SUPER):Not tested
AI use