GPU: VICTORY_MODE overrides the reported console display mode #1701
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1701
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1701"
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?
@Calvix2k on GitHub · 2026-11-24 20:54 UTC · original
Calvix2k:codex/gpu-output-mode-override→main· +37 −2 · 2 files · 1 commits · openImplements the
VICTORY_MODElocal patch @pfhandler posted under #1677.Summary
The DXGI output mode list reported one fixed 3840x2160 mode, so a host smaller than the console still carried the 4K render targets and their VRAM cost (about 3.5 GB with the Series S profile and 1080p in the report).
VICTORY_MODE=<width>x<height>sets the reported mode;1920x1080is documented.Test
output_mode_override_parses_or_falls_backcovers1920x1080, whitespace,Xas separator, the 4K value, zero, above-limit, and non-size strings.Validation
cargo test -p victory-gpu --locked -- --test-threads=1— passed (51 tests, 1 ignored).cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (154 files).rustfmt --edition 2024 --checkon the changed file — passed.Tested by the reporter on GE-Proton 11-14 / vkd3d-proton 3.2.0 with an RTX 4060 Ti, where it kept the title's targets at 1080p.
@Calvix2k on GitHub · 2026-11-24 22:13 UTC · original
Rebased onto
70564ae; the only conflict was the README environment table (upstream added two pipeline-log rows). Both sets of rows are kept. output_mode_override_parses_or_falls_back passes, clippy -D warnings and cargo xtask policy (174 files) are clean.@Marvisak on GitHub · 2026-11-25 03:34 UTC · original · edited 2026-11-26 00:25 UTC
Automated triage for the maintainers.
Merge candidate, unchanged. The head is still
fb27a56, and it merges cleanly into currentmain.mainstill reports a fixed 3840x2160 mode incrates/victory-gpu/src/dxgi.rs, and nothing onmainreadsVICTORY_MODE. The opt-in override is range-checked (1..=16384) byparse_modeand covered byoutput_mode_override_parses_or_falls_back. The earlier optional suggestion stands: log a warning when the value is invalid, asVICTORY_WINDOW_MAXdoes.On the replies: the five failures in StExpeditus's NVIDIA report are the descriptor-heap and hardware tests that also fail on
main, so nothing changes.CI: passing (
check).Generated by Claude Code
@StExpeditus on GitHub · 2026-11-25 09:18 UTC · original
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
fb27a56.cargo test --workspace --locked --no-fail-fast-> 697 passed, 5 failed, 10 ignored. The failures are the same 5 pre-existing NVIDIA 1M-view-heap-cap failures (also on main; see my reports on #2030 and #1940). Nothing introduced by this PR fails on this machine.@Calvix2k on GitHub · 2026-11-25 16:39 UTC · original
Thanks — the same five NVIDIA heap-cap failures as on
main, and nothing from this PR. Noted on the record.@fuzeofficlal on GitHub · 2026-11-26 00:46 UTC · original
Code review and RTX 5090 + WARP verification at head
fb27a56d0c09merged cleanly ontomain(63bcca43c6a0):crates/victory-gpu/src/dxgi.rs:232-286):parse_mode/mode_sizeacceptVICTORY_MODE=<width>x<height>(case-insensitivex/X, trimmed), clamp both dimensions to1..=16384, and fall back cleanly to(3840, 2160)on empty, malformed, out-of-range, or non-UTF-8 values. Verified no other hardcoded3840/2160remains invictory-gpu/src; refresh rate (60/1), format, scanline order, and swapchain sizing/HDR are untouched.mode_size()is active in both default anddiagnosticsbuilds (no#[cfg(feature = "diagnostics")]gate), whileREADME.md:215listsVICTORY_MODEunder## Debugging(purely a minor doc-placement note).VICTORY_D3D12_DEBUG=1, Rust 1.98.1):cargo xtask policy:191 files ok;cargo clippy --locked -p victory-gpu --tests -- -D warnings(default +--features diagnostics): 0 warningsdxgi::: 3/3 passed on default RTX 5090,--features diagnosticsRTX 5090, and--features diagnosticsWARP.LGTM.
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.