GPU: make tables past a capped host view heap afresh (NVIDIA menu hang) #21
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21"
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?
Imported from Marvisak/VIctory. Originally posted by Nostyxx on 2026-11-23T23:17:00Z.
What
The title's shader-visible view heap has 1,245,184 slots. NVIDIA caps shader-visible view heaps at 1,000,000 (
host view heap capped at 1000000in the log; the debug layer:NumDescriptors 1310720, but the limit for shader visible view heaps is 1000000).HostHeap::newthen falls back to a heap whose title part ends at 934,464, with the dynamic slots after it.The title binds a per-frame table ring in its top slots: from about 934,000 up to 1,245,184, moving 4,096 slots a frame. A diagnostic in
HostHeap::mirrorlogged 78 distinct title slots past the host heap in one menu run, allfor_draw=true. Those tables' host offsets either alias the dynamic slots (constant buffers made per draw) or run past the end of the heap. On NVIDIA the GPU then hangs within the first-boot screens (DXGI_ERROR_DEVICE_HUNG), after black and glitched frames.Change
draw.rs,State::tables: a table whose used entries reach past the host heap's title slots is made afresh in dynamic slots, as tables holding constant buffers already are, and the shader gets the new offset. Hosts that take the whole heap (AMD) are unchanged.descriptor/host.rs:HostHeap::count(), andmirrorlogs the highest title slot it meets past the host heap, once per new maximum.Testing
RTX 3080, driver 32.0.16.2114, Windows 11, title 1.0.2.1:
cargo test --workspacepasses.Related
B5G5R5A1/B4G4R4A4uses, the early-freed texture) are separate and not addressed here; this fix alone was enough to get through the menus on this machine.State::tables; whichever lands second needs a small rebase.AI-assisted (Claude Code). Own copy of the title; no game data in this PR.
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-23T23:39:54Z.
Verified the first-boot rendering improvement on Windows 11, Core Ultra 7 265K, RTX 5070 12 GB, driver 621.01. Both runs used the hardware adapter and the diagnostics profile.
8c260611dd7afd+ this PR at3827767The two upstream bases differ only in the XMA parser. The test stack contained this PR's descriptor change alone among the proposed descriptor fixes.
A longer run of the same patched binary with the retained profile reached a loading spinner. The operator heard audio during mission loading and the desktop briefly froze. Frame pacing fell to about 0.4–1.2 fps. Windows reported LiveKernelEvent 141 with a watchdog dump timestamp matching that run. System commit headroom fell to 846 MiB. The observation timer fired at 120 s and the process had exited by 172 s. We could verify the menu correction and subsequent loading transition. The later trace does not identify a faulting draw or establish that descriptor remapping caused the timeout.