Recompiler: geometry ES's s_setpc and gs_start bound structured stretches in every wave form #1873
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!1873
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1873"
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?
@bmjask on GitHub · 2026-11-24 22:28 UTC · original
bmjask:fix/geometry-setpc-boundary→main· +67 −7 · 2 files · 2 commits · openFollow-up to #1689 that addresses @MatyEjsr's two review notes there (confirmed on
87d421b).What is in it
s_setpc_b64in the ES now ends a structured stretch in every wave form. Before, this only happened in split wave64. In native wave64, an earlys_setpc_b64on one ES branch fell through into the other branch's code instead of jumping togs_start.gs_startis entered from the ES'ss_setpc_b64, an edge thatCtx::edgesdoesn't hold. A structured stretch starting in padding between the ES and the GS (e.g.s_nop) could run across it and drop theif (pc == gs_start)entry. Stretches now stop atgs_start.Ctx::phase_splitis replaced bygeometryandgs_entry. Only geometry mode is affected.mod.rsis in build.rs's translator source hash, so translated-cache entries re-key automatically.geometry_early_setpc_ends_the_es_in_every_wave_form(fails onmainin the native form) andgeometry_padding_before_gs_start_keeps_its_entry(fails onmain).Tested
cargo test -p xcl --lib gpu::recomp -- --test-threads=4: 263 passed, 0 failed, 18 ignored. Both new tests fail without themod.rschange.df6445c):cargo build --workspaceandcargo test --workspace -- --test-threads=4, 0 failed.Regression run
scripts/smoke.ps1, 60 s,XCL_PRESS_AT=2:B,4:B,6:B,8:B XCL_PRESS_A_AT=10,15,20,25,30,40, run back to back. main is a release build of origin/main (689f2db); PR is a release build of the head (df6445c, origin/main merged in). Each block comes from its own checkout'sscripts/smoke.ps1.main:
PR:
Not tested
AI use
🤖 Generated with Claude Code
@futurepro62 on GitHub · 2026-11-24 23:54 UTC · original · edited 2026-11-25 00:01 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
df6445c(on its base689f2db).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::dxil::fuzz_tests: 967 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.geometry_early_setpc_ends_the_es_in_every_wave_form,geometry_padding_before_gs_start_keeps_its_entry.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 976 passed, 0 failed, 45 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main62265d3too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 01:45 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.