NVIDIA RTX 4060 Laptop: world is black (114 compute pipelines refused with E_INVALIDARG), then GPU fault after ~2 min #468
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#468
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?
@zaidlutfi on GitHub · 2026-11-24 03:46 UTC · original
Setup
d2a4bae(main),diagprofile with--features diagnostics,VICTORY_D3D12_DRED=1What happens
Boot, menus, intro, start screen and loading all work at 30 fps, as in the README.
The first mission's title card renders. After it, the screen stays black, with sound.
1. Compute pipelines refused, draws dropped
114 host pipelines are refused during the session. All are compute, all with the same error:
A typical frame in the world:
My guess, not verified: these are the wave64 compute programs the README mentions, which an NVIDIA
device cannot create.
2. Device removed on the default 2 s TDR
With the default Windows TDR, the device is removed shortly after entering the world:
Without
VICTORY_D3D12_DRED, the same failure is reported asno breadcrumbs (... 0x887A0004), whichlooks like an unsupported feature but is only the missing DRED data.
Setting
TdrDelay=60andTdrDdiDelay=60(HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers)stops this crash. It might be worth a line in the README for slower GPUs.
3. GPU fault after ~2 minutes in the world (with TDR raised)
The last submission took only 519 ms, so this is not a timeout:
The Windows System log shows
nvlddmkmevent 13 (graphics exception) at the same second, then event 153 (reset).Possibly related
AnyPS5 handled wave64 programs on 32-lane NVIDIA hosts by narrowing them to 32 lanes or running them on
the mesh path: https://github.com/boykopovar/AnyPS5/issues/2783
I can run more diagnostics builds or capture more logs on this GPU if that helps.
@r4tedx on GitHub · 2026-11-24 04:29 UTC · original
Your guess in section 1 is right:
0x80070057on a compute pipeline here is a console program that needs 64-lane waves, which an NVIDIA device does not offer (the debug layer says so in words, see #264: "Shader wants wave lane count of 64 but maximum wave lane count for device is 32").That part has open PRs with measurements in the title:
mainrun; the rest stop in translation with a named reason. Nothing that ran onmainstopped.What it does not change, in every one of those runs: the device removal and the frame time. So I would not expect it to fix your sections 2 and 3, and nobody has shown yet that the black picture is these programs.
If you can run it, two trees would tell something on a 4060:
integration/testers(what is in it): #223 + #233 together with the buffer-state tracker and the descriptor fixes.e49302a, for the full wave64 stack alone.The numbers that help: the count of
host pipeline refusedlines against your 114, the drop summary line of a world frame (yours above is a good baseline: 690 dropped without a host pipeline), and whether the fault of section 3 comes at the same place.I have no copy of the title; the measurements above are the linked testers'. AI-assisted.
@r4tedx on GitHub · 2026-11-24 05:51 UTC · original
An update, since three things have changed for this report.
WaveSize(64)and gets exactly yourE_INVALIDARG. Emitted for the host, as #223 + #233 do, it declaresWaveSize(32), the pipeline is created and the result is exact.VICTORY_SKIP_WAVE64=mesh,computeto diagnostics builds. If your run then gets past two minutes, your fault is in this class too. As far as I can see that would be the first laptop data point.A caveat on a number I cited above: the RTX 3080 report where refusals went from 103 to 1 also logged exceptions in the driver's shader compiler and one
E_OUTOFMEMORYrefusal before its device removal, so it is not a clean result.I ran nothing myself for this comment; the numbers are the linked testers'. AI-assisted.
@bai557 on GitHub · 2026-11-24 07:31 UTC · original
First laptop data point for #579: RTX 4060 Laptop, hang bypassed, in-world
Env: RTX 4060 Laptop GPU, driver 596.36, Windows 11 (26200), i7-13620H, 32 GB,
PR #579 head
1658c84, diag build + D3D12_DEBUG + D3D12_DRED.Baseline on
d2a4bae: 6/6 runs TDR at world entry (DEVICE_HUNG 0x887A0006, 11-30lists). DRED dump: same 4 compute pipelines recur, buffers/CBV at 5.7-54.3 GiB.
VICTORY_SHADER_LOOP_LIMIT=1024 did not help (crash unchanged).
With VICTORY_SKIP_WAVE64=mesh,compute: no device removal for 18+ minutes —
past the 2-minute line by 9x. The title entered the world and gained player
control (L/R stick HUD prompts visible), streaming at 0.8-0.9 fps, up to
530 draws/frame. Scene remains black with HUD rendering — consistent with the
hang/picture separation in the reports above.
So the fault is in the wave64 class on laptop Ada too. Loop-limit was not the
cause here. Still running; longer-run results or log excerpts (hashes, error
codes) on request.
@slint6614-dev on GitHub · 2026-11-24 08:09 UTC · original
For comparison, on AMD no compute pipeline is refused:
victory translate --pipelinesover the full retail shader pack (26,503 containers, main1f858b0) creates a pipeline for every emitted program on an RX 9070 (RDNA4) and on a Ryzen 9600X iGPU (RDNA2): VS/PS 12272, CS 1693, MS 8191, 0 pipeline errors (Windows 11, Adrenalin).These AMD GPUs run 64-lane waves natively. With #233's
--host-lanes 32-32(a 32-lane host such as NVIDIA), 223 compute programs need 64-lane waves. So the refused compute pipelines here may well be the wave64 ones; #233, #189 and #578 address that.@ShyVortex on GitHub · 2026-11-24 08:15 UTC · original
Same result on main
7374bfb, RTX 3080 Ti Laptop 16 GB (Ampere, driver 621.35) + i7-12700H, Win11 26300, diag build. Two runs, identical: 114–117 compute pipelines refused 0x80070057 (first hashes 13dfdd3b1136e407, 88994c3496045f51, 02384a60fda6f2d0, same as yours), world black with sound at 0.4–1.0 fps, 1300–2000 draws/frame dropped without a host pipeline. About 90 s into the world:slow host submission ms=5659 lists=11, then DEVICE_HUNG 0x887A0006 (default TDR). Peak VRAM 11.4/16 GB. Happy to test #233 / #579 on this laptop.@r4tedx on GitHub · 2026-11-24 08:29 UTC · original
@ShyVortex thank you, and yes please. A laptop with the same three hashes is useful. Two runs would say the most:
integration/testersat2b1a569, diag build,VICTORY_SHADER_LOOP_LIMIT=32. It carries #223 + #233 + #320 + #439 (the wave64 stack) and #579, together with the PRs of the set that stayed up on three desktop NVIDIA cards on #71, except #189, which conflicts with the stack. Nobody has run this tree with the loop limit yet. The closest run is Zignixx's on an RTX 5080: their own merge of the stack with that set, one run, about 6 minutes in the world, no device removal.VICTORY_SKIP_WAVE64=mesh,compute(#579). If that run stays up, your hang is in the wave64 class too.The numbers that help: the count of
host pipeline refusedlines against your 114–117, the drop summary of one world frame, time to device removal (or how long it stayed up), and whether anything shows behind the credits. Counts, hashes and messages only, please.I ran nothing for this comment. The results quoted are the linked testers', not mine. AI-assisted.
@ShyVortex on GitHub · 2026-11-24 08:32 UTC · original
Follow-up on the same laptop (RTX 3080 Ti Laptop,
7374bfb+ each PR merged locally, diag build,VICTORY_D3D12_DRED=1, 12-min cap):nvlddmkmevent 13 ×25 then 153, so a GPU fault rather than a timeout. DRED: list 25 of 29 stopped at command 3/70, a draw with mesh 3a93976a475b8bdb (mesh 4adfa13bea1c556a is the most frequent in the faulting lists' tables). That suggests wave64 mesh programs are what remain after #233.VICTORY_SKIP_WAVE64=mesh,compute: no device removal in 12 min, no nvlddmkm events. Through "Rockstar Games presents", the illustrated credits, cutscene subtitles and the PROLOGUE card, all 2D UI correct. The 3D scene stays black or dark grey while the cutscene advances, at 0.1–1.8 fps with copies dominating (340–1200 ms/frame "preparing"). 209 distinct programs skipped, 362 untranslated, 25 still refused. Audio in the world is audibly distorted, with no audio warnings in the log.@ShyVortex on GitHub · 2026-11-24 08:47 UTC · original
@r4tedx Ran it:
integration/testersat 2b1a569, diag build,VICTORY_SHADER_LOOP_LIMIT=32,VICTORY_D3D12_DRED=1, RTX 3080 Ti Laptop 16 GB (driver 621.35), cold caches, 12-min cap.nvlddmkm13/153 events. So the second run withVICTORY_SKIP_WAVE64was not needed.host pipeline refused: 0 (vs 114–117 on main7374bfb).shader does not translate: 160 (138 compute, 11 mesh, 7 pixel, 4 vertex), vs ~370 on main.0.1 fps, 7633.3 ms/frame (5619.9 preparing: copies 4709.1 ms 243.3 MB, textures 479.2 ms 171.1 MB; 373.9 on the GPU; 529.7 copying back 36.1 MB), 2516 draws/frame, dropped 836 without a host pipeline (287 being made) and 658 indirect. Frame time grew over the run from ~1.7 s to ~7.6 s, with copies taking most of it; peak commit 29.1 GB (23.6 GB on main).@zaidlutfi on GitHub · 2026-11-24 08:54 UTC · original
Follow-up from the original reporter, same machine (RTX 4060 Laptop, driver 32.0.16.2124, i9-12900H, Windows 11 build 26300),
TdrDelay=60,diagbuild, scripted input (VICTORY_KEYS: Enter through the menus, then W in the world).1. Latest main,
3d77d5e(includes today's merges #25, #87, #104, #111), no skip0x80070057, so today's update does not change the refusals (114 before ond2a4bae).slow host submission ms=11850 lists=25, even with the 60 s TDR. The System log showsnvlddmkmevent 153 at the same moment.2. PR #579 head
1658c84(based ond2a4bae, so without today's merges),VICTORY_SKIP_WAVE64=mesh,computeGFX10 code at ...), similar on main (333).VICTORY_CAPTUREframes: loading screens render correctly; world frames are black except for the hint.3. Latest main
3d77d5e+ PR #579 merged locally (clean merge),VICTORY_SKIP_WAVE64=mesh,computeSo on this laptop too, the faults come from the wave64 mesh/compute class: skipping it stops the removal, with or without today's merges, and running it (even on latest main with a 60 s TDR) removes the device within seconds of entering the world. Happy to test anything else on this GPU.
@notquiteog on GitHub · 2026-11-24 09:12 UTC · original
RTX 5060 Ti (desktop Blackwell):
integration/testersat92bc27bremoves all 319 compute refusals; no device removal in ~4.3 min in the worldSetup
b99f876b…(same as #5 / #71), my own copymainat58fed37(release) vs. r4tedxintegration/testersat92bc27b(diag,--features diagnostics)VICTORY_SHADER_LOOP_LIMIT=32,VICTORY_D3D12_DRED=1, cold cache (own cache/data dirs), no input1. Full-pack
victory translate <game dir> --pipelines(no title run)main58fed37integration/testers92bc27bThe parameter is incorrect.)319 matches the 321 IDXTRI and Proudnoob4 counted on #71, so on this card too the refusals look like the
WaveSize(64)programs, and the wave64 stack clears them.Top remaining translation failures on the testers tree:
a scalar memory read as data295,an address in an SGPR that is no root parameter247,a structured buffer of unknown stride123,a lane mask read as data106,an address not from a root parameter73,console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves43.2. Title run on
integration/testers92bc27bERRORlines, nonvlddmkmor Display 4101 events for the ~4 min 20 s in the world, until the window was closed (window closed: suspending the title); the run ended there, not on a fault, so this is short of the 12 min others ran.host pipeline refused: 0.shader does not translate: 120 (102 compute, 14 mesh, 4 vertex).slow host submission ms=902 lists=11; nothing slower.Caveats: one run; another GPU-heavy process (a shader precompile for a different project) was running at the same time, so the timings are pessimistic; I did not look at the image, so I can't say whether the scene was black. ~1,040 pipelines were still "being made" at the end, so the
translate --pipelineswarm-up does not seem to pre-fill the library the title run loads from (loaded=59at shutdown).Happy to run a longer capped run or
VICTORY_SKIP_WAVE64=mesh,computeon this card if useful.@zaidlutfi on GitHub · 2026-11-24 09:27 UTC · original
integration/testers at
92bc27bon the same RTX 4060 Laptop (16 GB RAM, driver 32.0.16.2124), diag build,VICTORY_SHADER_LOOP_LIMIT=32,VICTORY_D3D12_DRED=1,TdrDelay=60, scripted input, no skip switch.nvlddmkmevents.0.2 fps, 6103.8 ms/frame (3721.4 preparing: copies 799.2 ms 133.3 MB, textures 439.6 ms 265.9 MB; 583.0 on the GPU; 1677.4 copying back 37.5 MB), 4934 draws/frame, dropped 5226 without a host pipeline (339 being made) and 1271 indirectVICTORY_CAPTURE): not black anymore. Loading art renders correctly; after world entry, a near-white fill with grey bars at top and bottom, then a flat grey-blue fill with black letterbox bars. No recognisable scene, matching ShyVortex's description.memory allocation of 52428800 bytes failed. Windows' resource-exhaustion event (2004) at that moment names victory.exe at 27.4 GB committed. A second run with a 24 GB page file (39.7 GB commit limit) also ran out, with victory.exe at 26.4 GB.So on a 16 GB laptop this tree needs a large page file; for comparison, ShyVortex logged a 29.1 GB peak commit. I will retry with a 32 GB page file.
@notquiteog on GitHub · 2026-11-24 09:33 UTC · original
Follow-up to my comment above: a full 12-minute capped run of
integration/testersat92bc27bon the same RTX 5060 Ti (desktop, driver 32.0.16.2114), this time with the default Windows TDR (noTdrDelaychange), and with nothing else using the GPU.Same diag build,
VICTORY_SHADER_LOOP_LIMIT=32,VICTORY_D3D12_DRED=1, no input, warm cache from the earlier run (host pipeline library saved … made=1009 loaded=1102).ERRORlines, nonvlddmkmor Display 4101 events. First world frame at ~44 s, so about 11 min in the world. The run ended at my 12-min cap.host pipeline refused: 0.shader does not translate: 179 (147 compute, 21 mesh, 7 pixel, 4 vertex).So on this card the frame is ~95% CPU-side preparation (mostly title-memory copies, ~350 MB/frame), the GPU itself does ~100 ms. That matches the copy cost measured on #400.
As before, I didn't look at the picture, so I can't say whether the scene was black.
@MD5Visual on GitHub · 2026-11-24 09:38 UTC · original
3090 / 24 GB data point on
8e79c80, which I think takes VRAM pressure out of the cause for this hang.Machine Windows 11 Pro 26200, Ryzen 7 5800X3D, 64 GB, RTX 3090 24 GB, driver 32.0.16.1088 (610.88). Diag build (
cargo build --profile diag --features diagnostics),VICTORY_D3D12_DRED=1, no debug layer. Title 1.0.2.1, blake3b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93.(My build has one local-only patch: the host device is created on the adapter whose description matches a name, because
D3D12CreateDevice(None)picks the display adapter, a 2070 SUPER on this box. Nothing else is patched.)Menus 30.0 fps, 33.3 ms/frame, 0 draws dropped, 0 refusals, 0 device loss.
World (first cutscene) Title card and audio, no 3D. From the first world frames: 0.6-1.3 fps (783-1766 ms/frame), 121-5548 draws/frame, 1283-3034 dropped without a host pipeline, 2223-3443 indirect. 33 slow submissions, all 273-857 ms until the last one.
117 compute pipelines refused, all
0x80070057; first three are13dfdd3b1136e407,88994c3496045f51,02384a60fda6f2d0- the same three you list. 428 shaders do not translate.Device removed
0x887A0006188 s in, 13 s after the last present, immediately afterslow host submission ms=11225 lists=1: one compute-only list of 15 pipelines (d3e44e754b3eb6aaand269b802f878c24e1among them), 327 commands, stopped at command 147 (op 6) between its barriers.GetDeviceRemovedReasonreported the same 0x887A0006 text, DRED gave no page fault.The breadcrumb for that list repeats one thing on every dispatch:
u4=0xa67100 [heap 340872: null]- descriptor index 10,908,160 resolved as null in a 340,872-entry heap. The tables recorded next to those dispatches are:The 182,452,224-byte SRV is the same size as the one in #496.
Startup still logs
host view heap capped at 1000000 error=0x80070057 count=1245184, and the two 2560x1440no host texturetargets are format 86 (flags 5) and format 115 (flags 1) - the #89 formats.So on 24 GB with 20+ GB free the world still hangs, and the list that kills it is compute-only, not mesh. Whether the null descriptor past the heap is a symptom of the refusal storm or the actual fault I can't tell from here; the log is 7,060 lines and I can paste any part of it.
428 untranslated, by reason: select on an untracked mask 91, lane mask holding lanes elsewhere read as data 77, descriptor read only as data 58, structured buffer of unknown stride 46, address in an SGPR that is no root parameter 35, scalar memory read as data 25, address not from a root parameter 17, descriptor neither loaded nor built 16, 64-bit image atomic 13, lane mask read as data 9, address from a phi 8, image_gather4_l 7, descriptor's address or format read as data 6, lane-mask join of an untracked mask 4, image_sample_d_cl 3, packed input half no element holds 3, first half of an interpolation 2, barycentrics read directly 2, LDS write of bytes or halves 2, rest 1 each.
@undeadhuman37 on GitHub · 2026-11-24 10:05 UTC · original
Same on an RTX 4070 SUPER (driver 621.01, i7-14700K, Windows 11 26200). Tested on
58fed37and8e79c80.host pipeline refused error=The parameter is incorrect. (0x80070057), about 410-430shader does not translate; its pipelines' draws are dropped.format: 86(B5G5R5A1_UNORM) withflags: 5(RT + UAV)format: 115(B4G4R4A4_UNORM) withflags: 1(RT)device removed ... no breadcrumbs (0x887A0004)/0x887A0006. A 5 s submission is past the 2 s TDR, so this looks like a hang, not an invalid command.Happy to run a diagnostics build (
VICTORY_D3D12_DEBUG=1) or test a branch on this card.(Drafted with AI help. No game files or game-content logs attached.)
@zaidlutfi on GitHub · 2026-11-24 10:18 UTC · original
Two more runs on the same RTX 4060 Laptop (8 GB VRAM, 16 GB RAM, driver 32.0.16.2124), diag build,
VICTORY_D3D12_DRED=1,TdrDelay=60.1. integration/testers
92bc27bwith a much larger page filePage file on C raised to 50 GB (commit limit 64.5 GB, about 50 GB free at launch), so host commit is no longer the limit. The run still ended about 10 s after world entry, now with:
0.4 fps, 673-1089 draws/frame just before. In the run below, with wave64 programs skipped, dedicated GPU memory already sits at 7.0 of 8 GB, so my guess is that the full tree runs out of VRAM on an 8 GB card. I did not log GPU memory in this run itself, so that is not verified.
2. Latest main
8e79c80+ #579 merged locally (clean merge),VICTORY_SKIP_WAVE64=mesh,computewindow closed: suspending the title).So on an 8 GB laptop card, the skip build is stable on current main, and the full wave64 tree appears to need more GPU memory than the card has.
@PandeoF1 on GitHub · 2026-11-24 12:07 UTC · original
Same result on an RTX 5070 desktop (Blackwell, 32-lane waves), unmodified
mainffe310e, release build, title 1.0.2.1, Series X mode.host pipeline refused ... (0x80070057)on many compute pipelines (user_data/samplers vary), each right aftershader translated. This matches the wave64-on-32-lane cause described above; I did not run the debug layer, so I have not seen the message myself.no host texturefor 2560x1440 formats 86 and 115, andhost view heap capped at 1000000 (count=1245184)as in #747. Laterno free dynamic descriptor slots: a table is not madewith drop counts doubling up to 65536.slow host submission ms=4830 lists=21, thendevice removed (0x887A0006), breadcrumbs0x887A0004ms=4855 lists=30, same errorms=5334 lists=26The last submission before the removal contains mostly compute pipelines plus the mesh pipelines of the world.
Not tried yet: #233/#439, #579
VICTORY_SKIP_WAVE64, or DRED. I can run theintegration/testerstree withVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1on this card if that helps, and report the refusal count and the command the list stops at.AI-assisted (Claude Code); counts come from my own logs, nothing from the title is attached.
@PandeoF1 on GitHub · 2026-11-24 12:54 UTC · original
Follow-up on my RTX 5070 desktop report above: I ran the tester tree, and it removes the device removal here.
Tree:
r4tedx/VIctoryintegration/testersat92bc27b, diag build,VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1,VICTORY_SHADER_LOOP_LIMIT=32. Same machine and title as before (RTX 5070, Windows 11 26200, 1.0.2.1). NoVICTORY_SKIP_WAVE64.mainffe310eon the same card: dozens of0x80070057). Consistent with the wave64 stack removing the E_INVALIDARG refusals.ERRORline, no DRED output. Onmainthe same card was removed 2-4 minutes in, three times.no free dynamic descriptor slotsmessages any more.no host texturewarnings (formats 86/115) are still there as far as I know; I did not check this run for them.So on a desktop 5070 this tree matches the other NVIDIA reports on #71 (hang gone, scene black). I have not tried it with the SKIP_WAVE64 switch or measured whether the black picture is the dropped programs; happy to run something specific.
AI-assisted (Claude Code); counts from my own logs, nothing from the title attached.
@radial-fx on GitHub · 2026-11-24 14:05 UTC · original
One more data point for this, from Turing: RTX 2080 SUPER (8 GB), driver 32.0.16.1742, Windows 11, 16 GB RAM, on
mainatd2a4bae.Refusals. Running
victory translate <shader archive> --pipelinesoffline, every vertex, pixel and mesh pipeline is created. 321 of 1693 emitted compute programs are refused with0x80070057, and they're the ones the translator givesWaveSize(64)(checked withdxc -dumpbinon the cached DXIL). In-game, 128 were refused in a 10-minute run,13dfdd3b1136e407among them, same as above.Hang. The release build removed the device (
0x887A0007, DWM exited) around the main menu → world load. A diag build withVICTORY_D3D12_DRED=1andVICTORY_SHADER_LOOP_LIMIT=4096reached the first mission's title card and ran 10 minutes with no device removal, at 0.1–0.4 fps. That isn't a clean A/B, because the earlier run had less memory.Memory. This may belong in its own issue. In the world, the process reached 23.6 GB private. With 16 GB of RAM, most of each frame went to
preparing(up to 321 MB of copies in 3.1 s), and with a system-managed page file the run died withmemory allocation of N bytes failedand0x8007000Eon texture creation.I can test #233 (or #578 / #189) on this card if that helps decide between them.
@Luminous418 on GitHub · 2026-11-24 16:07 UTC · original
Data point: 32-lane NVIDIA laptop — the refusals and the world hang separate cleanly; after #483+#493 the wall is VRAM, and #189 brings the hang back
Adding a machine to #468 / #817 / #778. Short version: on this host the world hang and the
refused compute pipelines are two different problems, and the runs separate them.
Setup
WaveLaneCountMin = Max = 32), 16 GB RAM, 8 GB VRAM.b99f876b…).cargo build --profile diag -p victory --features diagnostics;TdrDelayandTdrDdiDelay= 60, as #468 suggests.c7a5f49; alsomainffe310e+ #483 (65a161d) + #493 (c48b240), andthen + #189 (
c047885).Runs
mainc7a5f49,LOOP_LIMIT=64DEVICE_HUNG, 17 lists, ~100 smainffe310e+ #483 + #493E_OUTOFMEMORY+ PnP stop, 189.9 sWave32mode on this host)DEVICE_HUNG, 121 sAll three pass the menus at 30 fps and die entering the world.
1. #483 + #493 stop the TDR — and expose the memory wall
With both PRs merged,
0x887A0006does not appear once in 190 s (the first run on thismachine without it). The failure moves to:
and the copy statistics explain the pressure:
12 314 refreshes and 10 531 MB refreshed per frame. That is the shadow-copy path, not
the GPU.
uma.rsin XCL (ID3D12Device3::OpenExistingHeapFromAddress) is the approach thatwould remove it rather than optimise it; on 8 GB / 16 GB this is the difference between
"slow" and "dead at 3 minutes".
2. #189 removes every refusal — and the hang comes back
In
Wave64Mode::Wave32, the 118 refusals and the 134wave lane count of 64warnings go to0: the emulation does compile and create. Then:
Breadcrumbs are present, and there is no
page fault at,inside freedorpast its endanywhere: it is a hang, not a bad access. That matches the ~1.2 s dispatches we had seen on
8bbcbda6008eaa37before the emulation existed.3. Why, and what would fix it
XCL's
docs/wave64-on-wave32.mdstates the constraint that matters here:#189 uses
barrier(1 | 8)in all four exchange sites (exchange_two_halves,exchange_64,emulated_readfirstlane, the lowest-active-laneatomicMin) regardless of group size. Ourworld's dispatches are 1024–4096 threads, i.e. 16–64 console waves per group. A group barrier
then waits for waves that may be at a different point of the program — a deadlock with no page
fault, which is exactly the signature above.
The shape of the fix, per that document, for groups with more than one console wave: fence
without sync, an arrival counter per (virtual wave, half) in LDS, a bounded wait that gives
up into half-local values instead of hanging, and double-buffered slots by the parity of the
exchange number. Until that lands, #578's refusal is the safe default, and it is what keeps
this machine from removing the device.
I implemented the third piece first (console thread ids claimed from a group-wide counter
instead of
waveReadLaneFirst(flat) & !31 + lane, which XCL documents as wrong on NVIDIA for3-D groups) and it is not the hang: with the claim in place the 10
EmulateGPU tests inwave64_tests.rsfail on output comparison, because the permutation changes which host threadproduces which index. It needs to land together with the exchange, not before it.
4. One correction for anyone following the loop-limit trail
Shader
8bbcbda6008eaa37(compute, ray-march, 21 samplers) was taking 805–1206 ms per indirectdispatch. Its loop is not mistranslated: the emitted DXIL carries the console's own
icmp sgt i32 %i, 9999cap, and the select chain can only turn the continue mask from true tofalse, so the loop is guaranteed to leave by the cap.
VICTORY_SHADER_LOOP_LIMIT=64makes itlook 150× faster by truncating legitimate work. When the scene upstream is correct (the
emulation builds the data those passes need), the march converges early and the cost goes away
on its own.
Smaller things we carry locally, if useful
indirect.rs:bound()asserted the argument buffer's before state asUNORDERED_ACCESSalthough nothing tracks buffer states; declaring it from
COMMONand leaving it inCOMMONin
done()took the debug layer's state warnings from many to one. (The one left is theCOMMON … assumed at first usecase, which needs per-buffer state tracking.)host.rs: aClose()failure only reports "a command recorded into it was invalid"; theinfo queue's messages name the command, so draining it before giving up is worth two lines.
pipeline.rs: a diagnosticsVICTORY_DUMP_SHADER=<hash>that writes a container out, whichis how
8bbcbda6008eaa37was turned back into code withvictory shader-info --disasm.Happy to run anything you want on this host; logs for all runs are kept.
@Marvisak on GitHub · 2026-11-25 01:47 UTC · original
Automated triage for the maintainers.
Thanks, this is a complete run report (RTX 4060 Laptop, driver 32.0.16.2124, Windows 11 26300,
d2a4bae, then3d77d5e). The follow-ups from other laptop and desktop NVIDIA cards make it more useful.The failure (compute pipelines refused with
0x80070057on a 32-lane NVIDIA host, black world, then the device removed in the world) is discussed in #71, the oldest complete report of it. Other reports of it: #817, #1107, #1323.On
main, the emitter still declares the console's wave size for some compute programs (crates/victory-shader/src/emit/shader.rs,WaveSize), and the README still says some compute programs need a GPU with 64-lane waves. So nothing merged since this report fixes it.Open PRs that address it:
The runs here suggest the refusals and the device removal are separate problems. With
VICTORY_SKIP_WAVE64=mesh,compute, or on the tester tree, there was no removal but the scene stayed black. On 8 GB / 16 GB machines, memory then becomes the limit (see #471).Once one of these PRs is merged, please retry on current
mainand post the refused-pipeline count and a world frame's summary line, as you did here.Generated by Claude Code