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

Merged
R0Y00 merged 1 commit from upstream-pr/2216 into main 2026-11-25 05:37:20 +00:00
R0Y00 commented 2026-11-25 05:34:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:34:48Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6597963987 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2216). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T05:34:48Z. --- 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`.
upstream-sync closed this pull request 2026-11-25 06:01:31 +00:00
Sign in to join this conversation.
No reviewers
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!2208
No description provided.