Skip to content

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

Backlog

Description

@KOLESNiii

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.

Activity

  1. oni-swr commented on Nov 26, 2026

    @oni-swr
    Contributor

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions