Independent native D3D12 generation and two-fence lifetime fixture (reference for #1914/#3676) #3914

Open
opened 2026-12-03 06:50:53 +00:00 by github-bot · 0 comments
Owner

@⁠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.

**@⁠RomainROCH** on GitHub · 2026-12-03 06:49 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3912) 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`](https://github.com/RomainROCH/GPUMemoryLab/commit/1f9596affb525d2d9b8624234b52fc35e1d1ac5f): 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](https://github.com/RomainROCH/GPUMemoryLab/blob/1f9596affb525d2d9b8624234b52fc35e1d1ac5f/GENERATION_LIFETIME.md) · [Raw native logs](https://github.com/RomainROCH/GPUMemoryLab/blob/1f9596affb525d2d9b8624234b52fc35e1d1ac5f/results/generation-lifetime/native.txt) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 06:50:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3914
No description provided.