startup: retain present signature copies on device removal #3024
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!3024
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3024"
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?
@chadhyatt on GitHub · 2026-11-27 07:04 UTC · original
chadhyatt:backport/present-signature-removed-fence→main· +292 −32 · 3 files · 1 commits · merged 2026-11-27 07:22 UTCAI-assisted backport patch from x2w-microlift.
The present signature sampler must not treat
GetCompletedValue() == UINT64_MAXas successful completion. Keep the in-flight source and copy objects retained and publish no sample on removal. During teardown, re-observe a pending fence after the bounded wait so verified completion still releases normally.The authored held-source fixture exercises prior-sample preservation and deterministic pending-to-completed/removal observations through an actual queue and forwarding fence. No game files or title-specific input.
Verified on Apple Silicon against upstream main
c09145a7dand patch head7d1f443de3:x86_64-w64-mingw32-g++ -std=c++17 -fsyntax-only -Isrc -Itests tests/startup_present_signature.cpppassed.c++ -std=c++17 -Isrc tests/startup_present_readback_check.cppand its executable passed the pending, stale event, completion, failed signal, removal and ownership retirement controls.Windows WARP/debug-layer execution of
ctest --preset dev --no-tests=error -R "^startup_present_signature"remains unverified on this host.@R0Y00 on GitHub · 2026-11-27 07:21 UTC · original · approved these changes
Independent review of
7d1f443don currentmainc09145a7. The sampler now distinguishes pending, completed and removed. On the removal sentinel it leaves the prior sample published, maps no readback and retains the copy resources. Teardown also re-observes the fence after its bounded wait. The sentinel matches the D3D12 fence contract.I rebuilt
startup_present_signature,startup_present_readback_checkandd3d12_xs_shimand ranctest --preset <dev|release> --no-tests=error -V -R '^startup_present_(signature|readback)'. Debug and Release/O2each passed 4/4 without skips on Windows 11 build 26200.9974 and WARP 10.0.26100.9818. The held-source case had zero debug-layer errors and the unheld control produced the expected release-while-in-use error. The removal test injects the fence sentinel through a forwarding fence on a real WARP queue. Hosted Windows, Linux Python and gfx1013 checks passed. The hosted/O2job skipped and the local/O2retest passed.