gpu: VICTORY_D3D12_WARP=0 opts out of the software adapter #695
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/695"
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 arthercz on 2026-11-24T06:59:45Z.
Closes #610.
The diagnostics gate checked only the variable's presence, so
VICTORY_D3D12_WARP=0still created the device on WARP; the workaround was to remove the variable entirely.This treats
0like unset, keeps the documented1and presence-means-on for other values, and keeps the diagnostics feature gate. The predicate moves intowarp_selected/warp_selected_at, covered by a table test (unset,0,1, empty); README documents the opt-out.Verified:
cargo test -p victory-gpu --features diagnostics --locked warp_passes (both the new gate test and the existing adapter test);cargo test --workspace265 passed;cargo clippy --workspace --all-featuresclean.Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T07:15:39Z.
Review: APPROVED
Tested on Windows 11 MSVC:
Note: Stacked on #691 (and #692). Once those land, the diff will cleanly reduce to the 2 files (README.md and host.rs).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T08:48:15Z.
Review: COMMENTED
Same branch-shape note as on #699: this PR carries #692's fmt commit and #691's speech commit; only the tip
b91ff3c("gpu: VICTORY_D3D12_WARP=0 opts out") is this PR's change (closes #610). Rebase/retarget before review.Reviewed the tip commit itself (host.rs +25, README +1):
warp_selected()now parses the env value:=0opts out like unset,1on, any other value keeps the historical presence-means-on behavior — backward compatible and documented in the README row.warp_selected_at(Option<&OsStr>)seam makes the decision unit-testable, and there's a#[test]for it. Thecfg!(feature = "diagnostics")gate is preserved.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T10:20:47Z.
Review: COMMENTED
Tested
b91ff3con Windows 11, RTX 5070, MSVC:cargo test --workspace --exclude victory-shader196 passed, andcargo test -p victory-gpu --features diagnostics warp_2 passed. Clippy shows 3undocumented_unsafe_blockswarnings, at host.rs:294, list.rs:1452 and watch.rs:368. The same lines are already on main, so they aren't new here.warp_selected_at:0behaves like unset, any other value, including empty, turns WARP on, still undercfg!(feature = "diagnostics")) is correct, and the table test covers it.cargo fmt(#692) and the WinRT speech narration (#691), which accounts for 38 files including the newwindows-futuredependency and thewindowsdependency invictory-hlebecoming non-optional. Those belong to their own PRs. Please rebase this onto main so it holds only the WARP commit (host.rsand README). As it stands, approving this would also approve #691.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:36:10Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:README.md,crates/victory-gpu/src/capture.rs,crates/victory-gpu/src/descriptor/host.rs,crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs,crates/victory-gpu/src/list.rs,crates/victory-gpu/src/pipeline/library.rs,crates/victory-gpu/src/pipeline/make.rsand 6 more.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View 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.