VICTORY_WAVE_WIDE=1 makes compute PSOs the pipeline library refuses to store (0x80070057), and the rebuild loop ends in device removal (0x887A0004) #70
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DoubleGhosty--cool_fox#70
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?
@Razen114514 on GitHub · 2026-11-27 07:14 UTC · original
VICTORY_WAVE_WIDE=1makes compute PSOs that the pipeline library refuses to store (0x80070057), and the rebuild loop ends in device removal (0x887A0004)Isolated by one variable on the same build and the same cache.
Machine
3277b15, built--profile diag --features diagnosticsand--releasePlay-VIctory.cmd's defaults in full (all 24), plusVICTORY_TEXTURE_NO_WAIT=0; the only variable below isVICTORY_WAVE_WIDE--console series-s, separate cache directory per runThe two runs
VICTORY_WAVE_WIDEthe library did not load itdoes not translateWhat the log says, verbatim, before the device goes
The order matters and it is consistent across runs:
made [compute …] in 24.3 ms;0x80070057, every time;the times grow as the library file grows);
run, 31 858 762 for another);
0x887A0004, not0x887A0005.0x887A0004isDXGI_ERROR_UNSUPPORTED, which is why DRED reportsno breadcrumbs—there is no hung submission to walk. This build was made
--features diagnosticswithVICTORY_D3D12_DRED=1and still reported none, which fits: nothing hung, something wasrefused.
Why I think it is the wave-width lowering and not the library
0x80070057is the same code the wave64-on-32-lane refusals produce elsewhere(
CreateComputePipelineState,marvisak/VIctory#2220). WithWAVE_WIDE=1the extraprograms that get built are exactly the wave64 ones — the run goes from 9 untranslated
compute programs down to 1. So the objects the library will not store are the ones the
wave-wide path emits, and with that path off there is nothing questionable to store and
nothing crashes.
I have not shown why the library refuses them: a stream it cannot serialize and a
pipeline it considers invalid look the same from here. If you can dump the DXIL of one
of those three hashes (
9f1f02d6a35cd506,caf96a3229145fa6,9662515112a3f961are theones named in the failing run) I can check it with
dxc -dumpbinon this machine.Why it matters beyond the crash
VICTORY_WAVE_WIDEis the switch that makes the character and vegetation programscompile in the first place — with it off, characters render as polygon blobs and some
vegetation is missing. So the trade here is:
=0→ stable, but the wave64 compute programs do not run;=1→ they run, and the session ends in about three minutes.That trade is the reason I would call this the most valuable single fix available on
an NVIDIA card right now.
What I can do
I have the dump and a 32-lane 8 GB card, so any candidate build is one run away, and I
can report the same four columns (
library did not load it,does not translate,device removal, run length). Say which commit to try.
@Hasusmogus on GitHub · 2026-11-27 08:41 UTC · original
I looked at the library side. The
0x80070057there isn't a refusal. It'sE_INVALIDARG, which is howLoadComputePipelineanswers a name the library doesn't hold yet, so the line is printed for every pipeline made for the first time. The three lines you quote name three different pipelines (9f1f02d6…,caf96a32…,96625159…), each made once, so there's no rebuild loop. The growing times and file sizes are new pipelines and the regular saves (every 20 s). #76 changes that line tonot in it yetand logs real store refusals, which until now were silent.So the device loss most likely comes from the wave-wide programs themselves (they put group barriers inside branches;
emit/mod.rsnotes earlier runs lost the card that way), not from the library.VICTORY_WAVE_WIDE_ONLY=<hash>,<hash>,…(16-hex shader hashes, withVICTORY_WAVE_WIDEunset) turns the wave-wide form on for those shaders only. Since you have the dump and the card, halving the set of wave64 programs that way should find the one that loses the device in a few runs. Its hash would make it something to fix.Written with AI assistance (Claude), reviewed by me.
@DoubleGhosty on GitHub · 2026-11-27 08:44 UTC · original · edited 2026-11-27 08:55 UTC
Note on the log lines:
(the library did not load it: 0x80070057)is normal the first time a newly translated PSO is looked up in the pipeline library (meaning it wasn't cached yet, so it falls back toCreateComputePipelineStateand stores it — now clarified asnot in it yetin5fe14b16/ PR #76, which also logs any refusedStorePipeline). The actual fatal error is0x887A0004(DXGI_ERROR_UNSUPPORTED) 5.4s later when dispatching one of theVICTORY_WAVE_WIDE=1compute PSOs.Two major Wave64-on-Wave32 fixes also landed on
main:963f7195: removed Wave32 lowering for transmission volumetrics (#50)9a4aa8d3: fixed Wave64 non-EXECs_cbranch_scc0/1branching per-lane instead of wave-wide (#66)Could you retest on
main(with a fresh cache) or bisect withVICTORY_WAVE_WIDE_ONLY=<hash>,...as suggested above if0x887A0004still reproduces?@Razen114514 on GitHub · 2026-11-27 08:58 UTC · original
Correction: the
0x80070057lines are normal, and the wave-wide form never succeeds here at allTwo things in the report above are wrong. Both were pointed out in the replies and one
I then confirmed myself. The measurements stay; the conclusion does not.
1.
(the library did not load it: 0x80070057)is not a refusal@Hasusmogus and @DoubleGhosty are right: that line is
LoadComputePipelineanswering aname the library does not hold yet, so it appears the first time any pipeline is
made, and
CreateComputePipelineStatefollows by design. The three hashes I quoted arethree different pipelines, each made once — there is no rebuild loop. The growing
times and the 114 MB save are new pipelines plus the regular 20-second save.
So the title of this issue, "…the pipeline library refuses to store… and the rebuild loop
ends in device removal", is wrong, and
StorePipelinewas never the suspect. Pleaseread the rest of the report as: the device goes away, and the wave-wide form is on.
2.
VICTORY_WAVE_WIDE_ONLYbisection cannot work on this build — the form never succeedsThe suggestion was to bisect with
VICTORY_WAVE_WIDE_ONLY=<hash>so only some programstake the wave-wide path. I ran the build with
VICTORY_WAVE_WHY=1to get the list ofprograms to bisect, and there is nothing to bisect:
Programs that came out of the wave-wide form with a usable wave size: zero. Every
attempt fails, and one of the failures is the very limitation named in the replies —
group barriers inside branches, in a thread group of several console waves.
That matters for the diagnosis:
VICTORY_WAVE_WIDE=1does not "enable the wave64programs". It only changes what happens to a program that has already failed, since
nothing gets through either way. So a bisection over "the wave-wide programs" has no
members, and
WAVE_WIDE=1should be read as a different failure path, not as a workingpath that exposes a bad shader.
3. What is still solid, and what it now points at
Unchanged and reproducible on an RTX 5060 8 GB:
VICTORY_WAVE_WIDEdoes not translateAnd, ruling out everything I tried in between (each a full run, same scene):
WAVE_WIDE=1LIBRARY_MAP=0+LIBRARY_HANDLE=0StorePipelineat all (local patch)SKIP_PIPELINESon the three computes that appearedThe time does not move, and the pixels are halved in one of them, so it is not the
library, not the resolution and not one of those three computes. It also always happens
in the same place: the dense-crowd scene, on the transition into it, with the last
library line before it being the same graphics pair every time:
That pair is a graphics pipeline, so
SKIP_PIPELINEScan never exclude it — itmatches compute hashes only. If the crashing program is the one this pair is made for,
the bisection that would find it is over graphics pipelines, not the eight compute ones.
What I would ask for
Is there a switch that refuses one graphics pipeline by hash, the way
SKIP_PIPELINESdoes for compute? If not, the cheapest next step from my side is tomake the
widen()limitation itself visible at translation time — one line naming thehash when a program is refused for
wave-wide branches in a thread group of several console waves is not supported— so the set of affected programs can be listed insteadof guessed. I can run either on this card and report back.
Thanks for the corrections; both saved me from chasing the library further.
@Razen114514 on GitHub · 2026-11-27 09:14 UTC · original
This reproduces the runs 121-124 loss your own comment in
emit/mod.rsdescribesReading
emit/mod.rsaround theVICTORY_WAVE_WIDEswitch, the comment says:That is the failure I have been reporting, on different hardware. So this is not a new
defect — it is the known one, and the measurements below should let you confirm the
shape rather than re-derive it.
Same signature, different card
RTX 5060 8 GB, 32-lane waves, driver 32.0.16.2124,
3277b15,Play-VIctory.cmddefaults plusVICTORY_TEXTURE_NO_WAIT=0:VICTORY_WAVE_WIDE=1→ the card is lost 2 min 29 s – 2 min 57 s into the world,every run, always in the same dense-crowd scene, always on the transition into it.
VICTORY_WAVE_WIDE=0→ 5 min 24 s with no loss and the run still going when Istopped it.
The loss is
DXGI_ERROR_DEVICE_HUNG(0x887A0006); the0x887A0004I quoted earlieris what the DRED breadcrumb query itself answers afterwards, which is why DRED reports
no breadcrumbs— nothing is hung to walk, the card is already gone.What I ruled out, each a full run on the same scene
WAVE_WIDE=1)LIBRARY_MAP=0+LIBRARY_HANDLE=0StorePipelineat all (local patch)SKIP_PIPELINESon the three computes that appeared in the logWAVE_WIDE=1The time does not move and halving the pixels does not move it, so it is not the
library, not the resolution and not one of the three compute programs named in the log.
Why I could not bisect it with
VICTORY_WAVE_WIDE_ONLYVICTORY_WAVE_WHY=1on this build lists what each attempt did, and none of themsucceeds:
Programs that came out with a usable wave size: zero. On 32-lane hardware with this
dump, the wave-wide form has no members to bisect — it is the last attempt in the chain
and every attempt fails. Which is also why
WAVE_WIDE=1changes the picture withouttranslating anything: it only changes which failure path is taken.
Where the loss happens, precisely
The last library line before the device goes is the same graphics pair each time:
It is a graphics pipeline, so
SKIP_PIPELINEScannot exclude it — that switchmatches compute hashes. If you want me to bisect the graphics side, I need a way to
refuse one graphics pipeline by hash; I will run it and report.
One thing that would help more than bisecting
Since the failure is by design (barriers in a branch), the useful artefact is the
set of programs that need
widen()on this dump, not a single culprit. A one-linewarning naming the hash whenever a program is refused for
wave-wide branches in a thread group of several console waves is not supportedwouldmake that set listable from a single run. I can do that run here and hand you the list.
Thanks for the corrections on the library — both were right, and this issue's earlier
title was wrong because of them.
@DoubleGhosty on GitHub · 2026-11-27 10:50 UTC · original
Both of your asks are covered now:
VICTORY_SKIP_PIPELINESalready does it. It matches a hash of any stage of a pipeline, not only compute (skipped_shaderincrates/victory-gpu/src/pipeline.rslooks at every shader, and draws and mesh dispatches go through the same check). SoVICTORY_SKIP_PIPELINES=480d53fc48107a50(orf41ec9d9437c021c) leaves that mesh/pixel pair out. Note that every pipeline using either shader is left out, not only that pair.widen()refuses: since3a7e7e71, everyWAVE64-*line printed underVICTORY_WAVE_WHY=1starts with the shader's hash, e.g.[ff6fdf23ce0b9048] WAVE64-RETRY wave-wide branches: ... several console waves is not supported. With a freshVICTORY_CACHE_DIR(cached translations print nothing), one run lists the whole set.Also on main since your runs: #81 translates the programs that the #66 change began refusing (
a wave-wide branch where not every lane runs), and refusedStorePipelinecalls are logged (not_storedin the library's save line).