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

Open
opened 2026-11-26 05:35:18 +00:00 by github-bot · 3 comments
Owner

@⁠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 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; no XCL_* or XCL_SAMPLE_* variables.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on amd-dev 6a0bb5b, and on main 08db802 as the baseline, on the same machine.

Result

  • main 08db802: 1,427 passed, 2 failed (fuzz_validate_and_gpu_1 and _3, which fail on amd-dev too), 47 ignored.
  • amd-dev 6a0bb5b: the lib test binary aborts with 0xc0000005 after 1,024 of its 1,564 tests, in 3 of 3 runs. The 540 that don't run are mostly kernelx, title_textures, vram, sparse and dstorage tests. 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_submit fails. A PSO worker then panics in windows-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 (bd2ac507) 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.ps1 was 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.
**@⁠AC-Storm-YT** on GitHub · 2026-11-26 03:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/2632) 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; no `XCL_*` or `XCL_SAMPLE_*` variables. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `amd-dev` `6a0bb5b`, and on `main` `08db802` as the baseline, on the same machine. **Result** - **`main` `08db802`:** 1,427 passed, 2 failed (`fuzz_validate_and_gpu_1` and `_3`, which fail on `amd-dev` too), 47 ignored. - **`amd-dev` `6a0bb5b`:** the lib test binary **aborts with `0xc0000005` after 1,024 of its 1,564 tests**, in 3 of 3 runs. The 540 that don't run are mostly `kernelx`, `title_textures`, `vram`, `sparse` and `dstorage` tests. 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_submit` fails. A PSO worker then panics in `windows-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 (bd2ac507) 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.ps1` was 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:35:18 +00:00
Author
Owner

@⁠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's 9c4a921 turns on wave64 splitting on purpose, so on amd-dev that 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 on amd-dev. If it helps, I can send the updated assertion for amd-dev's rule.

AI use: Claude Code (Claude Opus 5.5) read the failing test against amd-dev and wrote this note.

**@⁠Kalmarv** on GitHub · 2026-11-26 03:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7181847509) 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 on `amd-dev` that 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 on `amd-dev`. If it helps, I can send the updated assertion for `amd-dev`'s rule. AI use: Claude Code (Claude Opus 5.5) read the failing test against `amd-dev` and wrote this note.
Author
Owner

@⁠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-dev 6a0bb5b checked out as is, debug, Windows 11 Pro 26200, Ryzen 7 5800X, card chosen with XCL_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=4 6 times per card, plus one --workspace --no-fail-fast run per card:

  • RX 9070 XT: 2 of the 7 runs finished (1,526 passed, 11 failed, 27 ignored). The other 5 ended without a test summary; in the 3 I logged in full, each stopped after 1,023 tests with STATUS_ACCESS_VIOLATION.
  • RTX 3060: 1 of the 7 runs finished (1,527 passed, 10 failed). Of the 6 that ended early, 2 show the trace you describe: a_dispatch_with_a_pipeline_still_building_waits_at_the_submit ... FAILED, then thread '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 with STATUS_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_readable and physical_home_without_sparse_windows_uses_coherent_window fail on NVIDIA too. dispatch_chain_native_wave64_builds_whole also 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_untouched also failed here, but only because I had not run cargo build --workspace first (missing ... xcl_testtitle.exe). It fails the same way on main in that state.

Not tested: release, amd-dev's current tip b5c0275, the commit search.
AI use: Claude Code (Claude Opus 5.5) ran the suites on this machine and wrote this comment.

**@⁠DarkPanda69** on GitHub · 2026-11-26 03:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7182141142) 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-dev` `6a0bb5b` checked out as is, debug, Windows 11 Pro 26200, Ryzen 7 5800X, card chosen with `XCL_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=4` 6 times per card, plus one `--workspace --no-fail-fast` run per card: - RX 9070 XT: 2 of the 7 runs finished (1,526 passed, 11 failed, 27 ignored). The other 5 ended without a test summary; in the 3 I logged in full, each stopped after 1,023 tests with `STATUS_ACCESS_VIOLATION`. - RTX 3060: 1 of the 7 runs finished (1,527 passed, 10 failed). Of the 6 that ended early, 2 show the trace you describe: `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit ... FAILED`, then `thread '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 with `STATUS_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_readable` and `physical_home_without_sparse_windows_uses_coherent_window` fail on NVIDIA too. `dispatch_chain_native_wave64_builds_whole` also 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_untouched` also failed here, but only because I had not run `cargo build --workspace` first (`missing ... xcl_testtitle.exe`). It fails the same way on `main` in that state. Not tested: release, `amd-dev`'s current tip `b5c0275`, the commit search. AI use: Claude Code (Claude Opus 5.5) ran the suites on this machine and wrote this comment.
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 04:34 UTC · original

I reproduced and fixed the bitset_runs_emit_exact_contiguous_page_ranges failure on the current amd-dev tip b5c0275f82689e38f0c37e121ef37407e4cbb3e2.

for_each_bitset_run limits iteration to the available words but closed a trailing set-bit run at the requested n. With two all-set words and n=130, it emitted (0,130) although the slice ends at bit 128. This one-commit patch closes at min(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:

  • Exact amd-dev base, 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).
  • Exact patch head, same command: 1 passed, 0 failed, 0 ignored (1,570 filtered out).
  • cargo build --locked --workspace -j 1: passed.
  • Patch head, 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 one d3d12_mesh_stream test already listed in this issue. Many GPU fixtures printed SKIPPED under 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, while CONTRIBUTING.md asks that PRs target main, so I am sharing the isolated commit here for review or cherry-pick rather than opening a PR with the unrelated amd-dev changes.

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.

**@⁠luckyteagirl** on GitHub · 2026-11-26 04:34 UTC · [original](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7182714861) I reproduced and fixed the `bitset_runs_emit_exact_contiguous_page_ranges` failure on the current `amd-dev` tip `b5c0275f82689e38f0c37e121ef37407e4cbb3e2`. `for_each_bitset_run` limits iteration to the available words but closed a trailing set-bit run at the requested `n`. With two all-set words and `n=130`, it emitted `(0,130)` although the slice ends at bit 128. [This one-commit patch](https://github.com/luckyteagirl/xcl/commit/9625d52e8557ab076b73265ca9766f9747e03dff) closes at `min(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:** - Exact `amd-dev` base, `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)`. - Exact patch head, same command: **1 passed, 0 failed, 0 ignored** (1,570 filtered out). - `cargo build --locked --workspace -j 1`: passed. - Patch head, `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 one `d3d12_mesh_stream` test already listed in this issue. Many GPU fixtures printed `SKIPPED` under 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`, while `CONTRIBUTING.md` asks that PRs target `main`, so I am sharing the isolated commit here for review or cherry-pick rather than opening a PR with the unrelated `amd-dev` changes. 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.