runtime: retire translated sampler heaps with their allocator #3358
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3358"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.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.