D3D12.X: handle Close failures in deferred dispatch command lists #2592

Open
opened 2026-11-26 01:18:37 +00:00 by KOLESNiii · 1 comment
KOLESNiii commented 2026-11-26 01:18:37 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T01:18:37Z.


Part of #2508 (Pipeline Rebuild). Reviewed on main at b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.

deferred_segment appends the placeholder after calling native Close without checking its HRESULT. At submission, record_deferred takes the saved operation, records it and discards another Close result. It then uses the segment as the predecessor of the next one. The queue wrapper expands all segments afterwards, and KickoffX uses the same deferred helper for its prior segments. D3D12 surfaces recording errors through Close. Placeholder · Replay · Queue · KickoffX · D3D12 Close

Inject a failed Close at each point. Verify that the failed segment stays out of native execution, and that dependent completion bookkeeping reflects what was actually submitted. The existing deferred test injects a failed PSO build and verifies a successful queue signal. #2547 covers the bounded PSO wait. Existing test · Original trace discussion

A resulting stall or device failure in a title is a hypothesis. The discarded HRESULTs and submission control flow are verified from source. Windows behavior and title impact remain unmeasured.

AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.

<!-- greyfinch-sync:ivall/xcl:issue:6617296291 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2602). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-26T01:18:37Z. --- Part of #2508 (Pipeline Rebuild). Reviewed on `main` at `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. `deferred_segment` appends the placeholder after calling native `Close` without checking its HRESULT. At submission, `record_deferred` takes the saved operation, records it and discards another `Close` result. It then uses the segment as the predecessor of the next one. The queue wrapper expands all segments afterwards, and `KickoffX` uses the same deferred helper for its prior segments. D3D12 surfaces recording errors through `Close`. [Placeholder](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/list_x.rs#L2941-L2975) · [Replay](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/list_x.rs#L2675-L2717) · [Queue](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/real.rs#L7268-L7288) · [KickoffX](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/list_x.rs#L3313-L3339) · [D3D12 Close](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-close) Inject a failed `Close` at each point. Verify that the failed segment stays out of native execution, and that dependent completion bookkeeping reflects what was actually submitted. The existing deferred test injects a failed PSO build and verifies a successful queue signal. #2547 covers the bounded PSO wait. [Existing test](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/hle/d3d12x/list_x.rs#L7060-L7074) · [Original trace discussion](https://github.com/xcl-dev/xcl/issues/2088#issuecomment-7179478338) A resulting stall or device failure in a title is a hypothesis. The discarded HRESULTs and submission control flow are verified from source. Windows behavior and title impact remain unmeasured. AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.
oni-swr commented 2026-11-26 02:08:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T01:37:45Z.


Claiming #2602 for a focused fix and synthetic Windows regression tests for deferred command-list Close failures and submission bookkeeping.
AI use: Claude Code (Claude Opus 5.5), coordinated by Codex (gpt-6.2-sol).

<!-- greyfinch-sync:ivall/xcl:comment:7179964470 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2602#issuecomment-7179964470). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T01:37:45Z. --- Claiming #2602 for a focused fix and synthetic Windows regression tests for deferred command-list Close failures and submission bookkeeping. AI use: Claude Code (Claude Opus 5.5), coordinated by Codex (gpt-6.2-sol).
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#2592
No description provided.