D3D12.X: report partially executed command lists first on device removal #1330

Manually merged
github merged 1 commit from gh-pr/1330/head into gh-pr/1330/base 2026-11-26 04:50:59 +00:00
Owner

@⁠CallMeBrado on GitHub · 2026-11-24 14:50 UTC · original
CallMeBrado:pr/dred-active-lists → main · +52 −12 · 2 files · 1 commits · merged 2026-11-24 15:56 UTC

XCL stops walking the DRED breadcrumb chain after 64 command lists. Completed lists and lists that never started both consume that limit. While investigating #675 on an RTX 5090, I saw a report with 606 lists. Only one had made partial progress, and 193 had no completed operation. Its position in the original driver chain was not recorded.

What is in it

The crash reporter scans up to 4,096 lists and prints up to 64. It reports partially executed lists first, then fills any remaining lines with lists showing zero completed operations. Driver order is preserved within each group. Part of #675.

Tested

  • Windows 11 build 26200.9711, Ryzen 9 9950X3D, RTX 5090, NVIDIA 621.24, Rust 1.96.0 MSVC. Debug workspace build and tests, release binaries for the smoke runs.
  • The regression test puts the partially executed list last in a synthetic 606-node chain. It failed with the original traversal extracted unchanged into the same helper. With this change the last node is reported first and the output stays at 64 entries.
  • cargo build --workspace --locked --jobs 4 and cargo test --workspace --locked --jobs 4 --no-fail-fast -- --test-threads=4 --show-output: 752 reported passed, 0 failed, 41 ignored. Three of the reported passes printed SKIPPED. Two require native wave64, and the debug-layer title test requires xgameruntime.dll.

Regression run

Both runs used the same saved Series X profile, separate initially empty shader caches, networking off and no controller input.

Main (60 seconds)

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1489 (PresentX 1489)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14573 MB

PR (60 seconds)

xcl-smoke v1
commit: 40c81c1e9e76776c6b23b7b48b7c947538fe0656
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1344 (PresentX 1344)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14583 MB

Not tested

The smoke runs ended normally. They cover startup and frame presentation. The synthetic regression exercises breadcrumb selection. The long retail crash trace came from a separate instrumented build. AMD, Intel and optional XCL_SAMPLE_* fixtures were not tested.

AI use

Codex (GPT-6) wrote the patch and regression test, ran the checks on this machine and drafted this description.

**@⁠CallMeBrado** on GitHub · 2026-11-24 14:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1330) `CallMeBrado:pr/dred-active-lists` → `main` · +52 −12 · 2 files · 1 commits · merged 2026-11-24 15:56 UTC XCL stops walking the DRED breadcrumb chain after 64 command lists. Completed lists and lists that never started both consume that limit. While investigating #675 on an RTX 5090, I saw a report with 606 lists. Only one had made partial progress, and 193 had no completed operation. Its position in the original driver chain was not recorded. **What is in it** The crash reporter scans up to 4,096 lists and prints up to 64. It reports partially executed lists first, then fills any remaining lines with lists showing zero completed operations. Driver order is preserved within each group. Part of #675. **Tested** - Windows 11 build 26200.9711, Ryzen 9 9950X3D, RTX 5090, NVIDIA 621.24, Rust 1.96.0 MSVC. Debug workspace build and tests, release binaries for the smoke runs. - The regression test puts the partially executed list last in a synthetic 606-node chain. It failed with the original traversal extracted unchanged into the same helper. With this change the last node is reported first and the output stays at 64 entries. - `cargo build --workspace --locked --jobs 4` and `cargo test --workspace --locked --jobs 4 --no-fail-fast -- --test-threads=4 --show-output`: 752 reported passed, 0 failed, 41 ignored. Three of the reported passes printed SKIPPED. Two require native wave64, and the debug-layer title test requires xgameruntime.dll. **Regression run** Both runs used the same saved Series X profile, separate initially empty shader caches, networking off and no controller input. Main (60 seconds) ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: NVIDIA GeForce RTX 5090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1489 (PresentX 1489) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14573 MB ``` PR (60 seconds) ``` xcl-smoke v1 commit: 40c81c1e9e76776c6b23b7b48b7c947538fe0656 gpu: NVIDIA GeForce RTX 5090 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1344 (PresentX 1344) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14583 MB ``` **Not tested** The smoke runs ended normally. They cover startup and frame presentation. The synthetic regression exercises breadcrumb selection. The long retail crash trace came from a separate instrumented build. AMD, Intel and optional XCL_SAMPLE_* fixtures were not tested. **AI use** Codex (GPT-6) wrote the patch and regression test, ran the checks on this machine and drafted this description.
The logger walked only the first 64 breadcrumb nodes. A long queue of unstarted or completed lists could hide the list that was making progress. Scan up to 4096 nodes and keep the existing 64-line detail budget.

Assisted-by: Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:50:56 +00:00
github manually merged commit 40c81c1e9e into gh-pr/1330/base 2026-11-26 04:50:59 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 14:55 UTC · original · edited 2026-11-24 14:58 UTC

Full-suite run, since this PR has no test report yet. Tested exact head 40c81c1 (on its base 930e8b4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: a_late_partially_executed_list_is_reported_before_unstarted_lists.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 14:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1330#issuecomment-7135173000) · edited 2026-11-24 14:58 UTC Full-suite run, since this PR has no test report yet. Tested exact head `40c81c1` (on its base `930e8b4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **752 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `a_late_partially_executed_list_is_reported_before_unstarted_lists`. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4`: **752 passed, 0 failed, 41 ignored**, no skips. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 15:14 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 708 passed, 0 failed, 21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 15:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1330#issuecomment-7135691376) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 708 passed, 0 failed, 21 ignored. Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.