View heaps compact without a resizable BAR; VICTORY_HOST_WAVE; VICTORY_TITLE_DLL_DENY #4484

Closed
github-bot wants to merge 14 commits from github-bot/gh-4483 into main AGit
Owner

@⁠livejasminw on GitHub · 2026-11-30 21:01 UTC · original
livejasminw:view-heaps-host-wave-dll-deny → main · +1020 −850 · 33 files · 14 commits · closed without merging

Three independent changes, all opt-in except the first, which only applies on cards without a resizable BAR.

View heaps without a resizable BAR (crates/victory-gpu/src/descriptor/host.rs)
Shader-visible descriptor heaps live in the card memory the CPU writes. Without a resizable BAR (Smart Access Memory off, or Windows 10) that is a 256 MB window. Four heaps of 2^22 views with raw twins asked for 513 MB of it on an RX 6600 XT, and the driver removed the device on entering the world (Radeon Memory Visualizer: heap oversubscribed, nearly all descriptors). When mapped_card_memory() is false the heaps now take PORTABLE_VIEWS without raw twins (32 MB each). VICTORY_VIEW_HEAPS=wide / compact forces either way.

VICTORY_HOST_WAVE=32|64 (crates/victory-gpu/src/host.rs)
Translates as for a host whose waves are at most that wide, e.g. NVIDIA's 32-lane path on RDNA. Only accepted within the GPU's WaveLaneCountMin..Max; otherwise ignored with a warning. Part of the shader cache key via set_host_max_wave.

VICTORY_TITLE_DLL_DENY=a.dll,b.dll (apps/victory/src/run.rs)
LateDlls::load reports the named title DLLs as not found, as if the game folder lacked them (for tests). Checked before load_with, so the load_with test path is unchanged.

Testing

  • cargo build --release --locked -p victory: builds (Windows 10 19045, MSVC 14.51).
  • cargo test -p victory: 94/94 pass.
  • cargo xtask policy --staged: ok.
  • victory-gpu tests could not run locally: Windows 10's built-in D3D12 lacks Shader Model 6.6 and the test binaries don't load the Agility runtime. Relying on CI for them.

🤖 Generated with Claude Code

**@⁠livejasminw** on GitHub · 2026-11-30 21:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4483) `livejasminw:view-heaps-host-wave-dll-deny` → `main` · +1020 −850 · 33 files · 14 commits · closed without merging Three independent changes, all opt-in except the first, which only applies on cards without a resizable BAR. **View heaps without a resizable BAR** (`crates/victory-gpu/src/descriptor/host.rs`) Shader-visible descriptor heaps live in the card memory the CPU writes. Without a resizable BAR (Smart Access Memory off, or Windows 10) that is a 256 MB window. Four heaps of 2^22 views with raw twins asked for 513 MB of it on an RX 6600 XT, and the driver removed the device on entering the world (Radeon Memory Visualizer: heap oversubscribed, nearly all descriptors). When `mapped_card_memory()` is false the heaps now take `PORTABLE_VIEWS` without raw twins (32 MB each). `VICTORY_VIEW_HEAPS=wide` / `compact` forces either way. **`VICTORY_HOST_WAVE=32|64`** (`crates/victory-gpu/src/host.rs`) Translates as for a host whose waves are at most that wide, e.g. NVIDIA's 32-lane path on RDNA. Only accepted within the GPU's `WaveLaneCountMin..Max`; otherwise ignored with a warning. Part of the shader cache key via `set_host_max_wave`. **`VICTORY_TITLE_DLL_DENY=a.dll,b.dll`** (`apps/victory/src/run.rs`) `LateDlls::load` reports the named title DLLs as not found, as if the game folder lacked them (for tests). Checked before `load_with`, so the `load_with` test path is unchanged. **Testing** - `cargo build --release --locked -p victory`: builds (Windows 10 19045, MSVC 14.51). - `cargo test -p victory`: 94/94 pass. - `cargo xtask policy --staged`: ok. - `victory-gpu` tests could not run locally: Windows 10's built-in D3D12 lacks Shader Model 6.6 and the test binaries don't load the Agility runtime. Relying on CI for them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- descriptor/host.rs: shader-visible heaps live in the CPU-writable card memory, a 256 MB window
  without resizable BAR. Four heaps of 2^22 views with raw twins asked for 513 MB of it on an
  RX 6600 XT and the device was removed on entering the world. Without mapped card memory the heaps
  now take PORTABLE_VIEWS without twins; VICTORY_VIEW_HEAPS=wide / compact overrides.
- host.rs: VICTORY_HOST_WAVE=32|64 caps the host wave width the shaders are translated for, within
  the GPU's WaveLaneCountMin..Max (NVIDIA's 32-lane path on RDNA); otherwise ignored with a warning.
- run.rs: VICTORY_TITLE_DLL_DENY=a.dll,b.dll makes LateDlls::load report those title DLLs as not
  found (for tests). title_dll keeps its doc comment and #[cfg(windows)].

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 21:05:07 +00:00
github-bot closed this pull request 2026-12-01 18:43:28 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:40 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4483#issuecomment-7321335487) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!4484
No description provided.