VICTORY_WAVE_WIDE=1 makes compute PSOs the pipeline library refuses to store (0x80070057), and the rebuild loop ends in device removal (0x887A0004) #70

Open
opened 2026-11-27 07:16:27 +00:00 by github-bot · 5 comments
Owner

@⁠Razen114514 on GitHub · 2026-11-27 07:14 UTC · original

VICTORY_WAVE_WIDE=1 makes 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

  • RTX 5060 8 GB (Blackwell, 32-lane waves), driver 32.0.16.2124, 32 GB RAM, Windows 11 26300
  • 3277b15, built --profile diag --features diagnostics and --release
  • Launcher settings: Play-VIctory.cmd's defaults in full (all 24), plus
    VICTORY_TEXTURE_NO_WAIT=0; the only variable below is VICTORY_WAVE_WIDE
  • --console series-s, separate cache directory per run

The two runs

VICTORY_WAVE_WIDE the library did not load it does not translate device removal longest run
1 3 (in the last 6 s before death) 1 yes, at 2 min 57 s —
0 0 9 none 5 min 24 s and still going

What the log says, verbatim, before the device goes

pipeline library: made [compute 9f1f02d6a35cd506] in 24.3 ms
  (the library did not load it: 参数错误。 (0x80070057))
pipeline library: saved 114525554 bytes, renamed over the library's file
pipeline library: made [compute caf96a3229145fa6] in 550.6 ms
  (the library did not load it: 参数错误。 (0x80070057))
pipeline library: made [compute 9662515112a3f961] in 759.6 ms
  (the library did not load it: 参数错误。 (0x80070057))
   …5.4 s later…
ERROR victory_gpu::host: host GPU device removed after 19 submissions sent ahead
  (VICTORY_RELAY=1) of 162 lists; no breadcrumbs
  (指定的设备接口或功能级别在此系统上不受支持。 (0x887A0004))

The order matters and it is consistent across runs:

  1. the compute PSO is created without error — made [compute …] in 24.3 ms;
  2. the pipeline library refuses to store it — 0x80070057, every time;
  3. so it is rebuilt on the next submission (24 ms, then 550 ms, then 759 ms —
    the times grow as the library file grows);
  4. the library file is rewritten each time (114 525 554 bytes for the cache-coolfox
    run, 31 858 762 for another);
  5. then the device is removed with 0x887A0004, not 0x887A0005.

0x887A0004 is DXGI_ERROR_UNSUPPORTED, which is why DRED reports no breadcrumbs —
there is no hung submission to walk. This build was made --features diagnostics with
VICTORY_D3D12_DRED=1 and still reported none, which fits: nothing hung, something was
refused.

Why I think it is the wave-width lowering and not the library

0x80070057 is the same code the wave64-on-32-lane refusals produce elsewhere
(CreateComputePipelineState, marvisak/VIctory#2220). With WAVE_WIDE=1 the extra
programs 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, 9662515112a3f961 are the
ones named in the failing run) I can check it with dxc -dumpbin on this machine.

Why it matters beyond the crash

VICTORY_WAVE_WIDE is the switch that makes the character and vegetation programs
compile 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.

**@⁠Razen114514** on GitHub · 2026-11-27 07:14 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/70) ## `VICTORY_WAVE_WIDE=1` makes 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 - RTX 5060 **8 GB** (Blackwell, 32-lane waves), driver 32.0.16.2124, 32 GB RAM, Windows 11 26300 - `3277b15`, built `--profile diag --features diagnostics` and `--release` - Launcher settings: `Play-VIctory.cmd`'s defaults in full (all 24), plus `VICTORY_TEXTURE_NO_WAIT=0`; the only variable below is `VICTORY_WAVE_WIDE` - `--console series-s`, separate cache directory per run ### The two runs | `VICTORY_WAVE_WIDE` | `the library did not load it` | `does not translate` | device removal | longest run | | --- | ---: | ---: | --- | --- | | **1** | **3** (in the last 6 s before death) | 1 | **yes, at 2 min 57 s** | — | | **0** | **0** | 9 | **none** | **5 min 24 s and still going** | ### What the log says, verbatim, before the device goes ``` pipeline library: made [compute 9f1f02d6a35cd506] in 24.3 ms (the library did not load it: 参数错误。 (0x80070057)) pipeline library: saved 114525554 bytes, renamed over the library's file pipeline library: made [compute caf96a3229145fa6] in 550.6 ms (the library did not load it: 参数错误。 (0x80070057)) pipeline library: made [compute 9662515112a3f961] in 759.6 ms (the library did not load it: 参数错误。 (0x80070057)) …5.4 s later… ERROR victory_gpu::host: host GPU device removed after 19 submissions sent ahead (VICTORY_RELAY=1) of 162 lists; no breadcrumbs (指定的设备接口或功能级别在此系统上不受支持。 (0x887A0004)) ``` The order matters and it is consistent across runs: 1. the compute PSO **is created without error** — `made [compute …] in 24.3 ms`; 2. the **pipeline library refuses to store it** — `0x80070057`, every time; 3. so it is **rebuilt on the next submission** (24 ms, then 550 ms, then 759 ms — the times grow as the library file grows); 4. the library file is **rewritten each time** (114 525 554 bytes for the cache-coolfox run, 31 858 762 for another); 5. then the device is removed with `0x887A0004`, not `0x887A0005`. `0x887A0004` is `DXGI_ERROR_UNSUPPORTED`, which is why DRED reports `no breadcrumbs` — there is no hung submission to walk. This build was made `--features diagnostics` with `VICTORY_D3D12_DRED=1` and still reported none, which fits: nothing hung, something was refused. ### Why I think it is the wave-width lowering and not the library `0x80070057` is the same code the wave64-on-32-lane refusals produce elsewhere (`CreateComputePipelineState`, `marvisak/VIctory#2220`). With `WAVE_WIDE=1` the extra programs 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`, `9662515112a3f961` are the ones named in the failing run) I can check it with `dxc -dumpbin` on this machine. ### Why it matters beyond the crash `VICTORY_WAVE_WIDE` is the switch that makes the character and vegetation programs compile 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 07:16:28 +00:00
Author
Owner

@⁠Hasusmogus on GitHub · 2026-11-27 08:41 UTC · original

I looked at the library side. The 0x80070057 there isn't a refusal. It's E_INVALIDARG, which is how LoadComputePipeline answers 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 to not in it yet and 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.rs notes earlier runs lost the card that way), not from the library. VICTORY_WAVE_WIDE_ONLY=<hash>,<hash>,… (16-hex shader hashes, with VICTORY_WAVE_WIDE unset) 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.

**@⁠Hasusmogus** on GitHub · 2026-11-27 08:41 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/70#issuecomment-7213814956) I looked at the library side. The `0x80070057` there isn't a refusal. It's `E_INVALIDARG`, which is how `LoadComputePipeline` answers 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 to `not in it yet` and 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.rs` notes earlier runs lost the card that way), not from the library. `VICTORY_WAVE_WIDE_ONLY=<hash>,<hash>,…` (16-hex shader hashes, with `VICTORY_WAVE_WIDE` unset) 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.*
Author
Owner

@⁠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 to CreateComputePipelineState and stores it — now clarified as not in it yet in 5fe14b16 / PR #76, which also logs any refused StorePipeline). The actual fatal error is 0x887A0004 (DXGI_ERROR_UNSUPPORTED) 5.4s later when dispatching one of the VICTORY_WAVE_WIDE=1 compute PSOs.

Two major Wave64-on-Wave32 fixes also landed on main:

  • 963f7195: removed Wave32 lowering for transmission volumetrics (#50)
  • 9a4aa8d3: fixed Wave64 non-EXEC s_cbranch_scc0/1 branching per-lane instead of wave-wide (#66)

Could you retest on main (with a fresh cache) or bisect with VICTORY_WAVE_WIDE_ONLY=<hash>,... as suggested above if 0x887A0004 still reproduces?

**@⁠DoubleGhosty** on GitHub · 2026-11-27 08:44 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/70#issuecomment-7213875284) · 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 to `CreateComputePipelineState` and stores it — now clarified as `not in it yet` in `5fe14b16` / PR #76, which also logs any refused `StorePipeline`). The actual fatal error is `0x887A0004` (`DXGI_ERROR_UNSUPPORTED`) 5.4s later when dispatching one of the `VICTORY_WAVE_WIDE=1` compute PSOs. Two major Wave64-on-Wave32 fixes also landed on `main`: - `963f7195`: removed Wave32 lowering for transmission volumetrics (#50) - `9a4aa8d3`: fixed Wave64 non-EXEC `s_cbranch_scc0/1` branching per-lane instead of wave-wide (#66) Could you retest on `main` (with a fresh cache) or bisect with `VICTORY_WAVE_WIDE_ONLY=<hash>,...` as suggested above if `0x887A0004` still reproduces?
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 08:58 UTC · original

Correction: the 0x80070057 lines are normal, and the wave-wide form never succeeds here at all

Two 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 LoadComputePipeline answering a
name the library does not hold yet, so it appears the first time any pipeline is
made, and CreateComputePipelineState follows by design. The three hashes I quoted are
three 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 StorePipeline was never the suspect. Please
read the rest of the report as: the device goes away, and the wave-wide form is on.

2. VICTORY_WAVE_WIDE_ONLY bisection cannot work on this build — the form never succeeds

The suggestion was to bisect with VICTORY_WAVE_WIDE_ONLY=<hash> so only some programs
take the wave-wide path. I ran the build with VICTORY_WAVE_WHY=1 to get the list of
programs to bisect, and there is nothing to bisect:

WAVE64-RETRY without skips: wave Some(64)
WAVE64-RETRY local waves: not the allocation idiom at 0x21c: a value that depends on the wave on some paths only
WAVE64-RETRY local waves: not the allocation idiom at 0x274: a count or sum over the lanes below used without a reserved base
WAVE64-RETRY wave-wide branches: GFX10 code at 0x0: wave-wide branches in a thread group of several console waves is not supported

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=1 does not "enable the wave64
programs". 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=1 should be read as a different failure path, not as a working
path 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_WIDE does not translate device removal longest run
1 1 yes, 2 min 29 s – 2 min 57 s —
0 9 none 5 min 24 s

And, ruling out everything I tried in between (each a full run, same scene):

tried device removal at
baseline WAVE_WIDE=1 2 min 57 s
LIBRARY_MAP=0 + LIBRARY_HANDLE=0 2 min 40 s
no StorePipeline at all (local patch) 2 min 29 s
SKIP_PIPELINES on the three computes that appeared 2 min 39 s
half render scale (960×540 upscaled) 2 min 34 s
empty pipeline library (forced rebuild) 2 min 32 s

The 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:

pipeline library: loaded [mesh 480d53fc48107a50, pixel f41ec9d9437c021c] in 6.8 / 25.2 ms
   … about 5.5 s …
host GPU device removed … (0x887A0006 per the DRED read; 0x887A0004 is what the
breadcrumb query itself answers)

That pair is a graphics pipeline, so SKIP_PIPELINES can never exclude it — it
matches 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_PIPELINES does for compute? If not, the cheapest next step from my side is to
make the widen() limitation itself visible at translation time — one line naming the
hash 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 instead
of 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 08:58 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/70#issuecomment-7214135614) ## Correction: the `0x80070057` lines are normal, and the wave-wide form never succeeds here at all Two 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 `LoadComputePipeline` answering a name the library does not hold yet, so it appears the **first time any** pipeline is made, and `CreateComputePipelineState` follows by design. The three hashes I quoted are three 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 `StorePipeline` was never the suspect. Please read the rest of the report as: the device goes away, and the wave-wide form is on. ### 2. `VICTORY_WAVE_WIDE_ONLY` bisection cannot work on this build — the form never succeeds The suggestion was to bisect with `VICTORY_WAVE_WIDE_ONLY=<hash>` so only some programs take the wave-wide path. I ran the build with `VICTORY_WAVE_WHY=1` to get the list of programs to bisect, and there is nothing to bisect: ``` WAVE64-RETRY without skips: wave Some(64) WAVE64-RETRY local waves: not the allocation idiom at 0x21c: a value that depends on the wave on some paths only WAVE64-RETRY local waves: not the allocation idiom at 0x274: a count or sum over the lanes below used without a reserved base WAVE64-RETRY wave-wide branches: GFX10 code at 0x0: wave-wide branches in a thread group of several console waves is not supported ``` **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=1` does not "enable the wave64 programs". 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=1` should be read as a different failure path, not as a working path 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_WIDE` | `does not translate` | device removal | longest run | | --- | ---: | --- | --- | | 1 | 1 | yes, 2 min 29 s – 2 min 57 s | — | | 0 | 9 | **none** | **5 min 24 s** | And, ruling out everything I tried in between (each a full run, same scene): | tried | device removal at | | --- | --- | | baseline `WAVE_WIDE=1` | 2 min 57 s | | `LIBRARY_MAP=0` + `LIBRARY_HANDLE=0` | 2 min 40 s | | no `StorePipeline` at all (local patch) | 2 min 29 s | | `SKIP_PIPELINES` on the three computes that appeared | 2 min 39 s | | half render scale (960×540 upscaled) | 2 min 34 s | | empty pipeline library (forced rebuild) | 2 min 32 s | The 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: ``` pipeline library: loaded [mesh 480d53fc48107a50, pixel f41ec9d9437c021c] in 6.8 / 25.2 ms … about 5.5 s … host GPU device removed … (0x887A0006 per the DRED read; 0x887A0004 is what the breadcrumb query itself answers) ``` That pair is a **graphics** pipeline, so `SKIP_PIPELINES` can never exclude it — it matches 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_PIPELINES` does for compute? If not, the cheapest next step from my side is to make the `widen()` limitation itself visible at translation time — one line naming the hash 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 instead of guessed. I can run either on this card and report back. Thanks for the corrections; both saved me from chasing the library further.
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 09:14 UTC · original

This reproduces the runs 121-124 loss your own comment in emit/mod.rs describes

Reading emit/mod.rs around the VICTORY_WAVE_WIDE switch, the comment says:

Off unless asked for (VICTORY_WAVE_WIDE=1), for a console wave run as two host
waves: this form puts group barriers inside branches and loops, and runs 121-124 lost
the card in a submission of two programs that had just moved to it
(ptfx_CS_lightAtlas_Sprite and _Trail).

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.cmd defaults plus VICTORY_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 I
    stopped it.

The loss is DXGI_ERROR_DEVICE_HUNG (0x887A0006); the 0x887A0004 I quoted earlier
is 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

tried card lost at
baseline (WAVE_WIDE=1) 2 min 57 s
LIBRARY_MAP=0 + LIBRARY_HANDLE=0 2 min 40 s
no StorePipeline at all (local patch) 2 min 29 s
SKIP_PIPELINES on the three computes that appeared in the log 2 min 39 s
half render scale (960×540 upscaled to 1080p) 2 min 34 s
empty pipeline library, forced rebuild 2 min 32 s
fresh shader cache, WAVE_WIDE=1 1 unresolved program, same loss

The 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_ONLY

VICTORY_WAVE_WHY=1 on this build lists what each attempt did, and none of them
succeeds:

WAVE64-RETRY without skips: wave Some(64)
WAVE64-RETRY local waves: not the allocation idiom at 0x21c: a value that depends on the wave on some paths only
WAVE64-RETRY local waves: not the allocation idiom at 0x274: a count or sum over the lanes below used without a reserved base
WAVE64-RETRY wave-wide branches: GFX10 code at 0x0: wave-wide branches in a thread group of several console waves is not supported

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=1 changes the picture without
translating 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:

pipeline library: loaded [mesh 480d53fc48107a50, pixel f41ec9d9437c021c] in 6.8 / 25.2 ms
   … about 5.5 s …
host GPU device removed …

It is a graphics pipeline, so SKIP_PIPELINES cannot exclude it — that switch
matches 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-line
warning naming the hash whenever a program is refused for
wave-wide branches in a thread group of several console waves is not supported would
make 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.

**@⁠Razen114514** on GitHub · 2026-11-27 09:14 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/70#issuecomment-7214444931) ## This reproduces the runs 121-124 loss your own comment in `emit/mod.rs` describes Reading `emit/mod.rs` around the `VICTORY_WAVE_WIDE` switch, the comment says: > Off unless asked for (`VICTORY_WAVE_WIDE=1`), for a console wave run as two host > waves: this form puts group barriers inside branches and loops, and runs 121-124 lost > the card in a submission of two programs that had just moved to it > (`ptfx_CS_lightAtlas_Sprite` and `_Trail`). 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.cmd` defaults plus `VICTORY_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 I stopped it. The loss is `DXGI_ERROR_DEVICE_HUNG` (`0x887A0006`); the `0x887A0004` I quoted earlier is 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 | tried | card lost at | | --- | --- | | baseline (`WAVE_WIDE=1`) | 2 min 57 s | | `LIBRARY_MAP=0` + `LIBRARY_HANDLE=0` | 2 min 40 s | | no `StorePipeline` at all (local patch) | 2 min 29 s | | `SKIP_PIPELINES` on the three computes that appeared in the log | 2 min 39 s | | half render scale (960×540 upscaled to 1080p) | 2 min 34 s | | empty pipeline library, forced rebuild | 2 min 32 s | | fresh shader cache, `WAVE_WIDE=1` | 1 unresolved program, same loss | The 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_ONLY` `VICTORY_WAVE_WHY=1` on this build lists what each attempt did, and none of them succeeds: ``` WAVE64-RETRY without skips: wave Some(64) WAVE64-RETRY local waves: not the allocation idiom at 0x21c: a value that depends on the wave on some paths only WAVE64-RETRY local waves: not the allocation idiom at 0x274: a count or sum over the lanes below used without a reserved base WAVE64-RETRY wave-wide branches: GFX10 code at 0x0: wave-wide branches in a thread group of several console waves is not supported ``` 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=1` changes the picture without translating 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: ``` pipeline library: loaded [mesh 480d53fc48107a50, pixel f41ec9d9437c021c] in 6.8 / 25.2 ms … about 5.5 s … host GPU device removed … ``` It is a **graphics** pipeline, so `SKIP_PIPELINES` cannot exclude it — that switch matches 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-line warning naming the hash whenever a program is refused for `wave-wide branches in a thread group of several console waves is not supported` would make 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.
Author
Owner

@⁠DoubleGhosty on GitHub · 2026-11-27 10:50 UTC · original

Both of your asks are covered now:

  1. Refusing one graphics pipeline: VICTORY_SKIP_PIPELINES already does it. It matches a hash of any stage of a pipeline, not only compute (skipped_shader in crates/victory-gpu/src/pipeline.rs looks at every shader, and draws and mesh dispatches go through the same check). So VICTORY_SKIP_PIPELINES=480d53fc48107a50 (or f41ec9d9437c021c) leaves that mesh/pixel pair out. Note that every pipeline using either shader is left out, not only that pair.
  2. Naming the programs widen() refuses: since 3a7e7e71, every WAVE64-* line printed under VICTORY_WAVE_WHY=1 starts with the shader's hash, e.g. [ff6fdf23ce0b9048] WAVE64-RETRY wave-wide branches: ... several console waves is not supported. With a fresh VICTORY_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 refused StorePipeline calls are logged (not_stored in the library's save line).

**@⁠DoubleGhosty** on GitHub · 2026-11-27 10:50 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/70#issuecomment-7216377304) Both of your asks are covered now: 1. **Refusing one graphics pipeline:** `VICTORY_SKIP_PIPELINES` already does it. It matches a hash of *any* stage of a pipeline, not only compute (`skipped_shader` in `crates/victory-gpu/src/pipeline.rs` looks at every shader, and draws and mesh dispatches go through the same check). So `VICTORY_SKIP_PIPELINES=480d53fc48107a50` (or `f41ec9d9437c021c`) leaves that mesh/pixel pair out. Note that every pipeline using either shader is left out, not only that pair. 2. **Naming the programs `widen()` refuses:** since `3a7e7e71`, every `WAVE64-*` line printed under `VICTORY_WAVE_WHY=1` starts with the shader's hash, e.g. `[ff6fdf23ce0b9048] WAVE64-RETRY wave-wide branches: ... several console waves is not supported`. With a fresh `VICTORY_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 refused `StorePipeline` calls are logged (`not_stored` in the library's save line).
This discussion has been locked. Commenting is limited to contributors.
No description provided.