Recompiler: geometry ES's s_setpc and gs_start bound structured stretches in every wave form #1863
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-24T22:28:38Z.
Follow-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. - Tests: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. - After merging origin/main (df6445c):cargo build --workspaceandcargo test --workspace -- --test-threads=4, 0 failed.Regression run
scripts/smoke.ps1, 60 s, release builds, run back to back withXCL_PREPARE=0against the same unstaged hard-link/junction view of the title (the original game folder was not modified). Input schedule:XCL_PRESS_AT=2:B,4:B,6:B,8:BandXCL_PRESS_A_AT=10,15,20,25,30,40.main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T23:54:09Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:45:56Z.
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!
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
upstream-sync referenced this pull request2026-11-25 06:04:48 +00:00
upstream-sync referenced this pull request2026-11-25 10:09:30 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:17Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.