GPU: treat VICTORY_D3D12_WARP=0 as unset #639
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/639"
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 Marvisak/VIctory. Originally posted by Quat3rnion on 2026-11-24T06:04:14Z.
What
The diagnostics switch used
var_os(...).is_some(), so an explicitVICTORY_D3D12_WARP=0still selected the software adapter; the workaroundwas to delete the variable. The value is now parsed in a host-independent
helper where
0means unset, while1, empty and other values keep theirexisting meaning. Fixes issue #610.
An AI tool wrote part of this change.
Tested
cargo test --workspace: 165 passed, 0 failed, 3 ignored. A new unit test checks unset,0,1, empty and an arbitrary value.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. No Windows host here, so adapter selection itself was not exercised.cargo xtask policypasses (151 files ok). No game files or data from them were added.Checklist
cargo xtask policypasses. No game files or data from them were added.Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:13:02Z.
Review: APPROVED
Tested on native Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).
Imported from Marvisak/VIctory. Originally posted by Quat3rnion on 2026-11-24T06:15:55Z.
Duplicate of #615, which covers all six VICTORY_* switches rather than WARP alone. Closing in favour of that PR.
Pull request closed