amd-dev 6a0bb5b: 13 tests fail on an RX 9070 XT, and the lib test binary aborts after 1,024 of 1,564 tests #2622
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 AC-Storm-YT on 2026-11-26T03:29:24Z.
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 tomainand on PRs, so I don't thinkamd-devgets this run otherwise. No game data was used.Setup
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).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 from1a0bbe3onmain). 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
8484858and46aecbf, respectively, at each probe.main6a0bb5bhle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit6a0bb5bD3D12.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_budget6a0bb5b(same)the dispatch was not put off, left 1, right 3hle::d3d12x::list_x::tests::bitset_runs_emit_exact_contiguous_page_ranges02ca14fd3d12x: indirect draw caps, sharded bind state, stack io, and bitset sync[(0, 130)]instead of[(0, 128)]:for_each_bitset_runcloses a trailing run atneven whenbitsholds fewer thannbitsgpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu46aecbfDXIL: shrink emitted shaders 4.5x-5.4x …f32 compares, wave32: s10, left 4294967291, right 4008636138crates/xcl/tests/gpu_compute_e2e.rsoffline_compute_pipeline_is_reused_by_a_second_process4dfade6Shaders: 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.rsoffline_split_compute_pipeline_is_reused_by_a_second_process4dfade6(same)gpu_compute_e2e.rs:218hle::d3d12x::title_textures::tests::title_bytes_are_used_in_place_when_all_are_readable6d7dcbbD3D12.X: read non-UMA title_bytes safely via read_committeda committed page is not copiedhle::d3d12x::real::big_compile_tests::giant_driver_compiles_have_their_own_laneb71981dD3D12.X: defer >=256 KiB graphics/MS PSOs, lower HEAVY_CODE to 16 KiB, …real.rs:5066)gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole9c4a921Recompiler: 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_window3058ce8D3D12.X: skip mapping uncommitted graphics-reservation texture pagescoherent-only UMA should still back physical homesgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier04e0f1cMerge origin/main (bd2ac507) into amd-dev: the test comes frommainand fails from the merge oncrates/xcl/tests/d3d12_mesh_stream.rsconsole_ms_in_as_slot_and_ms_with_as_are_refused_cleanly9b4742elocal: #541expected AS-slot refusal in translation_errors: ["MS: no NGG hardware variant"]hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heapSeveral of these may be tests that the new behaviour made out of date, rather than bugs: for example the two
list_xwait tests after the wait windows of6a0bb5b. I can't tell which is which. The bitset one and the worker abort look like real bugs.Not tested
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.amd-dev's first-parent line.AI use
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-26T03:35:09Z.
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's9c4a921turns 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.Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-26T03:55:30Z.
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.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T04:34:35Z.
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.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T12:10:54Z.
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.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T12:17:06Z.
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)
The 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.Imported from ivall/xcl. Originally posted by AC-Storm-YT on 2026-12-02T06:36:05Z.
#3661 fixes
placed_title_textures_share_vram_and_preserve_pixelsonamd-dev: the test predatedvram_small(aeefef10) and expected tile mappings for a 16 KiB texture that now sits in a small-pool block. Its panic poisonedTEST_LOCK, which is what failedremapped_pages_are_compared_with_what_they_heldand the threestream_recheck_*tests after it. Test-only change.On
amd-dev41aa60ce(RX 9070 XT, debug, whole workspace): 8 failures before, 3 after. The 3 left also fail without the change:fuzz_validate_and_gpu_1(#2115),sparse::tests::private_physical_pages_reach_the_gpu_on_mapping(the GPU copy-back leaves a tile with no video memory holding CPU bytes: a runtime issue), andtwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs. The 1,024-test abort from the first report no longer happens.AI use: Claude Code (Claude Opus 5.5) ran the tests and drafted this.