Repository navigation
Description
Part of #1833. A run of the whole test suite on amd-dev, with the commit that first fails each test. CI runs only on pushes to main and on PRs, so I don't think amd-dev gets this run otherwise. No game data was used.
Setup
- AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010; Ryzen 7 9800X3D; Windows 11 Pro 26200; Rust 1.100.0
stable-x86_64-pc-windows-msvc, debug; noXCL_*orXCL_SAMPLE_*variables. cargo test --workspace --no-fail-fast -- --test-threads=4onamd-dev6a0bb5b, and onmain08db802as the baseline, on the same machine.
Result
main08db802: 1,427 passed, 2 failed (fuzz_validate_and_gpu_1and_3, which fail onamd-devtoo), 47 ignored.amd-dev6a0bb5b: the lib test binary aborts with0xc0000005after 1,024 of its 1,564 tests, in 3 of 3 runs. The 540 that don't run are mostlykernelx,title_textures,vram,sparseanddstoragetests. Run one at a time, all of them pass except 3 (in the table).- The abort: it comes right after
a_dispatch_with_a_pipeline_still_building_waits_at_the_submitfails. A PSO worker then panics inwindows-core-0.62.2/src/interface.rs:41, which is a non-unwinding panic:thread 'xcl-pso-9' … misaligned pointer dereference: address must be a multiple of 0x8 but is 0x690000006b. So a worker is still using an interface pointer after the failed test has torn down.
Failing tests and the first commit that fails each
I found each commit by binary search on amd-dev's first-parent history (183 commits from 1a0bbe3 on main). Each probe ran the test on its own (--exact --test-threads=1).
The lib tests don't compile at #52–#95 and #111–#166: struct literals in test files miss fields that later commits add. In those stretches I applied only the test-file fixes of 8484858 and 46aecbf, respectively, at each probe.
| Test | Passes on main |
First failing commit | Message on 6a0bb5b |
|---|---|---|---|
hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit |
yes | 6a0bb5b D3D12.X: enforce wall-clock frame wait windows, … |
dispatch 17 waited for the build (9.9884741s) |
hle::d3d12x::list_x::tests::a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget |
new test | 6a0bb5b (same) |
the dispatch was not put off, left 1, right 3 |
hle::d3d12x::list_x::tests::bitset_runs_emit_exact_contiguous_page_ranges |
new test | 02ca14f d3d12x: indirect draw caps, sharded bind state, stack io, and bitset sync |
[(0, 130)] instead of [(0, 128)]: for_each_bitset_run closes a trailing run at n even when bits holds fewer than n bits |
gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu |
yes | 46aecbf DXIL: shrink emitted shaders 4.5x-5.4x … |
f32 compares, wave32: s10, left 4294967291, right 4008636138 |
crates/xcl/tests/gpu_compute_e2e.rs offline_compute_pipeline_is_reused_by_a_second_process |
yes | 4dfade6 Shaders: warm memory-mapped ID3D12PipelineLibrary1 (.plib) … |
gpu_compute_e2e.rs:124: Os { code: 3, … "The system cannot find the path specified." } |
crates/xcl/tests/gpu_compute_e2e.rs offline_split_compute_pipeline_is_reused_by_a_second_process |
yes | 4dfade6 (same) |
panics at gpu_compute_e2e.rs:218 |
hle::d3d12x::title_textures::tests::title_bytes_are_used_in_place_when_all_are_readable |
yes | 6d7dcbb D3D12.X: read non-UMA title_bytes safely via read_committed |
a committed page is not copied |
hle::d3d12x::real::big_compile_tests::giant_driver_compiles_have_their_own_lane |
yes | b71981d D3D12.X: defer >=256 KiB graphics/MS PSOs, lower HEAVY_CODE to 16 KiB, … |
left 3, right 2 (real.rs:5066) |
gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole |
yes | 9c4a921 Recompiler: enable compute dispatch splitting for native Wave64 [64,1,1] |
assertion failed: program.dispatch_chain.is_none() |
hle::kernelx::tests::physical_home_without_sparse_windows_uses_coherent_window |
yes | 3058ce8 D3D12.X: skip mapping uncommitted graphics-reservation texture pages |
coherent-only UMA should still back physical homes |
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier |
yes | 04e0f1c Merge origin/main (bd2ac50) into amd-dev: the test comes from main and fails from the merge on |
group barriers after the entry branch |
crates/xcl/tests/d3d12_mesh_stream.rs console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly |
yes | 9b4742e local: #541 |
expected AS-slot refusal in translation_errors: ["MS: no NGG hardware variant"] |
hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap |
new test | not searched | fails only in the parallel run; passes alone |
Several of these may be tests that the new behaviour made out of date, rather than bugs: for example the two list_x wait tests after the wait windows of 6a0bb5b. I can't tell which is which. The bitset one and the worker abort look like real bugs.
Not tested
- A release build, NVIDIA, and RDNA2 / RDNA3.
- Any title:
smoke.ps1was not run. two_pass_binds_set_the_shared_view_heap's commit; and the parallel-only abort on its own, beyond the test it follows.- Commits outside
amd-dev's first-parent line.
AI use
- Claude Code (Claude Opus 5.5) ran the test suites and the commit search on my machine, and drafted this report.
Activity
Kalmarv commentedon Nov 26, 2026
One of the 13 is ours:
gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole(from #2080). It pins that a native wave64[64,1,1]program keeps its whole pipeline.amd-dev's 9c4a921 turns on wave64 splitting on purpose, so onamd-devthat test checks the old behaviour and is expected to fail. The test needs updating there, and this isn't a fault in the split code. It is skipped on our NVIDIA runs (no native wave64), so we never ran it onamd-dev. If it helps, I can send the updated assertion foramd-dev's rule.AI use: Claude Code (Claude Opus 5.5) read the failing test against
amd-devand wrote this note.DarkPanda69 commentedon Nov 26, 2026
NVIDIA run (listed as untested), plus a second RX 9070 XT: the abort is not AMD-only. It is intermittent on both cards, at the same point, and the failing lib tests are the same ones, minus the AMD fuzz seed.
amd-dev6a0bb5bchecked out as is, debug, Windows 11 Pro 26200, Ryzen 7 5800X, card chosen withXCL_ADAPTER. RTX 3060 (Ampere, 32-lane waves only, driver 32.0.16.1088); RX 9070 XT (RDNA4, 32.0.32029.2010).The abort,
cargo test -p xcl --lib -- --test-threads=46 times per card, plus one--workspace --no-fail-fastrun per card:STATUS_ACCESS_VIOLATION.a_dispatch_with_a_pipeline_still_building_waits_at_the_submit ... FAILED, thenthread 'xcl-pso-6' panicked at windows-core-0.62.2\src\interface.rs:41:18: misaligned pointer dereference: address must be a multiple of 0x8 but is 0x4, then the non-unwinding abort. 2 stopped after 1,024 tests withSTATUS_ACCESS_VIOLATION; for the other 2 I have no log of the cause.Lib failures in the finished runs. These are the same on both cards except
fuzz_validate_and_gpu_1, which fails only on the RX 9070 XT (#2115):dispatch_chain_native_wave64_builds_whole,a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier,f32_programs_on_the_gpu,two_pass_binds_set_the_shared_view_heap,a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget,bitset_runs_emit_exact_contiguous_page_ranges,a_dispatch_with_a_pipeline_still_building_waits_at_the_submit,giant_driver_compiles_have_their_own_lane,title_bytes_are_used_in_place_when_all_are_readable,physical_home_without_sparse_windows_uses_coherent_window.So
f32_programs_on_the_gpu,giant_driver_compiles_have_their_own_lane,title_bytes_are_used_in_place_when_all_are_readableandphysical_home_without_sparse_windows_uses_coherent_windowfail on NVIDIA too.dispatch_chain_native_wave64_builds_wholealso fails on the RTX 3060 rather than skipping.Integration tests,
--workspace --no-fail-fast, the same failures on both cards:console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,offline_compute_pipeline_is_reused_by_a_second_process,offline_split_compute_pipeline_is_reused_by_a_second_process. Not counted:test_title_runs_and_game_folder_is_untouchedalso failed here, but only because I had not runcargo build --workspacefirst (missing ... xcl_testtitle.exe). It fails the same way onmainin that state.Not tested: release,
amd-dev's current tipb5c0275, the commit search.AI use: Claude Code (Claude Opus 5.5) ran the suites on this machine and wrote this comment.
luckyteagirl commentedon Nov 26, 2026
I reproduced and fixed the
bitset_runs_emit_exact_contiguous_page_rangesfailure on the currentamd-devtipb5c0275f82689e38f0c37e121ef37407e4cbb3e2.for_each_bitset_runlimits iteration to the available words but closed a trailing set-bit run at the requestedn. With two all-set words andn=130, it emitted(0,130)although the slice ends at bit 128. This one-commit patch closes atmin(n, bits.len().saturating_mul(64)); it changes only that helper. The existing assertion is the regression test.Validation on Windows 11 Home build 26200, Ryzen 9 5980HX, Rust 1.99.0 MSVC:
amd-devbase,cargo test --locked -p xcl --lib hle::d3d12x::list_x::tests::bitset_runs_emit_exact_contiguous_page_ranges -j 1 -- --exact --test-threads=1 --show-output: 0 passed, 1 failed, 0 ignored, with(0,130)instead of(0,128).cargo build --locked --workspace -j 1: passed.XCL_ADAPTER=nomatch cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=1 --show-output: 37 target summaries, 1,663 passed, 7 failed, 47 ignored; process exit 101, memory guard did not stop it. The seven failures are six library tests and oned3d12_mesh_streamtest already listed in this issue. Many GPU fixtures printedSKIPPEDunder the nonmatching runner selector; the passing total is not full GPU coverage. Some D3D12 integration tests select their own default adapter.No release or retail-title smoke comparison was run for this branch. The helper exists only on
amd-dev, whileCONTRIBUTING.mdasks that PRs targetmain, so I am sharing the isolated commit here for review or cherry-pick rather than opening a PR with the unrelatedamd-devchanges.AI use: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent identified the cause, made the patch, and ran the tests. I reviewed the diff and logs before posting.
thehollowedone commentedon Nov 26, 2026
I checked the
amd-devheadb5c0275on Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35). The firstlist_xfailure is a stale test expectation:deferpermits 16 deferred dispatch segments per frame, but the test expects 210. Dispatch 17 falls through toresolve_wait, while the test only releases its worker after all 210 dispatches. On the unmodified head, the isolated test failed after 9.99 seconds (0 passed, 1 failed). Changing only the test bound to the production cap made it pass (1 passed, 0 failed).One-line test adjustment
With that one local test change,
cargo test --offline --locked -p xcl --lib -- --test-threads=4completed: 1,534 passed, 10 failed, 27 ignored, with 20SKIPPEDdiagnostic lines. The dispatch test passed. The other failures remain, including the adjacent put-off test, which still expects deferral while its own 50 ms wait budget now disables it. This one completed run does not establish that the intermittent PSO-worker pointer abort is fixed. A failure-safe test cleanup and an independently owned COM reference for any delayed worker closure still merit separate checks.Synthetic tests only; no title or AMD run. AI use: Codex (GPT-6.2 Sol) traced the code, made the local test-only change, and ran these tests.
thehollowedone commentedon Nov 26, 2026
Follow-up to my dispatch-test report: I traced a separate COM lifetime gap on current
amd-devb5c0275.The adjacent GPU test captures only the integer address of a real PSO in a delayed worker. Its assertion currently fails before releasing
BUILD. Unwinding can dropmade;pso_releasethen retires its pending real PSO. The worker may wake later and clone through the old address. This test also runs on NVIDIA:wave64_programs_supported()accepts wave32 split execution. This path is consistent with the reported worker crash, but I have not proved it is that crash's sole cause.Candidate ownership change (test only)
let built = pso_async::resolve_wait(made.as_raw() as usize); assert!(real::is_translated_compute(built), "not translated: {:?}", real::stats().translation_errors); +let built_for_worker = ID3D12PipelineState::from_raw_borrowed(&(built as *mut c_void)).unwrap().clone(); ... - ID3D12PipelineState::from_raw_borrowed(&(built as *mut c_void)).unwrap().clone().into_raw() as usize + built_for_worker.into_raw() as usizeThe two-line change compiled with
cargo test --offline --locked -p xcl --lib --no-runon this exact head. It does not resolve the stale assertion: the test still needs a panic-safe gate, wait-budget reset and stand-in cleanup, plus a gated ownership regression before treating the abort as fixed. No retail data was used. AI use: Codex (GPT-6.2 Sol) traced the ownership path and compiled the local test-only candidate.