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

Closed
opened 2026-11-26 23:00:26 +00:00 by github-bot · 0 comments
Owner

@⁠Jess-Doit on GitHub · 2026-11-24 08:58 UTC · original

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.

**@⁠Jess-Doit** on GitHub · 2026-11-24 08:58 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/1352) ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:00:26 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#1352
No description provided.