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

Open
opened 2026-11-26 05:34:41 +00:00 by github-bot · 1 comment
Owner

@⁠KOLESNiii on GitHub · 2026-11-26 01:18 UTC · original

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.

**@⁠KOLESNiii** on GitHub · 2026-11-26 01:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/2602) 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://git.gtahub.st/github/xcl-dev--xcl/issues/2088) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:34:41 +00:00
Author
Owner

@⁠oni-swr on GitHub · 2026-11-26 01:37 UTC · original

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).

**@⁠oni-swr** on GitHub · 2026-11-26 01:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/2602#issuecomment-7179964470) 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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.