RTX 4060 Laptop: 107 compute pipelines refused (shaders ask for wave size 64, device max is 32), then TDR on world entry #1107
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#1107
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?
@packwka22 on GitHub · 2026-11-24 15:47 UTC · original
On an NVIDIA RTX 4060 Laptop the title boots, plays the intro and reaches the opening credits over the first mission, then the device hangs (TDR,
DXGI_ERROR_DEVICE_HUNG) a few minutes in. A diagnostics build withVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1shows two NVIDIA-specific problems that probably don't show up on the RX 6700 XT the README mentions:111 compute shaders request a wave lane count of 64; the device maximum is 32. The D3D12 runtime rejects them and VIctory logs
host pipeline refused … (0x80070057)107 times, so those dispatches are dropped.The descriptor heap is capped at 1 000 000 (the title asks for 1 245 184), followed later by
no free dynamic descriptor slots.DRED output for the hang is included below. Full diagnostics log attached (
victory-diag.log, Windows user name redacted, ANSI colour codes stripped; Russian system messages are from the localized OS).Environment
VIctory diagnostics build (
cargo build --profile diag -p victory --features diagnostics), commit<fill in: git rev-parse --short HEAD>OS Windows
<fill in: winver>x64GPU NVIDIA GeForce RTX 4060 Laptop GPU, 8 GB (hybrid laptop with Intel iGPU)
NVIDIA driver
<fill in>Console mode Xbox Series X (default)
Output VIctory reports
presenting to a window width=3840 height=2160Run:
VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1,target\diag\victory.exe run <game dir>\game_scarlett_master.exe --execute111 × the debug-layer message, 107 ×
host pipeline refused. The same refusals (120 of them) also happen in a release build, where the debug layer isn't there to explain them. NVIDIA only supports wave32, so any shader translated with a fixedWaveSize(64)can't be created there. A wave32 path, or a check ofWaveLaneCountMaxbefore requesting 64, would be needed.2. Descriptor heap cap
1 000 000 is the usual NVIDIA limit for a shader-visible CBV/SRV/UAV heap.
3. The hang (DRED)
The commands the DRED report shows for the list that stopped (
list 6 of 30, of its 26) are all indirect mesh draws (indirect kind 10 max 1) with these pipelines:[mesh f9c79a2d484bd75a, pixel a144abbc586fa5b2](×3)[mesh 1fa93fcea4869fa8, pixel d603540bd3056c4b](×2)[mesh 66516eaaae261850, pixel 7ce2f1e3371945c7](×1)Their
u8/u9user-data descriptors resolve tonullin most entries (e.g.u8=0xa51580 [heap 338092: null] u9=0x165d100 [heap 732808: null]), and the pixel shaders write UAVs2048x2048 f28and64x64 f61.Guess, not verified: if the compute passes that are supposed to write these draws' indirect arguments or descriptors are among the 107 refused wave64 pipelines (or the draws dropped for lack of descriptor slots), the indirect mesh draws may read stale or garbage arguments and spin the GPU into a TDR. The release-build log also has
indirect execution droppedlines with arguments like[10, 0, 3273746095, 32763].Other observations
Frame rate after world load: 0.4–0.9 fps. Most of the frame is host-side preparation (copies of 150–450 MB per frame), not GPU time.
Translator gaps logged as
shader does not translate: the most common are "a select on an untracked mask" (66), "a lane mask holding lanes elsewhere read as data" (64), "a descriptor read only as data" (50), "an address in an SGPR that is no root parameter" (31), "a structured buffer of unknown stride" (27) — all compute.In an earlier release-build run, one frame took 9.2 s on the GPU without a TDR, and the fatal submission was only 509 ms, so the hang does not look like a plain "frame too slow" timeout.
Happy to rerun with other switches or a test build.
victory-diag.log
github-bot referenced this issue2026-11-26 04:38:56 +00:00
@pickles976 on GitHub · 2026-11-24 15:51 UTC · original
Cross-runtime datapoint that should collapse this issue: a wave64 shader on a wave32-max device is not infeasible — it is the normal case for our sibling runtime (ivall/xcl) and every AMD RDNA3/RDNA4 host, and we have zero refusals for it because the program is lowered, not refused: split-wave64 compiles the console wave64 program onto 32-lane waves (the
wave32_only_for_devicedecision path,pso.rs:597— "device wave range includes/equals 32 ⇒ split", unknown range also splits). RDNA3/4 hardware max is 32, and the ~5-min in-world record runs on a 7900 XTX with the full wave64 corpus lowered, so the 107 pipelines here are translatable, not hopeless.\n\nMechanically your issue is the same root as your #1086 row 2 with the volume knob up: with wave64 emulation off, NVIDIAs advertised max of 32 either legalizes-without-remap (row 2, silent wrong) or outright refuses at PSO creation (this issue, loud) — one policy decision producing two symptom classes. So the A/B to run on this exact host is the same one:VICTORY_WAVE64_EMULATE=emulateshould take these 107 refusals toward zero the way our split path does; if it only fixes some of them, the remainder is a second, genuinely translation-gapped class worth splitting out of the 107.\n\nFor your project-level decision (#1086 argued the default): this corpus is the evidence that native Wave32 default costs both classes at once — silent corruption where the driver legalizes and mass refusals where it does not. One honest line in the refusal text ("wave 64 > device max 32 — wave64 emulation off; see #189") would have made this report a config question instead of a hardware-mystery week.@DrDarkDK on GitHub · 2026-11-24 15:52 UTC · original
I matched all 107 refused compute-shader hashes from
victory-diag.logagainst my local 1.0.2.1 shader sample. I tested PR #189 at54b333fon native Windows with an RTX 4070 Ti (621.01).Native: 104 passed DXIL validation and were refused at pipeline creation. The other 3 failed DXIL validation.Emulate: 30 passed DXIL validation and created pipelines, including13dfdd3b1136e407. The other 77 stopped during lowering: 31 at LDS accesses without a uniform fence and 46 at wave operations in divergent control flow, including 29 ballots and 12v_readfirstlanecases.This was offline pipeline creation only. I did not dispatch the shaders or test whether the later mesh hang persists.
AI-assisted with Codex.
@packwka22 on GitHub · 2026-11-24 16:07 UTC · original
Ran PR #189 on the actual host (RTX 4060 Laptop), diag build of
pr-189at commit<fill in: git rev-parse --short HEAD>, withVICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1and noVICTORY_WAVE64_EMULATE(auto). The log showsWave64 compute lowering mode selected wave64_mode=Emulate. (My earlierVICTORY_WAVE64_EMULATE=emulaterun was onmain, which doesn't have #189, so it had no effect.)Thanks @DrDarkDK — the runtime numbers match your offline result.
The 107 refused shaders
host pipeline refused: 107 → 0; "wants wave lane count of 64": 111 → 028 of the 107 now create a host pipeline (including
13dfdd3b1136e407)77 fail lowering:
31 × LDS accesses without a uniform LDS fence in split wave64
29 × a 64-lane wave ballot in divergent control flow
12 × v_readfirstlane in divergent control flow
3 × a cross-lane read in divergent control flow
2 × a wave reduction in divergent control flow
2 were not requested in this run
Regression: 50 shaders that worked on
mainnow fail50 compute shaders that created a host pipeline on
mainon this same machine (so the driver accepted them; they never hit the wave64 refusal) now fail translation under Emulate:48 ×
v_readfirstlane in divergent control flow is not supported2 ×
a lane mask from a carry is not supportedSo on this host the net effect is +28 / −50 compute pipelines. Maybe Emulate is being applied to programs that don't depend on 64-lane layout? Per-hash table attached (
pr189-shader-results.md).Across the whole run, unique shaders that fail translation went from 280 to 481. Part of that may just be the two runs covering different content.
The hang is unchanged
TDR again (
DXGI_ERROR_DEVICE_HUNG), about 1 min 47 s after start. DRED stops on op 42 (command 17 of 70), and the in-flight list (list 6 of 30) is again indirect mesh draws (indirect kind 10) with the same three pipelines as in themainrun:[mesh f9c79a2d484bd75a, pixel a144abbc586fa5b2][mesh 1fa93fcea4869fa8, pixel d603540bd3056c4b][mesh 66516eaaae261850, pixel 7ce2f1e3371945c7]u8andu9resolve tonullin all 12 entries for that list. Since the hang is identical with the wave64 refusals gone, it looks like a separate problem in these indirect mesh draws rather than a side effect of the refused pipelines. I'm happy to split it into its own issue if that's easier to track.Frame rate after world load is still 0.3–1.3 fps.
Attached:
victory-pr189.log,pr189-shader-results.md.issue-comment-pr189.md
pr189-shader-results.md
@Marvisak on GitHub · 2026-11-25 10:03 UTC · original
Automated triage for the maintainers.
Thanks for the detailed report and the #189 follow-up. A few essentials are still placeholders. @packwka22, could you add:
git rev-parse --short HEAD);winver) and the NVIDIA driver version.What the code and other reports say:
0x80070057): this matchesmain.Lower::newincrates/victory-shader/src/emit/lower.rsdeclaresWaveSize(64)for wave64 programs that depend on the lane layout, and a 32-lane GPU refuses them. The NVIDIA world hang with these refusals is tracked in #71. Open PRs: #189, #1929, #1922, #1960. Please post the +28/-50 shader table on #189 itself, since it is a regression in that PR.no free dynamic descriptor slots:HostHeap::newincrates/victory-gpu/src/descriptor/host.rsfalls back to that cap with 2^16 dynamic slots. Tracked in #747 (PRs #1349, #1548).Generated by Claude Code