gpu: VICTORY_D3D12_WARP=0 opts out of the software adapter #695

Open
github-bot wants to merge 3 commits from github-bot/gh-695 into main AGit
Owner

@⁠arthercz on GitHub · 2026-11-24 06:59 UTC · original
arthercz:warp-env-fix → main · +1832 −652 · 37 files · 3 commits · open

Closes #610.

The diagnostics gate checked only the variable's presence, so VICTORY_D3D12_WARP=0 still created the device on WARP; the workaround was to remove the variable entirely.

This treats 0 like unset, keeps the documented 1 and presence-means-on for other values, and keeps the diagnostics feature gate. The predicate moves into warp_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 --workspace 265 passed; cargo clippy --workspace --all-features clean.

**@⁠arthercz** on GitHub · 2026-11-24 06:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/695) `arthercz:warp-env-fix` → `main` · +1832 −652 · 37 files · 3 commits · open Closes #610. The diagnostics gate checked only the variable's presence, so `VICTORY_D3D12_WARP=0` still created the device on WARP; the workaround was to remove the variable entirely. This treats `0` like unset, keeps the documented `1` and presence-means-on for other values, and keeps the diagnostics feature gate. The predicate moves into `warp_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 --workspace` 265 passed; `cargo clippy --workspace --all-features` clean.
- cargo fmt: 168 formatting differences in 32 files
- xmem.rs: initialize PERFORMANCE_INFORMATION cb in the struct literal
  (clippy::field_reassign_with_default)
Speech streams were valid empty WAVE files, so the title's narration
(accessibility menus and the like) was silent. Route text (0x68) and
SSML (0xa8) through Windows.Media.SpeechSynthesis and hand the title the
spoken RIFF stream; when the host has no voice (no voices installed,
WinRT unavailable), keep the empty-WAVE fallback so the title still
plays the stream and goes on.

- streams become boxed handles, reclaimed by close (0x70); the
  synthesizer handle stays a fixed address
- enumerate_voices stays a no-op: no title of ours asks, and the host's
  default voice speaks
- the windows crate moves out of the diagnostics-only feature so its
  WinRT bindings link in release builds too

Verified on Windows 11: the unit test now speaks "Hello" and validates
the returned WAVE (RIFF chunk walk, PCM 16 kHz mono 16-bit, non-empty
data); cargo test --workspace 264 passed.
The diagnostics gate checked only the variable's presence, so
VICTORY_D3D12_WARP=0 still created the device on WARP; the workaround was
to remove the variable entirely (issue #610).

Treat "0" like unset, keep documented "1" and presence-means-on for
other values, and keep the diagnostics feature gate. The predicate moves
into warp_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; cargo clippy --workspace --all-features clean.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:19 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:36 UTC · original

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.rs and 6 more.

The content has not been reviewed yet; it will be once the branch is rebased onto main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 00:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/695#issuecomment-7148683184) <!-- victory-triage v1 head=b91ff3c4829d2d9cf82f08032f6437b4fb667f74 verdict=needs-rebase at=2026-11-25T00:13:20Z --> 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.rs` and 6 more. The content has not been reviewed yet; it will be once the branch is rebased onto `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/victory-formats/src/xma.rs
  • crates/victory-formats/src/xma/tables.rs
  • 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/host.rs
  • crates/victory-gpu/src/pipeline/library.rs
  • crates/victory-gpu/src/pipeline/make.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/watch.rs
  • crates/victory-hle/Cargo.toml
  • crates/victory-hle/src/modules/dstorage.rs
  • crates/victory-hle/src/modules/xgamesave.rs
  • crates/victory-hle/src/modules/xgameui.rs
  • crates/victory-hle/src/modules/xmem.rs
  • crates/victory-hle/src/runtime.rs
  • crates/victory-loader/src/crash.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/695/head:github-bot/gh-695'
git switch 'github-bot/gh-695'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-695'
git switch 'github-bot/gh-695'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-695'
git switch 'github-bot/gh-695'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-695'
git switch 'main'
git merge --squash 'github-bot/gh-695'
git switch 'main'
git merge --ff-only 'github-bot/gh-695'
git switch 'main'
git merge 'github-bot/gh-695'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!695
No description provided.