D3D12.X: snapshot command-list effects and generalize segmentation #3034

Closed
KOLESNiii wants to merge 3 commits from upstream-pr/3034 into main
KOLESNiii commented 2026-11-27 15:14:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T15:14:35Z.


Stacked on #3033; only the top two commits belong here.

Second of three stacked PRs for item 3 of #2787. This part changes no behaviour either:

  • A list's waits, Write64 signals, sparse writes and deferred CPU writes are captured once, into an
    immutable plan, before submission. Split execution and post-submit consumers read the plan instead
    of mutable list state.
  • Split reasons are named, and the continuation state moves in one carry object, without changing
    when lists split.

PR 3 builds the wait ordering on both.

What is in it

  • d04eb507 D3D12.X: snapshot command-list effects before submit (list_x.rs, real.rs). A clean
    cherry-pick -x of 1b0b589c, authored by bmjask.
  • dab77c91 D3D12.X: generalize command-list segmentation (list_x.rs, title_list.rs). A clean
    cherry-pick -x of 4d17a73b, authored by bmjask.

Tested

  • Same machine as #3033: RTX 2070 SUPER (32.0.16.2140), Ryzen 5 3600XT, Windows 11 26300.9974, Rust 1.100.0.
  • cargo test --workspace -- --test-threads=4 on dab77c91: 1459 passed, 0 failed, 47 ignored,
    15 SKIPPED (the same no-wave64 list as #3033).
  • The first full run failed one test,
    list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit. That failure stopped
    the lib binary, so the other test binaries did not run. This test is the address-reuse flake in
    #2690, which fails 13 of 200 runs on main. Run alone it passed 3 of 3 times on this head and on
    #3033's head. The counts above are from a second full run.

Regression run
Same warm-cache setup and A press as #3033.

xcl-smoke v1
commit: 8b957bec6f82495aec940944c6bf47faa02db590
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1438 (PresentX 1438)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16292 MB
xcl-smoke v1
commit: dab77c91f3c3990449ca11f19a111d871d44cb61
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1418 (PresentX 1418)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16342 MB

Not tested

  • AMD and Intel GPUs, and wave64 hardware.
  • The retail game's run logged no mid-list split, so the carry-object path ran only in unit tests.

AI use

  • The code and tests are bmjask's, written with Codex (GPT-5.6-sol). Claude Code (Claude Opus 5.5)
    did the cherry-picks, ran the tests and smoke runs, and drafted this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5528953626 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3034). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T15:14:35Z. --- Stacked on #3033; only the top two commits belong here. Second of three stacked PRs for item 3 of #2787. This part changes no behaviour either: - A list's waits, Write64 signals, sparse writes and deferred CPU writes are captured once, into an immutable plan, before submission. Split execution and post-submit consumers read the plan instead of mutable list state. - Split reasons are named, and the continuation state moves in one carry object, without changing when lists split. PR 3 builds the wait ordering on both. **What is in it** - `d04eb507` D3D12.X: snapshot command-list effects before submit (`list_x.rs`, `real.rs`). A clean `cherry-pick -x` of `1b0b589c`, authored by bmjask. - `dab77c91` D3D12.X: generalize command-list segmentation (`list_x.rs`, `title_list.rs`). A clean `cherry-pick -x` of `4d17a73b`, authored by bmjask. **Tested** - Same machine as #3033: RTX 2070 SUPER (32.0.16.2140), Ryzen 5 3600XT, Windows 11 26300.9974, Rust 1.100.0. - `cargo test --workspace -- --test-threads=4` on `dab77c91`: 1459 passed, 0 failed, 47 ignored, 15 SKIPPED (the same no-wave64 list as #3033). - The first full run failed one test, `list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit`. That failure stopped the lib binary, so the other test binaries did not run. This test is the address-reuse flake in #2690, which fails 13 of 200 runs on `main`. Run alone it passed 3 of 3 times on this head and on #3033's head. The counts above are from a second full run. **Regression run** Same warm-cache setup and A press as #3033. ``` xcl-smoke v1 commit: 8b957bec6f82495aec940944c6bf47faa02db590 gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1438 (PresentX 1438) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16292 MB ``` ``` xcl-smoke v1 commit: dab77c91f3c3990449ca11f19a111d871d44cb61 gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1418 (PresentX 1418) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16342 MB ``` **Not tested** - AMD and Intel GPUs, and wave64 hardware. - The retail game's run logged no mid-list split, so the carry-object path ran only in unit tests. **AI use** - The code and tests are bmjask's, written with Codex (GPT-5.6-sol). Claude Code (Claude Opus 5.5) did the cherry-picks, ran the tests and smoke runs, and drafted this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

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!3034
No description provided.