windows: the CPU-mapped bar scales down on an eight-GiB card #2683

Open
github-bot wants to merge 1 commit from github-bot/gh-2683 into main AGit
Owner

@⁠sh3nw4ld on GitHub · 2026-11-29 16:01 UTC · original
sh3nw4ld:fix-windows-bar-scale2 → main · +50 −7 · 1 files · 1 commits · open

See the branch's commit messages for the full what-and-why. Clippy (both configurations) and the tests verified locally on an RTX 4060 Ti (8 GB), Rust 1.98.1 pinned. The CI-green PR carries the main-level fixes these stack on.

**@⁠sh3nw4ld** on GitHub · 2026-11-29 16:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2683) `sh3nw4ld:fix-windows-bar-scale2` → `main` · +50 −7 · 1 files · 1 commits · open See the branch's commit messages for the full what-and-why. Clippy (both configurations) and the tests verified locally on an RTX 4060 Ti (8 GB), Rust 1.98.1 pinned. The CI-green PR carries the main-level fixes these stack on.
The waves lost the mb helper the memory log calls four times, and a
local timing (the per-submission instrument) shadowed the
VICTORY_GPU_TIMING switch of the same name, so the three calls below
it resolved to the Option. The helper is back (bytes as f64 over
1 MiB, as the one inline use beside them computes it), and the local
is timed.
The waves left the default clippy pass red, and the repo's Actions
started running this week, so every PR shows it. One pass over the
workspace: the loader's unwind_copy is reachable from the diagnostics
re-export alone (gated as its caller chain is); the shader side lost
an import and gained a mutable propagation condition; the gpu crate's
newer waves left an unused import, three unused variables, a leftover
const, a duplicate '%' glyph arm (the first renders, as before), two
never-built fns, a few prepared-but-unwired fns and a variant (marked
as such, the way pipeline.rs and shadow.rs already do), a needless
borrow, two is_multiple_of, a lazy evaluation, a runtime assert of a
const (const { assert! }), and items after a test module (the hle one
moves above it); the workspace rust-version rises to 1.89, which the
file locking in pipeline/library.rs already needs.
The wave that moved the fast path to Microsoft's dictionary reading
(f9de61c5) left the reference oracle at the old one, and the parity
tests caught the two apart: the oracle skipped the widths word and
read 31 slots, the decoder reads all 32 in order. The oracle follows
the decoder now, as its own bc7_dictionary_indices_line_up test pins
against the shipped tables. The three BC7 oracle-parity tests are
green again.
card_steps' two tests of the learned pages share the global registry
and ran side by side: heap reuse gave one test's leftovers to the
next, and the four-core runner hit it (places_written_after_sending_
are_learned failed in CI). They take a lock of their own now and the
registry is forgotten between them.

And the policy entry for the generated frame_users.rs the waves
merged: rows of instruction recipes and window offsets, no title
bytes — the mechanical hex-run count trips on the recipes' long rows;
the owner to confirm the entry.
The runner has no hardware and its WARP predates SM 6.6: the wave64
helper panicked on its empty run (neither device available), the
nv05d1 reference turned the skip into an expect, and the intersect
test asked for both devices before anything ran. An empty run is a
skip now, the way the harness's other paths skip.
The waves left the default clippy pass red, and the repo's Actions
started running this week, so every PR shows it. One pass over the
workspace: the loader's unwind_copy is reachable from the diagnostics
re-export alone (gated as its caller chain is); the shader side lost
an import and gained a mutable propagation condition; the gpu crate's
newer waves left an unused import, three unused variables, a leftover
const, a duplicate '%' glyph arm (the first renders, as before), two
never-built fns, a few prepared-but-unwired fns and a variant (marked
as such, the way pipeline.rs and shadow.rs already do), a needless
borrow, two is_multiple_of, a lazy evaluation, a runtime assert of a
const (const { assert! }), and items after a test module (the hle one
moves above it); the workspace rust-version rises to 1.89, which the
file locking in pipeline/library.rs already needs.
The bar defaulted to a flat 4096 MB wherever the shared budget is
small and card memory can be mapped, whatever the card's own budget:
on the 8 GB + 16 GB rig of issue #1918 that was over half the card,
competing with the texture queue's line, and the reporter found
2048 alone. A budget of eight GiB or less takes a third of it now,
the way the sibling reserve of the targets' room scales down; the
flat take stays for the bigger budgets the small-shared case asked
for (issue #1520), the small-host arm and the off arm are as they
were, and an explicit VICTORY_WINDOWS_BAR_MB still decides first.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:04:10 +00:00
github-bot force-pushed github-bot/gh-2683 from 0c14d65e05 to 3d93b80a00 2026-11-29 16:21:29 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/shadow.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/2683/head:github-bot/gh-2683'
git switch 'github-bot/gh-2683'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2683'
git switch 'github-bot/gh-2683'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2683'
git switch 'github-bot/gh-2683'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2683'
git switch 'main'
git merge --squash 'github-bot/gh-2683'
git switch 'main'
git merge --ff-only 'github-bot/gh-2683'
git switch 'main'
git merge 'github-bot/gh-2683'
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/trustno1-coder--VIctory-NVIDIA!2683
No description provided.