Independent native D3D12 generation and two-fence lifetime fixture (reference for #1914/#3676) #3914
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#3914
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@RomainROCH on GitHub · 2026-12-03 06:49 UTC · original
Follow-up for the existing item (e) discussion, not a new claim or runtime integration proposal.
GPUMemoryLab now has a separate MIT-licensed native D3D12 lifetime fixture at
1f9596a: a logical buffer slot is rebound to a new independently allocated generation while two previously submitted COPY-queue reads still capture the old backing. The new generation completes its DIRECT-queue GPU write/read while both old completion fences remain zero. Both old reads later return their original bytes; retirement is denied after either first fence and allowed only after both fences, in either completion order.Protocol · Raw native logs
WARP and GTX 970M each passed both positive orders and detected both deterministic first-fence-only negative controls (exit 2 without freeing live GPU memory). The independent CPU oracle checked the logged native phases and bytes; 63 Python tests pass. Scope: synthetic buffers, Windows 11 / D3D12, two distinct virtual addresses, no physical-page recycling, no Windows 10 LTSC/Ada or Vulkan validation.
I saw that the overlapping-placement fixture in #3725 is already merged. This adds a distinct in-flight generation / two-fence retirement control, not a repeat of that placement test. It might help as an optional independent regression reference for future guest-memory retirement work; no claim that it finds a current Xbox2Windows defect or improves game performance. Original source and fixtures are available under MIT.