Skip to content

D3D12.X: a failed mid-list split submits a never-recorded standby list and removes the device #3166

Backlog

Description

@KOLESNiii

When a mid-list split's Close fails, XCL submits a command list that was never recorded, and the device is removed (0x887a0001 DXGI_ERROR_INVALID_CALL).

Where: list_x.rs mid-list split, on main (seen on e429936 and e13d625). When the producer's Close fails, title_list::fail_closed routes the wrapper to a closed standby from reserve_closed_segment, and push_segments submits that standby at the next ExecuteCommandLists. The standby comes straight from real::create_closed_pc_command_list (CreateCommandList1: closed, never Reset, nothing recorded).

What was seen (RTX 2070 SUPER, driver 32.0.16.2140, Windows 11 build 26300):

  • A test of D3D12.X: a split whose Close fails leaves that list out and goes on #2925 that takes main's fallback submitted the segments, and the whole lib test binary exited with 0x887a0001.
  • A plain D3D12 repro with no XCL code: a list from ID3D12Device4::CreateCommandList1(DIRECT, NONE) submitted alone to a direct queue. GetDeviceRemovedReason then returns 0x887A0001.
  • The same list after Reset on an allocator and an empty Close runs, and the device stays.

Fix: a draft PR follows. It records the standby empty, on a private allocator, before handing it out.

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