amd-dev 6a0bb5b: 13 tests fail on an RX 9070 XT, and the lib test binary aborts after 1,024 of 1,564 tests #2632
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2632
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?
@AC-Storm-YT on GitHub · 2026-11-26 03:29 UTC · original
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
@Kalmarv on GitHub · 2026-11-26 03:35 UTC · original
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.@DarkPanda69 on GitHub · 2026-11-26 03:55 UTC · original
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 on GitHub · 2026-11-26 04:34 UTC · original
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.