feat(victory-gpu): opt-in display-driver event watch before TDR (VICTORY_DRIVER_WATCH=1) #578
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/578"
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 LooperSalty/AnyXboxX. Originally posted by Vladimir-Human on 2026-11-28T07:56:32Z.
Summary
Opt-in (default OFF,
VICTORY_DRIVER_WATCH=1) Windows System EventLog watcher ported fromfxceless/victory-forkcommitsa253706/a7ee5dfonto currentmain(132da61).Why
Display driver resets (TDR) are frequently preceded by logged System EventLog warnings/errors from
nvlddmkm(e.g. Event 153),amdkmdag,amdwddmg,igfx,igfxn, orDisplay(excluding Windows 11 Auto HDR Event 4125 noise). Subscribing to these System log events logs each event timestamp alongside host diagnostics and latchesdrvwatch::tripped()so risky indirect-window fast paths can fall back cleanly.Defaults & Scope
VICTORY_DRIVER_WATCHis1/true/on,start()subscribes to nothing, opens no EventLog handles,tripped()staysfalse, anderrors()stays0.third_party/victory/crates/victory-gpu/Cargo.toml: adds only"Win32_System_EventLog"to the existingwindows-sysfeature list;Cargo.lockis untouched (--lockedclean).drvwatch.rsis271lines (<= 400); test subscription/event handles clean up withEvtClose/DeregisterEventSource.#347,#350,#354,#555, or#577.AnyXboxX).Verification
Verified locally on Windows 11 (
third_party/victoryworkspace) after the final edit:cargo xtask policy(378 files ok)cargo clippy --no-deps -p victory-gpu --locked --all-targets(default &--features diagnostics: 0 errors, 0 own warnings, 10 pre-existing upstream warnings)VICTORY_D3D12_WARP=0) and WARP (VICTORY_D3D12_WARP=1, default env):drvwatch::tests(default &--features diagnostics): 4/4 passed (1 manual Application-log ignored)draw::tests: 3/3 passedhost::: 178/178 passed (19 ignored)Checklist
Source:/Co-authored-by:trailers +THIRD_PARTY.mdrow)VICTORY_DRIVER_WATCH=1off by default) + zeroCargo.lockdiffView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.