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

Open
opened 2026-12-03 06:49:24 +00:00 by RomainROCH · 0 comments
RomainROCH commented 2026-12-03 06:49:24 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RomainROCH on 2026-12-03T06:49:24Z.


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 #3723 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6762616834 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3912). Originally posted by [RomainROCH](https://github.com/RomainROCH) on 2026-12-03T06:49:24Z. --- 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 #3723 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.
Sign in to join this conversation.
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#3912
No description provided.