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

Merged
CallMeBrado merged 1 commit from upstream-pr/1330 into main 2026-11-24 15:56:16 +00:00
CallMeBrado commented 2026-11-24 14:50:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CallMeBrado on 2026-11-24T14:50:15Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:6584520425 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1330). Originally posted by [CallMeBrado](https://github.com/CallMeBrado) on 2026-11-24T14:50:15Z. --- 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.
futurepro62 commented 2026-11-24 15:06:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:55:34Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7135173000 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1330#issuecomment-7135173000). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:55:34Z. --- 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.
upstream-sync closed this pull request 2026-11-24 16:06:20 +00:00
DavidM1911 commented 2026-11-24 16:06:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T15:14:31Z.


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

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

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7135691376 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1330#issuecomment-7135691376). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T15:14:31Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 708 passed, 0 failed, 21 ignored. Thanks!
Sign in to join this conversation.
No reviewers
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!1320
No description provided.