Tests: fix three expectations behind the split wave64 failures on main (#3093) #3163
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3163"
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 tiagonleal on 2026-11-28T14:36:26Z.
Part of #3093 (group 2). Test-only. On
maine429936csix GPU tests fail since #2959 on NVIDIA (wave32) and AMD. On an RTX 5070 Ti all six come from the tests' own expectations, and none from the runtime. One commit per cause:What is in it
split.rs(test module): the threedispatch_chain_*tests search the disassembly forResBind { i32 0, i32 2, i32 2, i8 1 }. Title memory israw_uav(2 + k, 0)(kernel.rs), which disassembles as{ i32 2, i32 2, i32 0, i8 1 }, so the string never matched. The pruning that2b395256added works: the binding is in 2 of the 4 pieces. One string changes; both assertions stay.tests.rs:gpu_compute_mode_dispatch_abiandgpu_float_cas_uses_ieee_equalityunwrapped the direct DXIL translation.dbe6b30bmakes the direct path refuse split wave64 LDS on purpose (its own testthe_runtime_path_leaves_split_wave64_lds_to_hlslchecks that) and production falls back to HLSL on that error (pso.rs). When the program is split, the tests now assert that exact refusal and run the HLSL backend only. On native wave64 the direct path must still succeed, as before.heap_window_tests.rs:gpu_heap_flat_reads_match_guarded_and_root_outputexpected 0 for a vector read outside the UMA with one window. With one window there is no window check (Lw::windowed()ismems.len() > 1), so the address aliases window 0, and the test already expects that for its scalar read. The vector lane now expects the same.Tested
maine429936c: the six fail (0 passed; 6 failed). With this PR:cargo test -p xcl --lib -- gpu::dxil::module::split dispatch_abi float_cas heap_flat --test-threads=1: 14 passed, 0 failed, noSKIPPEDline, also withXCL_DIRECT_DXIL=1.cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4, one run on head1616c291: 2128 passed, 7 failed, 48 ignored (25SKIPPEDlines). All 7 failures also fail onmaine429936con this machine (2122 passed, 13 failed, 48 ignored): the 4gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_*(#1919 fixes them) and 3 of the 9 in #3093. Fixed againstmain:dispatch_chain_oversized_loop_matches_whole,dispatch_chain_wave32_live_loops,dispatch_chain_wave64_live_loops_and_exchange,gpu_heap_flat_reads_match_guarded_and_root_output,gpu_compute_mode_dispatch_abi,gpu_float_cas_uses_ieee_equality.Regression run
scripts/smoke.ps1 -Seconds 60 -Title 9cc6a39e(Newer Retail Game), release builds of both commits in clean trees,maine429936cfirst, one run each, in one queue with this account's other PRs. Both runs hadXCL_PREPARE=0and the same warm DXIL cache. A warm-up run ofmaincame before them and is not shown. A second run ofmainat the end of the queue showed 374 frames and a peak commit of 14157 MB, so differences of a few tens of frames between runs are noise here.main(e429936c):This PR (
1616c291):Not tested
gpu_compute_mode_dispatch_abion an RX 9070 XT in #3093 (s_barrier in a group of several hardware waves). This PR does not change the native wave64 path of that test, so that failure is probably still there.#[cfg(test)]; the smoke run is there becausesplit.rsis a runtime file.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-28T14:37:56Z.
Closing as a duplicate: #3150 (KOLESNiii) fixes the same three test expectations and was merged into
mainwhile this one was still running its suite and smoke pair.AI use: Claude Code wrote this comment (Claude Fable 5.2).
Pull request closed