startup-runtime: closed lists are submitted once and allocator Reset discards recordings still in use #1345

Closed
opened 2026-11-24 08:58:56 +00:00 by Jess-Doit · 0 comments
Jess-Doit commented 2026-11-24 08:58:56 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-24T08:58:56Z.


Problem

In X2W_D3D12_RENDER=1 mode the D3D12 stand-in (src/startup_stubs/d3d12_xs_device.cpp) handles closed command lists and allocator resets in two ways that differ from what console titles can do.

  1. A closed list is submitted at most once. queue_execute clears list_ready on the first submit and silently drops later submits of the same recording. Desktop D3D12 allows a closed list to be executed again until it is reset. A title that submits a recording twice, for example once on each of two queues, loses the second submit.
  2. Allocator Reset (slot 8) is forwarded unchanged. If a list recorded on that allocator is still executing on the GPU, the desktop Reset is invalid; the debug layer reports it and it can remove the device. On the console a recording survives its allocator's reset, and the same recording may be submitted again afterwards. On the desktop that recording is gone.

Proposal

  1. Keep a closed list submittable until its own Reset, as on the desktop.
  2. Let the title's allocator stand for a desktop allocator that can be swapped. At the title's Reset, if a list still holds a recording on the current desktop allocator, or the GPU has not passed its last submit, keep that allocator as it is and continue on a spare one (one that is idle and no longer referenced) or a new one. A list Reset records on the allocator now in use.
  3. Add a source-built fixture through the stand-in: record a clear, submit it twice, reset the allocator, submit it again, and read back after each step on WARP and hardware with the debug layer on. A negative control shows the second submit dropped on main.

Out of scope: holding resources whose last Release happens while work is in flight. That is a separate follow-up.

Claim

I am taking this, AI-assisted (Claude Code), with Windows 10 22H2, a GTX 1060 and WARP for the GPU runs.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6578198830 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1352). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-24T08:58:56Z. --- ### Problem In `X2W_D3D12_RENDER=1` mode the D3D12 stand-in (`src/startup_stubs/d3d12_xs_device.cpp`) handles closed command lists and allocator resets in two ways that differ from what console titles can do. 1. **A closed list is submitted at most once.** `queue_execute` clears `list_ready` on the first submit and silently drops later submits of the same recording. Desktop D3D12 allows a closed list to be executed again until it is reset. A title that submits a recording twice, for example once on each of two queues, loses the second submit. 2. **Allocator Reset (slot 8) is forwarded unchanged.** If a list recorded on that allocator is still executing on the GPU, the desktop Reset is invalid; the debug layer reports it and it can remove the device. On the console a recording survives its allocator's reset, and the same recording may be submitted again afterwards. On the desktop that recording is gone. ### Proposal 1. Keep a closed list submittable until its own Reset, as on the desktop. 2. Let the title's allocator stand for a desktop allocator that can be swapped. At the title's Reset, if a list still holds a recording on the current desktop allocator, or the GPU has not passed its last submit, keep that allocator as it is and continue on a spare one (one that is idle and no longer referenced) or a new one. A list Reset records on the allocator now in use. 3. Add a source-built fixture through the stand-in: record a clear, submit it twice, reset the allocator, submit it again, and read back after each step on WARP and hardware with the debug layer on. A negative control shows the second submit dropped on `main`. Out of scope: holding resources whose last Release happens while work is in flight. That is a separate follow-up. ### Claim I am taking this, AI-assisted (Claude Code), with Windows 10 22H2, a GTX 1060 and WARP for the GPU runs.
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
R0Y00/Xbox2Windows#1345
No description provided.