runtime: retire translated sampler heaps with their allocator #3360
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3360
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/3358/head"
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?
@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 UTCChange
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.