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

Open
opened 2026-11-26 03:29:24 +00:00 by AC-Storm-YT · 6 comments
AC-Storm-YT commented 2026-11-26 03:29:24 +00:00 (Migrated from github.com)
Contributor

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 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.
<!-- greyfinch-sync:ivall/xcl:issue:6618871104 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632). Originally posted by [AC-Storm-YT](https://github.com/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 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.
Kalmarv commented 2026-11-26 04:07:41 +00:00 (Migrated from github.com)
Author
Contributor

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'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.

<!-- greyfinch-sync:ivall/xcl:comment:7181847509 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7181847509). Originally posted by [Kalmarv](https://github.com/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`'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.
DarkPanda69 commented 2026-11-26 04:07:45 +00:00 (Migrated from github.com)
Author
Contributor

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-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.

<!-- greyfinch-sync:ivall/xcl:comment:7182141142 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7182141142). Originally posted by [DarkPanda69](https://github.com/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-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.
luckyteagirl commented 2026-11-26 05:05:35 +00:00 (Migrated from github.com)
Author
Contributor

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_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.

<!-- greyfinch-sync:ivall/xcl:comment:7182714861 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7182714861). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T04:34:35Z. --- 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.
thehollowedone commented 2026-11-26 13:05:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T12:10:54Z.


I checked the amd-dev head b5c0275 on Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35). The first list_x failure is a stale test expectation: defer permits 16 deferred dispatch segments per frame, but the test expects 210. Dispatch 17 falls through to resolve_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
-            const DISPATCHES: usize = 210;
+            const DISPATCHES: usize = MAX_DEFERRED_PER_FRAME as usize;

With that one local test change, cargo test --offline --locked -p xcl --lib -- --test-threads=4 completed: 1,534 passed, 10 failed, 27 ignored, with 20 SKIPPED diagnostic 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.

<!-- greyfinch-sync:ivall/xcl:comment:7191670563 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7191670563). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T12:10:54Z. --- I checked the `amd-dev` [head `b5c0275`](https://github.com/xcl-dev/xcl/commit/b5c0275f82689e38f0c37e121ef37407e4cbb3e2) on Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35). The first `list_x` failure is a stale test expectation: [`defer`](https://github.com/xcl-dev/xcl/blob/b5c0275f82689e38f0c37e121ef37407e4cbb3e2/crates/xcl/src/hle/d3d12x/list_x.rs#L3145-L3159) permits 16 deferred dispatch segments per frame, but [the test](https://github.com/xcl-dev/xcl/blob/b5c0275f82689e38f0c37e121ef37407e4cbb3e2/crates/xcl/src/hle/d3d12x/list_x.rs#L8248-L8258) expects 210. Dispatch 17 falls through to `resolve_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). <details><summary>One-line test adjustment</summary> ```diff - const DISPATCHES: usize = 210; + const DISPATCHES: usize = MAX_DEFERRED_PER_FRAME as usize; ``` </details> With that one local test change, `cargo test --offline --locked -p xcl --lib -- --test-threads=4` completed: **1,534 passed, 10 failed, 27 ignored**, with 20 `SKIPPED` diagnostic 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 commented 2026-11-26 13:05:36 +00:00 (Migrated from github.com)
Author
Contributor

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-dev b5c0275.

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 drop made; pso_release then 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 usize

The two-line change compiled with cargo test --offline --locked -p xcl --lib --no-run on 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.

<!-- greyfinch-sync:ivall/xcl:comment:7191804688 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7191804688). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T12:17:06Z. --- Follow-up to [my dispatch-test report](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7191670563): I traced a separate COM lifetime gap on current `amd-dev` [`b5c0275`](https://github.com/xcl-dev/xcl/commit/b5c0275f82689e38f0c37e121ef37407e4cbb3e2). The [adjacent GPU test](https://github.com/xcl-dev/xcl/blob/b5c0275f82689e38f0c37e121ef37407e4cbb3e2/crates/xcl/src/hle/d3d12x/list_x.rs#L8344-L8364) captures only the integer address of a real PSO in a delayed worker. Its [assertion](https://github.com/xcl-dev/xcl/blob/b5c0275f82689e38f0c37e121ef37407e4cbb3e2/crates/xcl/src/hle/d3d12x/list_x.rs#L8382-L8392) currently fails before releasing `BUILD`. Unwinding can drop `made`; [`pso_release`](https://github.com/xcl-dev/xcl/blob/b5c0275f82689e38f0c37e121ef37407e4cbb3e2/crates/xcl/src/hle/d3d12x/real.rs#L2115-L2132) then 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. <details><summary>Candidate ownership change (test only)</summary> ```diff 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 usize ``` </details> The two-line change compiled with `cargo test --offline --locked -p xcl --lib --no-run` on 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.
AC-Storm-YT commented 2026-12-02 06:36:05 +00:00 (Migrated from github.com)
Author
Contributor

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_pixels on amd-dev: the test predated vram_small (aeefef10) and expected tile mappings for a 16 KiB texture that now sits in a small-pool block. Its panic poisoned TEST_LOCK, which is what failed remapped_pages_are_compared_with_what_they_held and the three stream_recheck_* tests after it. Test-only change.

On amd-dev 41aa60ce (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), and two_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.

<!-- greyfinch-sync:ivall/xcl:comment:7337196125 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2632#issuecomment-7337196125). Originally posted by [AC-Storm-YT](https://github.com/AC-Storm-YT) on 2026-12-02T06:36:05Z. --- #3661 fixes `placed_title_textures_share_vram_and_preserve_pixels` on `amd-dev`: the test predated `vram_small` (aeefef10) and expected tile mappings for a 16 KiB texture that now sits in a small-pool block. Its panic poisoned `TEST_LOCK`, which is what failed `remapped_pages_are_compared_with_what_they_held` and the three `stream_recheck_*` tests after it. Test-only change. On `amd-dev` 41aa60ce (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), and `two_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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#2622
No description provided.