Recompiler: geometry mode's ES s_setpc_b64 ends a block before gs_start (#1360) #1375
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!1375
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1375"
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?
@tiagonogueiraa-bit on GitHub · 2026-11-24 15:22 UTC · original
tiagonogueiraa-bit:geometry-setpc-blocks→main· +37 −2 · 2 files · 1 commits · openIn geometry mode the ES hands over to the GS with an
s_setpc_b64that has no resolved target.term()took it for a fall-through, andedgeshad no ES → GS edge. So with branches in the ES or GS,structured_spanmerged the ES's last block and the first GS blocks into one stretch, dropped thes_setpcflow, and gavegs_startnopcblock. In split wave64 the ES phase ran on into the GS code before the barrier, and the GS phase (xcl_entry_pc = gs_start) matched no block and emitted nothing. Fixes #1360.What is in it
crates/xcl/src/gpu/recomp/mod.rs:term(): an indirect branch without a known target ends its block (Term::Other), as other terminators do.edgesgets the ES → GS edge.crates/xcl/src/gpu/recomp/tests.rs:geometry_es_setpc_ends_a_block_before_gs_start(CPU only) translates the issue's ES + GS with a branch in the GS, native and split wave64. It checks for apcblock atgs_startand the ES phase'sselect(xcl_es_phase, …)jump.Tested
cargo check -p xcl --lib --tests --target x86_64-pc-windows-msvcpasses (C code stubbed, nothing linked).gpu::recompbuilt on its own (macOS), not a GPU run:main, neither form has apcblock atgs_start; with this change, both do.shaders.rpf: 5 of 8 158 change, all completely translated before and after. They are ES variants of one VS (VS_VoxelizeGeneric_*) ending ins_setpc_b64: they now end there instead of falling into theirs_endpgmblock, with one morepcblock boundary.63ad831:geometry_es_setpc_ends_a_block_before_gs_startand #1528'smulti_block_es_gs_treats_s_setpc_as_terminator_and_tracks_handoff_edgeboth pass.cargo test -p xcl --lib gpu_geometrypasses 2 tests with no GPU skips. (review)main:cargo test -p xcl --lib, all passed. (report)Regression run
Not run. I have no Windows machine here.
Not tested
gpu_geometry_mode_es_gs_stripand the two wave32 geometry tests, on any adapter.AI use
🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@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!
@tiagonogueiraa-bit on GitHub · 2026-11-24 19:23 UTC · original
Thank you, @GonZiin, for checking both fixtures against both implementations. That's in Tested, along with @DavidM1911's run, and the PR is ready for review. #1375 came first (15:22 vs 17:17 UTC). If the maintainer wants #1528's fixture here too, I'm happy to add it with @OtavioTadeu credited.
Written with Claude Code (Claude Opus 5.5).
@Mischief8713 on GitHub · 2026-11-24 20:36 UTC · original
GPU run of
63ad831on Windows (NVIDIA GTX 1660 Ti, Turing): 708 passed, 0 failed, 21 ignoredTested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4; build exit 0, test exit 0gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64)main(9039900). It was run as it is.gpu::recomp::tests::gpu_geometry_mode_es_gs_stripran on the GPU and passed (this GPU has mesh shaders). The other geometry tests passed:geometry_es_setpc_ends_a_block_before_gs_start,geometry_wave32_rejects_cross_half_operations,geometry_wave_path_selection_preserves_native_wave64, and the e2eretail_es_gs_voxelize_geometry_mode.gpu_geometry_wave32_prefix_count_over_a_maskprinted SKIPPED (no wave64).Not tested
scripts/smoke.ps1run, so no regression runAI use
@Toons29 on GitHub · 2026-11-25 03:27 UTC · original
Regression run of
63ad831con 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: 101 % 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.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.