runtime: retire translated sampler heaps with their allocator #3360

Manually merged
github merged 1 commit from gh-pr/3358/head into gh-pr/3358/base 2026-11-28 14:26:13 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-28 13:44 UTC · original
R0Y00:codex/translated-sampler-retirement → main · +121 −57 · 4 files · 1 commits · merged 2026-11-28 13:49 UTC

Change

Refs #870.

Retain immutable translated sampler heaps with the desktop allocator that recorded them. A closed list can be submitted on multiple queues. The heap remains retained until the list releases its recording and every tracked queue reaches its last submission fence. A missing or invalid completion point keeps the allocator and heap retained.

Extend the source-built list resubmission fixture to record a sampler heap, submit on two queues, and stall the second queue. The fixture checks that releasing the list and resetting the allocator leaves one snapshot held. After both queues complete, reusing the first allocator releases it. The untracked-submit control still holds one snapshot after both queues complete.

Verification

Source commit 7a163fc5b9ebe35baae0b5437fa8da005f8cf8b9. Windows 11 26200.9974, x64 MSVC 19.51, Windows SDK 10.0.26100. RTX 4060 Laptop driver 616.56 and in-box WARP 10.0.26100.9818. Both debug-layer and no-debug variants ran.

cmake --build --preset dev --target startup_list_resubmit
ctest --preset dev --no-tests=error -j 1 -V -R '^startup_list_resubmit(_nodebug)?(_untracked)?_(warp|hardware)$'
cmake --build --preset release --target startup_list_resubmit
ctest --preset release --no-tests=error -j 1 -V -R '^startup_list_resubmit(_nodebug)?(_untracked)?_(warp|hardware)$'

8 passed in Debug and 8 passed in Release /O2. No failures, capability skips, or unexpected debug-layer errors. After both queues completed and the old allocator was reused, the tracked variants held zero snapshots and the untracked controls held one.

**@⁠R0Y00** on GitHub · 2026-11-28 13:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3358) `R0Y00:codex/translated-sampler-retirement` → `main` · +121 −57 · 4 files · 1 commits · merged 2026-11-28 13:49 UTC ## Change Refs #870. Retain immutable translated sampler heaps with the desktop allocator that recorded them. A closed list can be submitted on multiple queues. The heap remains retained until the list releases its recording and every tracked queue reaches its last submission fence. A missing or invalid completion point keeps the allocator and heap retained. Extend the source-built list resubmission fixture to record a sampler heap, submit on two queues, and stall the second queue. The fixture checks that releasing the list and resetting the allocator leaves one snapshot held. After both queues complete, reusing the first allocator releases it. The untracked-submit control still holds one snapshot after both queues complete. ## Verification Source commit `7a163fc5b9ebe35baae0b5437fa8da005f8cf8b9`. Windows 11 26200.9974, x64 MSVC 19.51, Windows SDK 10.0.26100. RTX 4060 Laptop driver 616.56 and in-box WARP 10.0.26100.9818. Both debug-layer and no-debug variants ran. ```powershell cmake --build --preset dev --target startup_list_resubmit ctest --preset dev --no-tests=error -j 1 -V -R '^startup_list_resubmit(_nodebug)?(_untracked)?_(warp|hardware)$' cmake --build --preset release --target startup_list_resubmit ctest --preset release --no-tests=error -j 1 -V -R '^startup_list_resubmit(_nodebug)?(_untracked)?_(warp|hardware)$' ``` 8 passed in Debug and 8 passed in Release /O2. No failures, capability skips, or unexpected debug-layer errors. After both queues completed and the old allocator was reused, the tracked variants held zero snapshots and the untracked controls held one.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:26:11 +00:00
github manually merged commit 7a163fc5b9 into gh-pr/3358/base 2026-11-28 14:26:13 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.