Skip to content

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

Closed
KOLESNiii wants to merge 3 commits into
xcl-dev:mainfrom
KOLESNiii:d3d12x-submission-snapshot
Closed

KOLESNiii wants to merge 3 commits into
xcl-dev:mainfrom
KOLESNiii:d3d12x-submission-snapshot

Conversation

@KOLESNiii

Copy link
Copy Markdown
Contributor

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

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

bmjask added 3 commits November 26, 2026 19:54
Replace capped approximate write ranges with canonical tree-backed intervals. This preserves unwritten gaps without the quadratic insertion cost of an unbounded sorted vector.

Assisted-by: Codex (GPT-5.6-sol)
(cherry picked from commit 62de4d5)
Capture waits, signals, sparse writes and deferred CPU writes once before submission. Split execution and post-submit consumers use the immutable snapshot instead of repeatedly reading mutable list state.

Assisted-by: Codex (GPT-5.6-sol)
(cherry picked from commit 1b0b589)
Name split reasons and collect continuation state in one carry object while preserving existing wait and deferred-dispatch behavior. This creates a tested seam for later CPU-mediated ordering without changing when lists split.

Assisted-by: Codex (GPT-5.6-sol)
(cherry picked from commit 4d17a73)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant