runtime: allocate command-list upload memory on the recording allocator #2216

Manually merged
github merged 1 commit from gh-pr/2216/head into gh-pr/2216/base 2026-11-27 00:06:31 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-25 05:34 UTC · original
R0Y00:codex/slot148-recording-upload → main · +74 −0 · 2 files · 1 commits · merged 2026-11-25 05:37 UTC

Refs #1758, #874, #2210. Publishes the recording-scoped upload allocation previously used in the local startup comparison. Render-mode command-list slot 148 returns a CPU-writable address with a desktop GPU address at the same offset. Root SRV slots 43 and 44 use that mapping only for a valid SRV parameter and an aligned address in the open recording. A closed list and invalid allocation requests return null. The desktop allocator holds the pages across list and allocator resets until all recorded references and queue submissions have retired.

Verified at 1239c983 on Windows 11 26200, RTX 4060 Laptop 32.0.16.1656 and WARP. Existing upload/command list tests: 12/12 passed, no skips. MasterDomino's unmodified independent acceptance client from #2210 at 342554da: 4/4 passed, debug layer enabled and disabled on each backend. Distinct 640-byte A/B GPU readbacks survived a blocked queue and reset, 16- and 256-byte alignment held, invalid ranges and post-Close requests were refused, zero debug-layer errors or device removal. The acceptance client is separate from this production patch.

cmake --build --preset release --target d3d12_xs_shim startup_upload_arena startup_upload_lifetime startup_list_resubmit
ctest --preset release --no-tests=error --output-on-failure -R '^startup_(upload_arena|upload_lifetime|list_resubmit)'

For the independent acceptance, build startup_slot148_acceptance from #2210, put the candidate d3d12_xs.dll beside that executable, set X2W_D3D12_RENDER=1, X2W_D3D12_PERMISSIVE=1 and X2W_D3D12_LIST_NOOP=1, then run startup_slot148_acceptance.exe warp and startup_slot148_acceptance.exe hardware with X2W_D3D12_DEBUG=1 and =0.

**@⁠R0Y00** on GitHub · 2026-11-25 05:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2216) `R0Y00:codex/slot148-recording-upload` → `main` · +74 −0 · 2 files · 1 commits · merged 2026-11-25 05:37 UTC Refs #1758, #874, #2210. Publishes the recording-scoped upload allocation previously used in the local startup comparison. Render-mode command-list slot 148 returns a CPU-writable address with a desktop GPU address at the same offset. Root SRV slots 43 and 44 use that mapping only for a valid SRV parameter and an aligned address in the open recording. A closed list and invalid allocation requests return null. The desktop allocator holds the pages across list and allocator resets until all recorded references and queue submissions have retired. Verified at 1239c983 on Windows 11 26200, RTX 4060 Laptop 32.0.16.1656 and WARP. Existing upload/command list tests: 12/12 passed, no skips. MasterDomino's unmodified independent acceptance client from #2210 at 342554da: 4/4 passed, debug layer enabled and disabled on each backend. Distinct 640-byte A/B GPU readbacks survived a blocked queue and reset, 16- and 256-byte alignment held, invalid ranges and post-Close requests were refused, zero debug-layer errors or device removal. The acceptance client is separate from this production patch. ```powershell cmake --build --preset release --target d3d12_xs_shim startup_upload_arena startup_upload_lifetime startup_list_resubmit ctest --preset release --no-tests=error --output-on-failure -R '^startup_(upload_arena|upload_lifetime|list_resubmit)' ``` For the independent acceptance, build `startup_slot148_acceptance` from #2210, put the candidate `d3d12_xs.dll` beside that executable, set `X2W_D3D12_RENDER=1`, `X2W_D3D12_PERMISSIVE=1` and `X2W_D3D12_LIST_NOOP=1`, then run `startup_slot148_acceptance.exe warp` and `startup_slot148_acceptance.exe hardware` with `X2W_D3D12_DEBUG=1` and `=0`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:06:30 +00:00
github manually merged commit 1239c983cd into gh-pr/2216/base 2026-11-27 00:06:31 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.