gpu: say at startup when Resizable BAR / GPU upload heaps are unavailable #168
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!168
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-167"
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?
@SovietBearz0r on GitHub · 2026-12-05 20:50 UTC · original
SovietBearz0r:rebar-warning→main· +78 −7 · 2 files · 1 commits · openDarner warns at start when Resizable BAR is off (72 of 266 player logs were missing its fast path because ReBAR was off — "the build now warns you when it starts"). Our tree quietly falls back for the same capabilities.
What
Host::mapped_card_memory()already queriesD3D12_FEATURE_D3D12_OPTIONS16::GPUUploadHeapSupported(the D3D12 ReBAR/upload-heap capability) lazily on first use. It is now asked once when the D3D12 device is created: info when available, warn when not, naming what falls back — ReBAR mapped windows (VICTORY_WINDOWS_BAR_MB) and card-memory submission uploads (VICTORY_SEND_BAR=1) — and the honest causes (ReBAR in BIOS/UEFI, Win11 24H2+ runtime, driver).VICTORY_REBAR_WARN=0. No behaviour change.Verification
cargo test -p victory-gpu --lib: 717 passed, 0 failed, 21 ignored (new test pins the info/warn text, the two affected switches, and the opt-out); clippy-D warningsdefault+all-features clean;cargo check -p victory; policy 442 files.@SovietBearz0r on GitHub · 2026-12-05 21:48 UTC · original
In-game check done on this box (RX 9070 XT 16 GB, RDNA4, Ryzen 9 9900X, Windows; diag build,
bench.ps1builtin:cruise,-Gpu 0): the warning path works exactly as intended — one line at start, no errors:This machine actually reports upload heaps unavailable, so the warn path is verified and the info path is not (needs a ReBAR-on machine). No behaviour/pacing change; log:
data\ingame-verify\logs\rebar-default.log(this was the cold-cache lap, 139 shader translations, later runs clean).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.