Skip to content

D3D12.X: deferred-release batches can miss unfinished title queues #3469

Backlog

Description

@andrewDoing

Two release-batch cases on main can miss an unfinished title queue. I found both with Everystate 0.4.2 and checked the fence behavior on an RTX 5070.

  1. Queue snapshot before batch cut. drain_known snapshots the active queues and then takes HELD to seal all items currently in open. A second queue can register and receive work before another item enters open in that interval. In the test, that item became eligible while the second queue's completion fence was still 0. A batch using a fresh snapshot stayed held until the gate opened. Release path
  2. Retiring queue omitted. The queue's Release hook installed a retirement mark while the queue was gated. The active-only snapshot omitted it, and the batch became eligible while the queue's work was still pending. Carrying the existing retirement mark kept the batch held until completion. Active and completion snapshots · Queue Release hook

The bounded model checks two queues, two deferred items and one batch. It found both counterexamples independently. The control that cuts the batch before sampling and includes retiring queues checked all 1,306 reachable states without a violation. A follow-up should preserve #3356's lock boundary around queue signals. #1314 tracks coverage for a different queue source, and #3125 tracks how existing fence marks handle device removal.

Native check at b94adbe4817fa8ca4035e10d7bc7f6d37365f610, RTX 5070 driver 616.92, Ryzen 7 5700X3D, Windows 11 build 26300, Rust 1.100.0, release build. Four runs of one focused test each passed with no skips. The test uses real DIRECT queues, queue retirement and fences, with synthetic deferred-item identities kept inside a private Held. It measures release eligibility. Actual resource corruption, device loss and retail gameplay remain unmeasured.

AI use: Codex (GPT-6) wrote the model and test fixture, ran the checks and drafted this report.

Activity

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