RTX 4060 Laptop: world-load device removal is not resolution/RT-bound; debug layer names invalid B5G5R5A1/B4G4R4A4 resources and a 1.31M descriptor heap #735
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#735
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@sbtwf8k7wz-arch on GitHub · 2026-11-24 08:47 UTC · original
Summary
On an RTX 4060 Laptop the title reaches the first mission's title card, then the host D3D12 device is removed during world load, as in #653 and #468.
Two new pieces of evidence:
rtDynamicShadows=falsedoes not change the failure; it still dies on the same 30-list submission. Not resolution/VRAM/RT load.B5G5R5A1_UNORM+ALLOW_UNORDERED_ACCESS,B4G4R4A4_UNORM+ALLOW_RENDER_TARGET, and a 1,310,720-entry shader-visible heap against a 1,000,000 limit.Details, environment and logs are in the local draft; this is a placeholder body.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 09:02 UTC · original
Verified the root cause of both issues identified by the D3D12 debug layer and implemented a fix on fork branch \ix/gpu-resource-format-flags-and-heap-limit:
1. Descriptor Heap Size Exceeding 1,000,000 (1.31M Heap)
2. Invalid Resource Flag Combinations
Verified with 52 passed unit tests in \ictory-gpu\ on Windows 11 MSVC (\incompatible_host_texture_flags_are_cleared\ and \large_view_heap_is_capped_at_portable_limit), \cargo clippy, and \cargo xtask policy.
@Qedycik on GitHub · 2026-11-24 12:52 UTC · original
Same two host limits on an RTX 5080 (Blackwell, desktop), driver 32.0.16.1656, Windows 11 26200, main at
ffe310e.What differs on this card and driver:
CreateDescriptorHeaprefuses the larger sizes outright (E_INVALIDARG) rather than accepting them, soHostHeap::newtakes the existing cap branch:host view heap capped at 1000000 count=1245184. The title asks for 1,245,184 views, so title slots from 934,464 (1,000,000 −MIN_DYNAMIC) up have no host descriptor.E_INVALIDARG) at boot, around the first screen, so they get no host copy at all:B5G5R5A1_UNORM(86), flagsRT | UAVB4G4R4A4_UNORM(115), flagsRThost pipeline refused(E_INVALIDARG) compute pipelines and ~430 untranslated shaders (most often: select on an untracked mask, lane mask read as data, descriptor read only as data).VICTORY_D3D12_WARP=1): menus at 15 fps and the intro video are fine; during world load, an access violation reading 0x0 inside WARP's JIT code, then device removed withDXGI_ERROR_UNSUPPORTED(0x887A0004), much like #338.@Sunkiller-qc on GitHub · 2026-11-24 13:08 UTC · original
The two formats the debug layer flags are the ones #89 (open) handles: B5G5R5A1_UNORM (86) with UAV and B4G4R4A4_UNORM (115) with render target. NVIDIA supports neither as a typed UAV or render target, so #89 creates those textures as R8G8B8A8_UNORM when
CheckFeatureSupportsays the format isn't supported. #797 shows the same two 2560x1440 textures refused.The 1,310,720-entry heap against NVIDIA's 1,000,000 limit is expected on main. When the driver refuses a view heap that big, main caps it, and since #21 (
97c78d1) the tables past the cap are rebuilt. So that debug-layer message alone isn't the cause.Could you try #89 on its own? That would tell whether the device removal on the 30-list submission is related to those textures or not.
@Marvisak on GitHub · 2026-11-25 01:49 UTC · original · edited 2026-11-26 00:49 UTC
Automated triage for the maintainers.
Thanks for the report. The body says it is a placeholder, so the essentials are still missing. Please add them:
git rev-parse --short HEAD), and whether it was a release ordiagbuild;crashes.loglines (DRED tail, ifVICTORY_D3D12_DRED=1was set);host adapterline from the log. On hybrid laptops the host device is created on DXGI adapter 0, which can be the iGPU rather than the RTX.Please retry on current
main(63bcca4) as well, since part of this has landed (see below).What can be said from the code meanwhile:
HostHeap::newincrates/victory-gpu/src/descriptor/host.rsfirst asks for the title's count plus the dynamic range. If that is refused, it caps at 1,000,000 (host view heap capped at 1000000), so the debug-layer message by itself is expected. The cap is tracked in #747; open PR #1349 touches it.main: #1273 andea488a9(#2462) makefitsincrates/victory-gpu/src/descriptor/host.rsrefuse every typed unordered view in a format the host cannot store to, so that view no longer reachesCreateUnorderedAccessView(its slot stays null and writes are dropped). Tracked in #1753.main. artor410's synthetic probe on an RTX 3070 Ti (driver 610.88,main13f91ca) shows an RTV inB4G4R4A4_UNORMremoves the device (0x887A0001), and compares the open PRs: #2767 (RGBA8 stand-in for both formats, keeps writes) covers both uses; #2773 drops the flags instead (safe, but draws and writes are lost); #2442, #1946 and the merged #2462 cover only the UAV half; #2305 and #89 no longer merge. #2626 takes the same stand-in approach as #2767. Also reported in #2563.The world-load device removal on NVIDIA is discussed in #468 (same GPU, the oldest complete report), with #653 and #314 as further reports. Please add your data there once the details above are in.
Generated by Claude Code
@artor410 on GitHub · 2026-11-25 21:53 UTC · original
Comparison on RTX 3070 Ti, driver 610.88, Windows 11 26300, rustc 1.98.1. main
13f91ca. Synthetic tests only.Hardware probe on main (temporary test: create a texture, then a UAV view or an RTV, then
GetDeviceRemovedReason, one process per case):CheckFeatureSupport: 86 has RT but no typed UAV; 115 has neither.The 2 known failures are the heap-cap pair, which also fail on main.
Pick: #2767. It is the only mergeable PR that covers both formats and both uses and keeps what the title writes. #2773 is the safe fallback, but it drops those draws and writes. #2462, #1946 and #2442 fix only the UAV half, and #2305 fixes only the RTV half.
Proven in-game: the same widening (86/115 to R8G8B8A8 when
CheckFeatureSupportlacks RT or typed UAV) is in the VItoriaBr fork, uiliannn/VItoriaBr@578d459c34, whose README reports the 3D world rendering on an RTX 5060 Ti with no TDR. #2767 matches it.Differences: VItoriaBr skips copies between packed and widened textures, while #2767 converts uploads. VItoriaBr also widens R9G9B9E5 (67) to RGBA16F. The same change as #89 is in Belobug (
da580e4) and DexNom (570a941), both tested on AMD only. Zettrox/ztrx and hyphennn/victory-fork return 404.(Claude Code, Claude Opus 5.5.)
@potatoe0100 on GitHub · 2026-11-26 14:12 UTC · original
An update on where this stands on current
main(63bcca4). TheB5G5R5A1_UNORMunordered access removal is fixed. #2462 (ea488a9) refuses the typed view, and #2286 (bac1364) stops theGetResourceAllocationInfoquery from using the title's description. #1753, which tracked that part, was closed after a debug-layer run on an RTX 5080.The
B4G4R4A4_UNORM(format 115) render target still has no stand-in onmain; #89 and #2767 are the open PRs for it. A rerun on63bcca4would show whether anything fatal is left.AI-assisted (Claude)