d3d12: check device removal during prefix fence waits #259
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/259"
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?
Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T18:45:57Z.
A narrow robustness improvement related to the device-loss symptoms in #215/#232. A memory-wait worker used an infinite event wait before inspecting the fence again, and a wakeup did not establish the requested prefix value had completed. Use one registered event with bounded 100 ms sleeps and recheck actual completion and GetDeviceRemovedReason. No new deadline on a healthy slow prefix; no release on a lost device or stale notification. Preserve the existing failure propagation and stop the worker. If a failed registration may still retain the event, retain the handle to process exit (at most once per failed worker).
Four deterministic tests: stale notification, missing notification with removal, removal sentinel, already complete/wait failure. Native isolated test binary passed 4/4. The Windows D3D12 test binary ran the entire memory_wait module under GE-Proton11-14: 18/18 passed, hardware paths confirmed adapter 10de:2704. Six no-GPU groups and 10/10 Lanes controls passed, with rebuilt provider and unchanged Lanes/XMem/BVH/GameInput fixture sources verified before staging. This is not a reproduction or a fix of NVIDIA Xid, nor does it break a genuine cross-queue dependency cycle. The missing-notification scenario is simulated, not a driver fault injection. Full GPU and AMD validation outstanding. Draft for review; independent of the label-bridging work.