Tests: fix 4 geometry tests broken on main by split-ES safe-barrier and no-store epilogue merges #3411
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3411"
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 Kalmarv on 2026-11-29T14:18:08Z.
What is in it
main(3b6a91ed) due to the merge interaction between#2485,#2419,#2102, and commit685cf9cb(which refuses split-wave64 Direct DXIL geometry passes that have an ES phase whilesafe_barrier_wanted()is active):crates/xcl/src/gpu/dxil/geometry_tests.rs:msg_gs_done_program: remove the unused 4-byteS_SETPC_B64ES prefix and setgs_start: Some(0)(GS-only) sogpu_geometry_msg_gs_done_recordsruns both Direct DXIL and HLSL on wave32 GPUs instead of failing with the split-ES safe-barrier refusal.msg_gs_done_emits_in_dxil: add a GS-phaseDS_WRITE_B32(since#2419gatesemittedonhas= a GS-phase LDS store having happened) and inspect the firstdx.op.waveActiveOp.i32(i32 119, ...)(tvemitted-vertex sum) to verify it is non-zero iffexpect_emit(since#2419's triangle-straddle loop places the secondwaveActiveOpin a separate block so the two calls no longer CSE to 1).crates/xcl/src/gpu/dxil/lower_geom.rs:gpu_epilogue_filters_oob_triangles_and_no_store_emits: remove the unused 4-byteS_SETPC_B64ES prefix and usegs_iface(mvc, 0)(GS-only) so Direct DXILlower_geom::geom_epiloguecontinues to be exercised directly on split wave64 (split = true) on wave32 GPUs.crates/xcl/src/gpu/dxil/lower_mem.rs:stage_guard_tests::geometry_export_rejected: expect the split-ES safe-barrier refusal (split wave64 geometry: the ES phase exchanges at group barriers) for(gs_start: None, split: true)whensafe_barrier_wanted()is true, and"export target"for all other combinations ((Some(0), false),(Some(0), true),(None, false), andXCL_SAFE_BARRIER=0).Tested
origin/main(3b6a91ed) before this change and pass after:cargo test -p xcl --lib -- msg_gs_done_emits_in_dxil gpu_geometry_msg_gs_done_records geometry_export_rejected gpu_epilogue_filters_oob_triangles_and_no_store_emits(4 passed, 0 failed; DXC 1.9.2609.5 + RTX 5070 Ti).XCL_DXC_DIRset to DXC 1.9.2609.5):cargo test --workspace -j 2 -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip uma_driver::tests::— 41 test binaries, 2715 passed, 0 failed, 49 ignored, 9 filtered; 27 runtimeSKIPPED(22no wave64on wave32 RTX 5070 Ti, 3 refused#1426per-lanef16/f32forms, 2no heap windowsopt-in).Regression run
Not tested
split = falseGPU paths of the geometry tests) andXCL_SAFE_BARRIER=0env override.test_title_runs_and_game_folder_is_untouchedanduma_driver::tests::(skipped during workspace test run).AI use
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-29T14:33:15Z.
merge-check
base:
3b6a91ed09head:
468190c23fmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2724 passed, 0 failed, 49 ignored; SKIPPED: 29 (mostly "no wave64", plus "no heap windows", "no GPU_UPLOAD heaps", "no build ahead"); failing: none. On the base
3b6a91ealone the 4 tests fail here too:gpu_epilogue_filters_oob_triangles_and_no_store_emits,gpu_geometry_msg_gs_done_recordsandgeometry_export_rejectedwith "split wave64 geometry: the ES phase exchanges at group barriers", andmsg_gs_done_emits_in_dxilon itswaveActiveOpcount. Each fails from its own PR's merge commit on (#2419e872f23, #2485ca9baa6, #2102848be4c).review: none blocking, after reading the whole diff (test-only:
geometry_tests.rs,lower_geom.rs,lower_mem.rs). The 4 tests pass 3/3 here on wave32 (split wave64), and the 2 GPU ones ran (not SKIPPED). One coverage point: the MSG_GS_DONE and OOB-epilogue tests now drop the ES jump on every GPU, so the ES + GS form these PRs added is no longer exercised even with native wave64 (AMD), wheretranslate_geometrystill accepts it. Other tests ingeometry_tests.rskeep the ES phase and acceptSPLIT_ES_REFUSEDonly in the split form, which would keep that coverage.geometry_export_rejectedaccepts the refusal only for split + ES +safe_barrier_wanted(), which matcheskernel.rs. CI:Build and teston this head failed once (14:29Z) and was running again when I checked; I did not look into that run.performance: none (tests only).
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug / Claude Code (Claude Opus 5.5)
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T14:56:45Z.
I tried the ES+GS coverage point from the merge check on
468190c2. The attached small test-only patch keeps the GS-only fixture and reruns the sameMSG_GS_DONErecord assertions with the original ES prefix. On a wave32 device with safe barriers enabled, the fixture asserts the specific Direct DXIL refusal and executes the HLSL fallback. On a native wave64 device it can exercise Direct DXIL for ES+GS as well.On RTX 5070 / 616.92, Ryzen 7 5700X3D, Rust 1.100.0, DXC 1.8.2502.11, the four regressions from this PR and the new ES+GS test passed (5 passed, 0 failed, 0 skipped). The ES+GS fallback produced the expected vertex and triangle records for all four message variants. A fresh run of the CPU-only
geometry_export_rejectedtest withXCL_SAFE_BARRIER=0also passed (1 passed, 0 skipped). Native wave64 execution and retail behavior remain unmeasured.Apply-checked coverage patch
AI disclosure: OpenAI Codex (GPT-6.2 Sol) drafted and ran the test extension and wrote this report.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T15:03:54Z.
merge-check
base:
3b6a91ed09head:
468190c23fmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2724 passed, 0 failed, 49 ignored (28 SKIPPED lines). Base alone at
3b6a91ed: 2722 passed, 2 failed (gpu::dxil::geometry_tests::gpu_geometry_msg_gs_done_records, msg_gs_done_emits_in_dxil), 49 ignored.review: no finding (read by me, test code only, 23 added and 15 removed lines in 3 files). The four tests stop needing an ES phase in a split wave64 program, which
translate_geometryrefuses since #3203: three build a GS-only program (gs_start0), andgeometry_export_rejectedexpects the refusal text exactly where the refusal applies (split, an ES phase, safe barrier wanted) and "export target" everywhere else. The no-store test now checks that the first wave sum has a non-constant operand instead of counting wave sums, with a store added so the program is not empty; that still tells the emitting cases from the folded ones. No production code changes. Run alone, the four tests fail on the base (0 passed, 4 failed, three runs); in the whole suite two of them fail on the base, so their result depends on what else runs in the process. I did not run the four alone on this head.performance: none (tests only).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).