runtime: retire translated sampler heaps with their allocator #3358

Merged
R0Y00 merged 1 commit from upstream-pr/3358 into main 2026-11-28 13:49:19 +00:00
R0Y00 commented 2026-11-28 13:44:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T13:44:58Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5540743501 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3358). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-28T13:44:58Z. --- ## 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.
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!3358
No description provided.