Tests: on an AMD RDNA2 iGPU the xcl lib test binary stops itself partway ("sparse upload preparation still failed after bounded retries") since #2959 #3488

Open
opened 2026-11-30 01:23:42 +00:00 by futurepro62 · 1 comment
futurepro62 commented 2026-11-30 01:23:42 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-30T01:23:42Z.


On main 53e85fb1, XCL_ADAPTER=radeon cargo test -p xcl --lib doesn't finish on the Radeon iGPU of a Ryzen 7 9800X3D. Partway through, the binary logs

xcl: sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission

and exits with 0x80004005, with no test marked FAILED. The tests after that point never run. So a full-suite run on this GPU looks clean if you only count failures (I made that mistake in #3441, corrected there).

Where it stops

  • With --test-threads=1 on 53e85fb1, 1,009 tests pass, then the stop comes during hle::d3d12x::bind::tests::gpu_two_pass_indirect_commands_keep_their_own_records. The log just before it shows the test's root signature and compute shader being loaded, then the line above.
  • That test passes on its own: --exact, 2 of 2 on the Radeon, and 1 of 1 on an RTX 5070 Ti. All 115 tests in hle::d3d12x::bind::tests also pass when run as a group (--test-threads=1). So the stop depends on something earlier in the full run. I haven't found what.
  • With the default 4 threads the stop comes at about the same place (the last finished test is gpu_two_pass_argument_scratch_is_shared_and_capped).

When it started

  • #2959's merge b0b041fd: XCL_ADAPTER=radeon cargo test -p xcl --lib -- --test-threads=4 stops the same way (977 tests passed first).
  • Its first parent 4577f09c: the same command runs to the end, 1,382 passed and 1 failed (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, which also fails on our earlier baselines).
  • The log line comes from cfeb2817 ("D3D12.X: fail title submits closed on sparse upload loss"), inside #2959's stack. I couldn't test that commit or its parent on their own: both fail to build (error[E0428]: the name 'Claim' is defined multiple times).
  • It also stops on bc2cbb72 (the start of this morning's batch) and on 53e85fb1, and in five PR heads merged into 53e85fb1.

Something else I saw once, not looked into: running only hle::d3d12x (--test-threads=1) gets past the bind tests, then stops during hle::d3d12x::pso_async::used_tests::graphics_first_use_carries_the_exact_serialized_recipe_identity with 0xc0000409 (STATUS_STACK_BUFFER_OVERRUN). One run only. I don't know whether it's related.

Reproduce

XCL_ADAPTER=radeon cargo test -p xcl --lib -- --test-threads=1

Look for still failed after bounded retries and the exit code at the end. A clean run ends with test result: ok. ... passed.

Not tested / limits

  • No discrete AMD GPU or other iGPU, so I can't say whether it's this iGPU's small dedicated memory (485 MiB reported), RDNA2, or the AMD driver.
  • I didn't find which earlier test sets it up, or why the sparse upload preparation keeps failing.
  • NVIDIA: the full lib suite runs to the end on the RTX 5070 Ti at 53e85fb1, without this stop.

Tested on

  • AMD Radeon(TM) Graphics (RDNA2 iGPU of the Ryzen 7 9800X3D, XCL_ADAPTER=radeon), driver 32.0.21036.18.
  • NVIDIA GeForce RTX 5070 Ti 16 GB, driver 621.40.
  • Windows 11 Home 26300, Rust 1.100.0 MSVC; debug builds, clean detached checkouts.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this issue. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:issue:6686836275 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3488). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-30T01:23:42Z. --- On `main` `53e85fb1`, `XCL_ADAPTER=radeon cargo test -p xcl --lib` doesn't finish on the Radeon iGPU of a Ryzen 7 9800X3D. Partway through, the binary logs ``` xcl: sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission ``` and exits with `0x80004005`, with no test marked `FAILED`. The tests after that point never run. So a full-suite run on this GPU looks clean if you only count failures (I made that mistake in #3441, corrected there). **Where it stops** - With `--test-threads=1` on `53e85fb1`, 1,009 tests pass, then the stop comes during `hle::d3d12x::bind::tests::gpu_two_pass_indirect_commands_keep_their_own_records`. The log just before it shows the test's root signature and compute shader being loaded, then the line above. - That test passes on its own: `--exact`, 2 of 2 on the Radeon, and 1 of 1 on an RTX 5070 Ti. All 115 tests in `hle::d3d12x::bind::tests` also pass when run as a group (`--test-threads=1`). So the stop depends on something earlier in the full run. I haven't found what. - With the default 4 threads the stop comes at about the same place (the last finished test is `gpu_two_pass_argument_scratch_is_shared_and_capped`). **When it started** - `#2959`'s merge `b0b041fd`: `XCL_ADAPTER=radeon cargo test -p xcl --lib -- --test-threads=4` stops the same way (977 tests passed first). - Its first parent `4577f09c`: the same command runs to the end, 1,382 passed and 1 failed (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, which also fails on our earlier baselines). - The log line comes from `cfeb2817` ("D3D12.X: fail title submits closed on sparse upload loss"), inside #2959's stack. I couldn't test that commit or its parent on their own: both fail to build (`error[E0428]: the name 'Claim' is defined multiple times`). - It also stops on `bc2cbb72` (the start of this morning's batch) and on `53e85fb1`, and in five PR heads merged into `53e85fb1`. **Something else I saw once, not looked into:** running only `hle::d3d12x` (`--test-threads=1`) gets past the bind tests, then stops during `hle::d3d12x::pso_async::used_tests::graphics_first_use_carries_the_exact_serialized_recipe_identity` with `0xc0000409` (`STATUS_STACK_BUFFER_OVERRUN`). One run only. I don't know whether it's related. **Reproduce** ``` XCL_ADAPTER=radeon cargo test -p xcl --lib -- --test-threads=1 ``` Look for `still failed after bounded retries` and the exit code at the end. A clean run ends with `test result: ok. ... passed`. **Not tested / limits** - No discrete AMD GPU or other iGPU, so I can't say whether it's this iGPU's small dedicated memory (485 MiB reported), RDNA2, or the AMD driver. - I didn't find which earlier test sets it up, or why the sparse upload preparation keeps failing. - NVIDIA: the full lib suite runs to the end on the RTX 5070 Ti at `53e85fb1`, without this stop. **Tested on** - AMD Radeon(TM) Graphics (RDNA2 iGPU of the Ryzen 7 9800X3D, `XCL_ADAPTER=radeon`), driver 32.0.21036.18. - NVIDIA GeForce RTX 5070 Ti 16 GB, driver 621.40. - Windows 11 Home 26300, Rust 1.100.0 MSVC; debug builds, clean detached checkouts. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this issue. I checked it before posting.
afpruivo commented 2026-12-02 23:41:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by afpruivo on 2026-12-02T23:41:50Z.


Data point from an NVIDIA card: here the stop depends on the Agility SDK.

Setup: main c53e9696, RTX 3090 24 GB, driver 621.40, i5-13600K, Windows 11 Pro 26300, Rust 1.100.1, debug. Agility SDK 1.620 (D3D12Core.dll, d3d12SDKLayers.dll) in %LOCALAPPDATA%\XCL\D3D12, which XCL loads by default.

cargo test -p xcl --lib -- --test-threads=4, three runs each:

D3D12 runtime result
Agility 1.620 (default) 3 of 3 stop with sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission, exit 0x80004005, after about 1,436 tests
Windows' own (XCL_D3D12_DIR set to an empty folder) 3 of 3 ok. 2852 passed; 0 failed; 32 ignored
  • With Agility the stop comes at the same place in all three runs. hle::d3d12x::list_x::tests::a_reset_while_the_last_submit_runs_records_on_another_pc_list is reported FAILED, the next line is split command list (type 0) around mid-list Wait after Write64 (#1), and then the stop message comes.
  • With Agility, that test passes on its own (--exact, 2 of 2), and so does all of hle::d3d12x::list_x with --test-threads=1 (116 passed). So, as on the Radeon, the stop depends on what ran earlier in the full binary.

For anyone running the suite on NVIDIA with Agility installed: XCL_D3D12_DIR pointing to an empty folder gets a full lib run, until this is fixed.

AI use: Claude Code (Claude Opus 5.5) ran these and wrote this report while I was away; posted with my standing approval for this session.

<!-- greyfinch-sync:ivall/xcl:comment:7362315825 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3488#issuecomment-7362315825). Originally posted by [afpruivo](https://github.com/afpruivo) on 2026-12-02T23:41:50Z. --- Data point from an NVIDIA card: here the stop depends on the Agility SDK. **Setup:** `main` `c53e9696`, RTX 3090 24 GB, driver 621.40, i5-13600K, Windows 11 Pro 26300, Rust 1.100.1, debug. Agility SDK 1.620 (`D3D12Core.dll`, `d3d12SDKLayers.dll`) in `%LOCALAPPDATA%\XCL\D3D12`, which XCL loads by default. **`cargo test -p xcl --lib -- --test-threads=4`, three runs each:** | D3D12 runtime | result | |---|---| | Agility 1.620 (default) | 3 of 3 stop with `sparse upload preparation still failed after bounded retries – the title is stopped before its GPU submission`, exit `0x80004005`, after about 1,436 tests | | Windows' own (`XCL_D3D12_DIR` set to an empty folder) | 3 of 3 `ok. 2852 passed; 0 failed; 32 ignored` | - With Agility the stop comes at the same place in all three runs. `hle::d3d12x::list_x::tests::a_reset_while_the_last_submit_runs_records_on_another_pc_list` is reported `FAILED`, the next line is `split command list (type 0) around mid-list Wait after Write64 (#1)`, and then the stop message comes. - With Agility, that test passes on its own (`--exact`, 2 of 2), and so does all of `hle::d3d12x::list_x` with `--test-threads=1` (116 passed). So, as on the Radeon, the stop depends on what ran earlier in the full binary. For anyone running the suite on NVIDIA with Agility installed: `XCL_D3D12_DIR` pointing to an empty folder gets a full lib run, until this is fixed. AI use: Claude Code (Claude Opus 5.5) ran these and wrote this report while I was away; posted with my standing approval for this session.
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#3488
No description provided.