NVIDIA RTX 4060 Laptop: world is black (114 compute pipelines refused with E_INVALIDARG), then GPU fault after ~2 min #468

Open
opened 2026-11-26 04:05:05 +00:00 by github-bot · 20 comments
Owner

@⁠zaidlutfi on GitHub · 2026-11-24 03:46 UTC · original

Setup

  • GPU: NVIDIA GeForce RTX 4060 Laptop GPU (Ada, 32-wide subgroups), driver 32.0.16.2124
  • CPU: Intel Core i9-12900H, 16 GB RAM
  • OS: Windows 11 Pro 64-bit (build 26300)
  • VIctory: commit d2a4bae (main), diag profile with --features diagnostics, VICTORY_D3D12_DRED=1
  • Title: Xbox Series package 1.0.2.1

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

WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 13dfdd3b1136e407]
WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 88994c3496045f51]
WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 02384a60fda6f2d0]

A typical frame in the world:

0.3 fps, 3403.9 ms/frame (2232.0 preparing: copies 751.7 ms 99.2 MB, textures 844.6 ms 185.7 MB; 833.2 on the GPU; 304.0 copying back 2.0 MB), 601 draws/frame, dropped 690 without a host pipeline (127 being made) and 916 indirect

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:

slow host submission ms=5773 lists=32
ERROR victory_gpu::host: host GPU device removed after a submission of 32 lists; breadcrumbs (done/count, list) [all complete ...]

Without VICTORY_D3D12_DRED, the same failure is reported as no breadcrumbs (... 0x887A0004), which
looks like an unsupported feature but is only the missing DRED data.

Setting TdrDelay=60 and TdrDdiDelay=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:

slow host submission ms=519 lists=32
ERROR victory_gpu::host: host GPU device removed after a submission of 32 lists; breadcrumbs (done/count, list) ["2/2 None", "2/2 None", ...]

The Windows System log shows nvlddmkm event 13 (graphics exception) at the same second, then event 153 (reset).

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.

**@⁠zaidlutfi** on GitHub · 2026-11-24 03:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/468) ## Setup - GPU: NVIDIA GeForce RTX 4060 Laptop GPU (Ada, 32-wide subgroups), driver 32.0.16.2124 - CPU: Intel Core i9-12900H, 16 GB RAM - OS: Windows 11 Pro 64-bit (build 26300) - VIctory: commit d2a4bae (main), `diag` profile with `--features diagnostics`, `VICTORY_D3D12_DRED=1` - Title: Xbox Series package 1.0.2.1 ## What 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: ``` WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 13dfdd3b1136e407] WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 88994c3496045f51] WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 02384a60fda6f2d0] ``` A typical frame in the world: ``` 0.3 fps, 3403.9 ms/frame (2232.0 preparing: copies 751.7 ms 99.2 MB, textures 844.6 ms 185.7 MB; 833.2 on the GPU; 304.0 copying back 2.0 MB), 601 draws/frame, dropped 690 without a host pipeline (127 being made) and 916 indirect ``` 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: ``` slow host submission ms=5773 lists=32 ERROR victory_gpu::host: host GPU device removed after a submission of 32 lists; breadcrumbs (done/count, list) [all complete ...] ``` Without `VICTORY_D3D12_DRED`, the same failure is reported as `no breadcrumbs (... 0x887A0004)`, which looks like an unsupported feature but is only the missing DRED data. Setting `TdrDelay=60` and `TdrDdiDelay=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: ``` slow host submission ms=519 lists=32 ERROR victory_gpu::host: host GPU device removed after a submission of 32 lists; breadcrumbs (done/count, list) ["2/2 None", "2/2 None", ...] ``` The Windows System log shows `nvlddmkm` event 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:05:05 +00:00
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 04:29 UTC · original

Your guess in section 1 is right: 0x80070057 on 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:

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.
  • #439's head e49302a, for the full wave64 stack alone.

The numbers that help: the count of host pipeline refused lines 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 04:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7122074390) Your guess in section 1 is right: `0x80070057` on 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: - #223 + #233 run such programs on 32-lane hosts. On an RTX 3080 the refusals went [from 103 to 1](https://git.gtahub.st/github/Marvisak--VIctory/pulls/233). - With #320 and #439 on top, on an RTX 5070 Ti: no pipeline refused, and [70 of the 119 programs refused on `main` run](https://git.gtahub.st/github/Marvisak--VIctory/pulls/439); the rest stop in translation with a named reason. Nothing that ran on `main` stopped. 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](https://git.gtahub.st/github/Marvisak--VIctory/issues/293)): #223 + #233 together with the buffer-state tracker and the descriptor fixes. - #439's head `e49302a`, for the full wave64 stack alone. The numbers that help: the count of `host pipeline refused` lines 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.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 05:51 UTC · original

An update, since three things have changed for this report.

  • Your 114 refusals are reproduced without the title. QemmHD shows on an RTX 4070 SUPER that a console wave64 compute program emitted for any wave size declares WaveSize(64) and gets exactly your E_INVALIDARG. Emitted for the host, as #223 + #233 do, it declares WaveSize(32), the pipeline is created and the result is exact.
  • There is a lead on the fault after about 2 minutes. With wave64 mesh and compute programs skipped, the device was not removed in 6 min 48 s on an RTX 5090 (report, #578), in over 10 minutes on an RTX 5070 Ti under Linux (report) and in 900 s on an RTX 4080 (report). One run each. In the two reports that say, the scene is still black, so this separates the hang from the black picture and fixes neither. The RTX 5090 report also says #233's console flow neither causes nor cures the hang, so my suggestion above to try the wave64 stack stands for the refusals only.
  • A switch you can try on the 4060: #579 adds VICTORY_SKIP_WAVE64=mesh,compute to 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_OUTOFMEMORY refusal 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.

**@⁠r4tedx** on GitHub · 2026-11-24 05:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7123336819) An update, since three things have changed for this report. - **Your 114 refusals are reproduced without the title.** [QemmHD shows on an RTX 4070 SUPER](https://git.gtahub.st/github/Marvisak--VIctory/pulls/233) that a console wave64 compute program emitted for any wave size declares `WaveSize(64)` and gets exactly your `E_INVALIDARG`. Emitted for the host, as #223 + #233 do, it declares `WaveSize(32)`, the pipeline is created and the result is exact. - **There is a lead on the fault after about 2 minutes.** With wave64 mesh and compute programs skipped, the device was not removed in 6 min 48 s on an RTX 5090 ([report](https://git.gtahub.st/github/Marvisak--VIctory/pulls/233), #578), in over 10 minutes on an RTX 5070 Ti under Linux ([report](https://git.gtahub.st/github/Marvisak--VIctory/issues/71)) and in 900 s on an RTX 4080 ([report](https://git.gtahub.st/github/Marvisak--VIctory/issues/71)). One run each. In the two reports that say, the scene is still black, so this separates the hang from the black picture and fixes neither. The RTX 5090 report also says #233's console flow neither causes nor cures the hang, so my suggestion above to try the wave64 stack stands for the refusals only. - **A switch you can try on the 4060:** #579 adds `VICTORY_SKIP_WAVE64=mesh,compute` to 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](https://git.gtahub.st/github/Marvisak--VIctory/pulls/233) where refusals went from 103 to 1 also logged exceptions in the driver's shader compiler and one `E_OUTOFMEMORY` refusal 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.
Author
Owner

@⁠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-30
lists). 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.

**@⁠bai557** on GitHub · 2026-11-24 07:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7125083036) **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-30 lists). 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.
Author
Owner

@⁠slint6614-dev on GitHub · 2026-11-24 08:09 UTC · original

For comparison, on AMD no compute pipeline is refused: victory translate --pipelines over the full retail shader pack (26,503 containers, main 1f858b0) 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.

**@⁠slint6614-dev** on GitHub · 2026-11-24 08:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7125794083) For comparison, on AMD no compute pipeline is refused: `victory translate --pipelines` over the full retail shader pack (26,503 containers, main 1f858b0) 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.
Author
Owner

@⁠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.

**@⁠ShyVortex** on GitHub · 2026-11-24 08:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7125906788) 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.
Author
Owner

@⁠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:

  1. The tester tree integration/testers at 2b1a569, 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.
  2. If it still hangs, the same build with 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 refused lines 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.

**@⁠r4tedx** on GitHub · 2026-11-24 08:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7126205080) @⁠ShyVortex thank you, and yes please. A laptop with the same three hashes is useful. Two runs would say the most: 1. **The tester tree** [`integration/testers`](https://github.com/r4tedx/VIctory/tree/integration/testers) at `2b1a569`, 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](https://git.gtahub.st/github/Marvisak--VIctory/pulls/439): their own merge of the stack with that set, one run, about 6 minutes in the world, no device removal. 2. **If it still hangs,** the same build with `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 refused` lines 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.
Author
Owner

@⁠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):

  • + #233: compute refusals 114 → 0, but the device is removed at 135 s (0x887A0005). The System log shows nvlddmkm event 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.
  • + #579 with 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:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7126265491) Follow-up on the same laptop (RTX 3080 Ti Laptop, 7374bfb + each PR merged locally, diag build, `VICTORY_D3D12_DRED=1`, 12-min cap): - **+ #233**: compute refusals 114 → 0, but the device is removed at 135 s (0x887A0005). The System log shows `nvlddmkm` event 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. - **+ #579 with `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.
Author
Owner

@⁠ShyVortex on GitHub · 2026-11-24 08:47 UTC · original

@⁠r4tedx Ran it: integration/testers at 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.

  • Stayed up the full 12 min: no device removal, no ERROR lines, no nvlddmkm 13/153 events. So the second run with VICTORY_SKIP_WAVE64 was not needed.
  • host pipeline refused: 0 (vs 114–117 on main 7374bfb). shader does not translate: 160 (138 compute, 11 mesh, 7 pixel, 4 vertex), vs ~370 on main.
  • One world frame near the end: 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).
  • Behind the credits and subtitles: no longer black. First a grey-blue fill with coloured gradient edges on the letterbox bars, then after the PROLOGUE card a full white screen, then grey, then black at ~0 fps. No recognisable scene.
**@⁠ShyVortex** on GitHub · 2026-11-24 08:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7126563000) @⁠r4tedx Ran it: `integration/testers` at 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. - **Stayed up the full 12 min**: no device removal, no ERROR lines, no `nvlddmkm` 13/153 events. So the second run with `VICTORY_SKIP_WAVE64` was not needed. - `host pipeline refused`: **0** (vs 114–117 on main 7374bfb). `shader does not translate`: 160 (138 compute, 11 mesh, 7 pixel, 4 vertex), vs ~370 on main. - One world frame near the end: `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). - Behind the credits and subtitles: no longer black. First a grey-blue fill with coloured gradient edges on the letterbox bars, then after the PROLOGUE card a full white screen, then grey, then black at ~0 fps. No recognisable scene.
Author
Owner

@⁠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, diag build, 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 skip

  • 113 compute pipelines refused, all 0x80070057, so today's update does not change the refusals (114 before on d2a4bae).
  • World entry: 0.2-0.4 fps, 1887-2519 draws/frame, 4214-4931 dropped without a host pipeline.
  • Device removed about 20 s after world entry, after slow host submission ms=11850 lists=25, even with the 60 s TDR. The System log shows nvlddmkm event 153 at the same moment.

2. PR #579 head 1658c84 (based on d2a4bae, so without today's merges), VICTORY_SKIP_WAVE64=mesh,compute

  • 0 pipelines refused, 0 device removals in about 9 minutes (about 7 in the world). I stopped it myself.
  • World: 1-3 fps, 92-440 draws/frame, 2200-6200 dropped. 357 "shader does not translate" warnings (GFX10 code at ...), similar on main (333).
  • The scene is black. The HUD renders: the tutorial hint "Move around / Move the camera" appears, as in bai557's laptop run.
  • VICTORY_CAPTURE frames: 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,compute

  • 0 pipelines refused, 0 device removals in 7+ minutes (about 6 in the world). I stopped it myself.
  • World: a steady 2.1-2.2 fps, about 400 draws/frame, about 3250 dropped. 329 "shader does not translate" warnings.
  • Captured world frames are still black.

So 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.

**@⁠zaidlutfi** on GitHub · 2026-11-24 08:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7126715608) Follow-up from the original reporter, same machine (RTX 4060 Laptop, driver 32.0.16.2124, i9-12900H, Windows 11 build 26300), `TdrDelay=60`, `diag` build, 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 skip - 113 compute pipelines refused, all `0x80070057`, so today's update does not change the refusals (114 before on `d2a4bae`). - World entry: 0.2-0.4 fps, 1887-2519 draws/frame, 4214-4931 dropped without a host pipeline. - Device removed about 20 s after world entry, after `slow host submission ms=11850 lists=25`, even with the 60 s TDR. The System log shows `nvlddmkm` event 153 at the same moment. ### 2. PR #579 head `1658c84` (based on `d2a4bae`, so without today's merges), `VICTORY_SKIP_WAVE64=mesh,compute` - 0 pipelines refused, 0 device removals in about 9 minutes (about 7 in the world). I stopped it myself. - World: 1-3 fps, 92-440 draws/frame, 2200-6200 dropped. 357 "shader does not translate" warnings (`GFX10 code at ...`), similar on main (333). - The scene is black. The HUD renders: the tutorial hint "Move around / Move the camera" appears, as in bai557's laptop run. - `VICTORY_CAPTURE` frames: 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,compute` - 0 pipelines refused, 0 device removals in 7+ minutes (about 6 in the world). I stopped it myself. - World: a steady 2.1-2.2 fps, about 400 draws/frame, about 3250 dropped. 329 "shader does not translate" warnings. - Captured world frames are still black. So 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.
Author
Owner

@⁠notquiteog on GitHub · 2026-11-24 09:12 UTC · original

RTX 5060 Ti (desktop Blackwell): integration/testers at 92bc27b removes all 319 compute refusals; no device removal in ~4.3 min in the world

Setup

  • GPU: NVIDIA GeForce RTX 5060 Ti (desktop), driver 32.0.16.2114
  • CPU: Intel Core i5-13600K, 32 GB RAM
  • OS: Windows 11 Home 26100
  • Title: Xbox Series build b99f876b… (same as #5 / #71), my own copy
  • Builds: upstream main at 58fed37 (release) vs. r4tedx integration/testers at 92bc27b (diag, --features diagnostics)
  • Run env: VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1, cold cache (own cache/data dirs), no input

1. Full-pack victory translate <game dir> --pipelines (no title run)

main 58fed37 integration/testers 92bc27b
Compute: emitted / pipelines created 1,440 of 2,581 / 1,121 (319 refused, The parameter is incorrect.) 2,349 of 2,582 / 2,349 (0 refused)
VS/PS emitted 12,236 of 14,013 14,045 of 14,246
Mesh emitted 8,163 of 8,506 8,420 of 8,713

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 data 295, an address in an SGPR that is no root parameter 247, a structured buffer of unknown stride 123, a lane mask read as data 106, an address not from a root parameter 73, console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves 43.

2. Title run on integration/testers 92bc27b

  • Menus/start: 30–31 fps.
  • First world frame about 70 s after start (1.7 fps, 938 draws/frame).
  • No device removal, no ERROR lines, no nvlddmkm or 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).
  • One slow host submission ms=902 lists=11; nothing slower.
  • Typical world frame near the end:
1.0 fps, 1000.0 ms/frame (645.9 preparing: copies 429.3 ms 65.0 MB, textures 69.7 ms 111.1 MB; 148.5 on the GPU; 198.8 copying back 9.5 MB), 356 draws/frame, dropped 566 without a host pipeline (1042 being made) and 678 indirect

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 --pipelines warm-up does not seem to pre-fill the library the title run loads from (loaded=59 at shutdown).

Happy to run a longer capped run or VICTORY_SKIP_WAVE64=mesh,compute on this card if useful.

**@⁠notquiteog** on GitHub · 2026-11-24 09:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7127093579) **RTX 5060 Ti (desktop Blackwell): `integration/testers` at `92bc27b` removes all 319 compute refusals; no device removal in ~4.3 min in the world** ## Setup - GPU: NVIDIA GeForce RTX 5060 Ti (desktop), driver 32.0.16.2114 - CPU: Intel Core i5-13600K, 32 GB RAM - OS: Windows 11 Home 26100 - Title: Xbox Series build `b99f876b…` (same as #5 / #71), my own copy - Builds: upstream `main` at `58fed37` (release) vs. r4tedx `integration/testers` at `92bc27b` (diag, `--features diagnostics`) - Run env: `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`, cold cache (own cache/data dirs), no input ## 1. Full-pack `victory translate <game dir> --pipelines` (no title run) | | `main` 58fed37 | `integration/testers` 92bc27b | |---|---|---| | Compute: emitted / pipelines created | 1,440 of 2,581 / 1,121 (**319 refused**, `The parameter is incorrect.`) | 2,349 of 2,582 / 2,349 (**0 refused**) | | VS/PS emitted | 12,236 of 14,013 | 14,045 of 14,246 | | Mesh emitted | 8,163 of 8,506 | 8,420 of 8,713 | 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 data` 295, `an address in an SGPR that is no root parameter` 247, `a structured buffer of unknown stride` 123, `a lane mask read as data` 106, `an address not from a root parameter` 73, `console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves` 43. ## 2. Title run on `integration/testers` 92bc27b - Menus/start: 30–31 fps. - First world frame about 70 s after start (1.7 fps, 938 draws/frame). - **No device removal, no `ERROR` lines, no `nvlddmkm` or 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). - One `slow host submission ms=902 lists=11`; nothing slower. - Typical world frame near the end: ``` 1.0 fps, 1000.0 ms/frame (645.9 preparing: copies 429.3 ms 65.0 MB, textures 69.7 ms 111.1 MB; 148.5 on the GPU; 198.8 copying back 9.5 MB), 356 draws/frame, dropped 566 without a host pipeline (1042 being made) and 678 indirect ``` 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 --pipelines` warm-up does not seem to pre-fill the library the title run loads from (`loaded=59` at shutdown). Happy to run a longer capped run or `VICTORY_SKIP_WAVE64=mesh,compute` on this card if useful.
Author
Owner

@⁠zaidlutfi on GitHub · 2026-11-24 09:27 UTC · original

integration/testers at 92bc27b on 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.

  • host pipeline refused: 0 (113-114 on main). shader does not translate: 117.
  • No device removal and no nvlddmkm events.
  • World frame near the end: 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 indirect
  • Picture (VICTORY_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.
  • The run ended about 30 s after world entry on host memory, not the GPU: 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.

**@⁠zaidlutfi** on GitHub · 2026-11-24 09:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7127447873) integration/testers at `92bc27b` on 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. - host pipeline refused: 0 (113-114 on main). shader does not translate: 117. - No device removal and no `nvlddmkm` events. - World frame near the end: `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 indirect` - Picture (`VICTORY_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. - The run ended about 30 s after world entry on host memory, not the GPU: `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.
Author
Owner

@⁠notquiteog on GitHub · 2026-11-24 09:33 UTC · original

Follow-up to my comment above: a full 12-minute capped run of integration/testers at 92bc27b on the same RTX 5060 Ti (desktop, driver 32.0.16.2114), this time with the default Windows TDR (no TdrDelay change), 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).

  • No device removal for the whole run: no ERROR lines, no nvlddmkm or 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).
  • Slowest submissions: 3242 ms and 2799 ms (both 11 lists, in the first 90 s of the world), then nothing over 268 ms; neither triggered a TDR.
  • World: 95 samples, 0.2–6.2 fps, mean 0.5; mean 2,412 draws/frame, mean 1,064 dropped without a host pipeline. Typical late frame:
0.3 fps, 2866.7 ms/frame (1917.7 preparing: copies 1601.3 ms 354.7 MB, textures 173.9 ms 171.2 MB; 101.5 on the GPU; 189.6 copying back 26.7 MB), 3825 draws/frame, dropped 560 without a host pipeline (0 being made) and 586 indirect

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.

**@⁠notquiteog** on GitHub · 2026-11-24 09:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7127585253) Follow-up to my comment above: a full **12-minute capped run** of `integration/testers` at `92bc27b` on the same **RTX 5060 Ti** (desktop, driver 32.0.16.2114), this time **with the default Windows TDR** (no `TdrDelay` change), 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`). - **No device removal for the whole run**: no `ERROR` lines, no `nvlddmkm` or 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). - Slowest submissions: 3242 ms and 2799 ms (both 11 lists, in the first 90 s of the world), then nothing over 268 ms; neither triggered a TDR. - World: 95 samples, **0.2–6.2 fps, mean 0.5**; mean 2,412 draws/frame, mean 1,064 dropped without a host pipeline. Typical late frame: ``` 0.3 fps, 2866.7 ms/frame (1917.7 preparing: copies 1601.3 ms 354.7 MB, textures 173.9 ms 171.2 MB; 101.5 on the GPU; 189.6 copying back 26.7 MB), 3825 draws/frame, dropped 560 without a host pipeline (0 being made) and 586 indirect ``` 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.
Author
Owner

@⁠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, blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93.

(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 are 13dfdd3b1136e407, 88994c3496045f51, 02384a60fda6f2d0 - the same three you list. 428 shaders do not translate.

Device removed 0x887A0006 188 s in, 13 s after the last present, immediately after slow host submission ms=11225 lists=1: one compute-only list of 15 pipelines (d3e44e754b3eb6aa and 269b802f878c24e1 among them), 327 commands, stopped at command 147 (op 6) between its barriers. GetDeviceRemovedReason reported 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:

Srv s0+8:   placed uav=false dim 1 42991392x1   f0 layout 0x1 at 0x11040010
Srv s0+56:  buffer Some((57746940720, 2809960))
Srv s0+168: placed uav=false dim 1 13104x1      f0 layout 0x1 at 0xf8e3b70
Srv s0+176: placed uav=false dim 1 182452224x1  f0 layout 0x1 at 0x9ac0000
Uav s0+288: buffer Some((57636093952, 94371840))
Cbv s1+0:   Constants

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 2560x1440 no host texture targets 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.

**@⁠MD5Visual** on GitHub · 2026-11-24 09:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7127690509) 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, blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`. (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 are `13dfdd3b1136e407`, `88994c3496045f51`, `02384a60fda6f2d0` - the same three you list. 428 shaders do not translate. **Device removed `0x887A0006` 188 s in, 13 s after the last present**, immediately after `slow host submission ms=11225 lists=1`: one compute-only list of 15 pipelines (`d3e44e754b3eb6aa` and `269b802f878c24e1` among them), 327 commands, stopped at command 147 (op 6) between its barriers. `GetDeviceRemovedReason` reported 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: ``` Srv s0+8: placed uav=false dim 1 42991392x1 f0 layout 0x1 at 0x11040010 Srv s0+56: buffer Some((57746940720, 2809960)) Srv s0+168: placed uav=false dim 1 13104x1 f0 layout 0x1 at 0xf8e3b70 Srv s0+176: placed uav=false dim 1 182452224x1 f0 layout 0x1 at 0x9ac0000 Uav s0+288: buffer Some((57636093952, 94371840)) Cbv s1+0: Constants ``` 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 2560x1440 `no host texture` targets 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.
Author
Owner

@⁠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 58fed37 and 8e79c80.

  • Menus at ~30 fps and saves work. The first cutscene plays with sound and title card, but the picture is black (~3 draws/frame).
  • Log: 115 host pipeline refused error=The parameter is incorrect. (0x80070057), about 410-430 shader does not translate; its pipelines' draws are dropped.
  • Two textures also fail to create with 0x80070057, both 2D 2560x1440, 1 mip:
    • format: 86 (B5G5R5A1_UNORM) with flags: 5 (RT + UAV)
    • format: 115 (B4G4R4A4_UNORM) with flags: 1 (RT)
  • Entering the world (~frame 1138): host submissions take ~275 ms each, then 589 ms, then 5219 ms (21 lists). Then 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.)

**@⁠undeadhuman37** on GitHub · 2026-11-24 10:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7128295371) Same on an **RTX 4070 SUPER** (driver 621.01, i7-14700K, Windows 11 26200). Tested on 58fed37 and 8e79c80. - Menus at ~30 fps and saves work. The first cutscene plays with sound and title card, but the picture is black (~3 draws/frame). - Log: **115** `host pipeline refused error=The parameter is incorrect. (0x80070057)`, about **410-430** `shader does not translate; its pipelines' draws are dropped`. - Two textures also fail to create with 0x80070057, both 2D 2560x1440, 1 mip: - `format: 86` (B5G5R5A1_UNORM) with `flags: 5` (RT + UAV) - `format: 115` (B4G4R4A4_UNORM) with `flags: 1` (RT) - Entering the world (~frame 1138): host submissions take ~275 ms each, then 589 ms, then **5219 ms** (21 lists). Then `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.)*
Author
Owner

@⁠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 92bc27b with a much larger page file

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

ERROR victory_gpu::host: a host state prelude did not record (Not enough memory resources are available to complete this operation. (0x8007000E))

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,compute

  • About 15 minutes up, no device removal and no ERROR lines. I closed the window myself (window closed: suspending the title).
  • World: 2.6-3.6 fps, about 150 draws/frame, 1600-2000 dropped without a host pipeline.
  • Memory, sampled every 5 s: dedicated GPU 7.0 GB, shared GPU 4.4 GB, process commit 21.6 GB, all flat over the run.
  • All 2D renders: the pause menu (Map, Game, Settings, PROLOGUE with Retry Checkpoint / Restart Mission), every settings tab, and cutscene subtitles while the cutscene advances. The 3D scene stays black.
  • Turning on the title's own High Contrast Shaders setting changes nothing (same draw and drop counts, still black).

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.

**@⁠zaidlutfi** on GitHub · 2026-11-24 10:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7128587893) 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 `92bc27b` with a much larger page file Page 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: ``` ERROR victory_gpu::host: a host state prelude did not record (Not enough memory resources are available to complete this operation. (0x8007000E)) ``` 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,compute` - About 15 minutes up, no device removal and no ERROR lines. I closed the window myself (`window closed: suspending the title`). - World: 2.6-3.6 fps, about 150 draws/frame, 1600-2000 dropped without a host pipeline. - Memory, sampled every 5 s: dedicated GPU 7.0 GB, shared GPU 4.4 GB, process commit 21.6 GB, all flat over the run. - All 2D renders: the pause menu (Map, Game, Settings, PROLOGUE with Retry Checkpoint / Restart Mission), every settings tab, and cutscene subtitles while the cutscene advances. The 3D scene stays black. - Turning on the title's own High Contrast Shaders setting changes nothing (same draw and drop counts, still black). 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.
Author
Owner

@⁠PandeoF1 on GitHub · 2026-11-24 12:07 UTC · original

Same result on an RTX 5070 desktop (Blackwell, 32-lane waves), unmodified main ffe310e, release build, title 1.0.2.1, Series X mode.

  • Windows 11 Pro 26200, i7-11700K, 32 GB, NVIDIA driver 32.0.16.1088 (as reported by WMI; an Intel UHD 750 iGPU is also present, host device is the NVIDIA one)
  • Menus: 30 fps, intro video and sound fine. World entry works, then: black window, subtitles and audio play, 0.4-1.1 fps, 1100-2200 draws/frame dropped without a host pipeline, 1300-5800 indirect dropped.
  • host pipeline refused ... (0x80070057) on many compute pipelines (user_data/samplers vary), each right after shader 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.
  • Same startup warnings as #797 / #741: no host texture for 2560x1440 formats 86 and 115, and host view heap capped at 1000000 (count=1245184) as in #747. Later no free dynamic descriptor slots: a table is not made with drop counts doubling up to 65536.
  • Device removed three times, always ~2-4 min into the world and right after one very slow submission:
    • slow host submission ms=4830 lists=21, then device removed (0x887A0006), breadcrumbs 0x887A0004
    • ms=4855 lists=30, same error
    • an earlier run after ms=5334 lists=26
      The 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 the integration/testers tree with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1 on 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:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7130998243) Same result on an RTX 5070 desktop (Blackwell, 32-lane waves), unmodified `main` `ffe310e`, release build, title 1.0.2.1, Series X mode. - Windows 11 Pro 26200, i7-11700K, 32 GB, NVIDIA driver 32.0.16.1088 (as reported by WMI; an Intel UHD 750 iGPU is also present, host device is the NVIDIA one) - Menus: 30 fps, intro video and sound fine. World entry works, then: black window, subtitles and audio play, 0.4-1.1 fps, 1100-2200 draws/frame dropped without a host pipeline, 1300-5800 indirect dropped. - `host pipeline refused ... (0x80070057)` on many compute pipelines (user_data/samplers vary), each right after `shader 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. - Same startup warnings as #797 / #741: `no host texture` for 2560x1440 formats 86 and 115, and `host view heap capped at 1000000 (count=1245184)` as in #747. Later `no free dynamic descriptor slots: a table is not made` with drop counts doubling up to 65536. - Device removed three times, always ~2-4 min into the world and right after one very slow submission: - `slow host submission ms=4830 lists=21`, then `device removed (0x887A0006)`, breadcrumbs `0x887A0004` - `ms=4855 lists=30`, same error - an earlier run after `ms=5334 lists=26` The 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 the `integration/testers` tree with `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1` on 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.
Author
Owner

@⁠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/VIctory integration/testers at 92bc27b, 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). No VICTORY_SKIP_WAVE64.

  • Host pipelines refused: 0 (main ffe310e on the same card: dozens of 0x80070057). Consistent with the wave64 stack removing the E_INVALIDARG refusals.
  • No device removal: run 1 ran ~11 minutes in the world, run 2 (warm pipeline cache) 25 minutes until I stopped it. No ERROR line, no DRED output. On main the same card was removed 2-4 minutes in, three times.
  • No no free dynamic descriptor slots messages any more.
  • Still black and slow: 0.5-0.6 fps on the warm run, ~2560 draws/frame, ~750 dropped without a host pipeline, 635 indirect dropped. Cold cache run: 0.2-0.3 fps while ~900 pipelines were still being made.
  • Translation failures left (138 in run 1): SGPR address that is not a root parameter 34+17, structured buffer of unknown stride 32, "console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves" 25.
  • The 2560x1440 no host texture warnings (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.

**@⁠PandeoF1** on GitHub · 2026-11-24 12:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7132073619) Follow-up on my RTX 5070 desktop report above: I ran the tester tree, and it removes the device removal here. Tree: `r4tedx/VIctory` `integration/testers` at `92bc27b`, 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). No `VICTORY_SKIP_WAVE64`. - **Host pipelines refused: 0** (`main` `ffe310e` on the same card: dozens of `0x80070057`). Consistent with the wave64 stack removing the E_INVALIDARG refusals. - **No device removal:** run 1 ran ~11 minutes in the world, run 2 (warm pipeline cache) 25 minutes until I stopped it. No `ERROR` line, no DRED output. On `main` the same card was removed 2-4 minutes in, three times. - **No `no free dynamic descriptor slots`** messages any more. - **Still black and slow:** 0.5-0.6 fps on the warm run, ~2560 draws/frame, ~750 dropped without a host pipeline, 635 indirect dropped. Cold cache run: 0.2-0.3 fps while ~900 pipelines were still being made. - Translation failures left (138 in run 1): SGPR address that is not a root parameter 34+17, structured buffer of unknown stride 32, "console wave64 lanes in a group of more than 64 threads on a host without 64-lane waves" 25. - The 2560x1440 `no host texture` warnings (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.
Author
Owner

@⁠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 main at d2a4bae.

Refusals. Running victory translate <shader archive> --pipelines offline, every vertex, pixel and mesh pipeline is created. 321 of 1693 emitted compute programs are refused with 0x80070057, and they're the ones the translator gives WaveSize(64) (checked with dxc -dumpbin on the cached DXIL). In-game, 128 were refused in a 10-minute run, 13dfdd3b1136e407 among them, same as above.

Hang. The release build removed the device (0x887A0007, DWM exited) around the main menu → world load. A diag build with VICTORY_D3D12_DRED=1 and VICTORY_SHADER_LOOP_LIMIT=4096 reached 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 with memory allocation of N bytes failed and 0x8007000E on texture creation.

I can test #233 (or #578 / #189) on this card if that helps decide between them.

**@⁠radial-fx** on GitHub · 2026-11-24 14:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7133829713) One more data point for this, from Turing: **RTX 2080 SUPER (8 GB)**, driver 32.0.16.1742, Windows 11, 16 GB RAM, on `main` at `d2a4bae`. **Refusals.** Running `victory translate <shader archive> --pipelines` offline, every vertex, pixel and mesh pipeline is created. **321 of 1693 emitted compute programs** are refused with `0x80070057`, and they're the ones the translator gives `WaveSize(64)` (checked with `dxc -dumpbin` on the cached DXIL). In-game, 128 were refused in a 10-minute run, `13dfdd3b1136e407` among them, same as above. **Hang.** The release build removed the device (`0x887A0007`, DWM exited) around the main menu → world load. A diag build with `VICTORY_D3D12_DRED=1` and `VICTORY_SHADER_LOOP_LIMIT=4096` reached 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 with `memory allocation of N bytes failed` and `0x8007000E` on texture creation. I can test #233 (or #578 / #189) on this card if that helps decide between them.
Author
Owner

@⁠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

  • Windows 11 Pro 26200, iGPU + NVIDIA GeForce RTX 5050 Laptop (driver 32.0.16.2135,
    WaveLaneCountMin = Max = 32), 16 GB RAM, 8 GB VRAM.
  • Title 1.0.2.1, the build of #778 (b99f876b…).
  • cargo build --profile diag -p victory --features diagnostics; TdrDelay and
    TdrDdiDelay = 60, as #468 suggests.
  • Base c7a5f49; also main ffe310e + #483 (65a161d) + #493 (c48b240), and
    then + #189 (c047885).

Runs

Build Refused pipelines Wave64 warnings World Ends with
main c7a5f49, LOOP_LIMIT=64 111 119 0.2–0.6 fps DEVICE_HUNG, 17 lists, ~100 s
main ffe310e + #483 + #493 118 134 0.2–0.9 fps E_OUTOFMEMORY + PnP stop, 189.9 s
+ #189 (Wave32 mode on this host) 0 0 0.2–1.2 fps DEVICE_HUNG, 121 s

All 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, 0x887A0006 does not appear once in 190 s (the first run on this
machine without it). The failure moves to:

debug layer: ID3D12Device::CreateCommittedResource: Returning E_OUTOFMEMORY, meaning memory was exhausted.
RemoveDevice: DXGI_ERROR_DEVICE_REMOVED: Plug-and-play stop has been exercised on this adapter.

and the copy statistics explain the pressure:

copies per frame: 44.0 submissions; 7057 title copies 3.7 MB;
12314 refreshes 10531.0 MB, 0 skipped 0.0 MB; ... moves 34.68 ms, 176.66 MB

12 314 refreshes and 10 531 MB refreshed per frame. That is the shadow-copy path, not
the GPU. uma.rs in XCL (ID3D12Device3::OpenExistingHeapFromAddress) is the approach that
would 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 134 wave lane count of 64 warnings go to
0: the emulation does compile and create. Then:

a list stopped at command 6 of 195 (op 9)      ← op 9 = ExecuteIndirect DISPATCH
command 6 (op 9): no marker

Breadcrumbs are present, and there is no page fault at, inside freed or past its end
anywhere: it is a hang, not a bad access. That matches the ~1.2 s dispatches we had seen on
8bbcbda6008eaa37 before the emulation existed.

3. Why, and what would fix it

XCL's docs/wave64-on-wave32.md states the constraint that matters here:

One console wave per group (≤ 64 threads …): GroupMemoryBarrierWithGroupSync …
Portable and cheap. Several console waves per group (mesh: 128 threads, compute > 64
threads): a group barrier would also wait for the other console waves, whose control flow
may differ.

#189 uses barrier(1 | 8) in all four exchange sites (exchange_two_halves, exchange_64,
emulated_readfirstlane, the lowest-active-lane atomicMin) regardless of group size. Our
world'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 for
3-D groups) and it is not the hang: with the claim in place the 10 Emulate GPU tests in
wave64_tests.rs fail on output comparison, because the permutation changes which host thread
produces 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 indirect
dispatch. Its loop is not mistranslated: the emitted DXIL carries the console's own
icmp sgt i32 %i, 9999 cap, and the select chain can only turn the continue mask from true to
false, so the loop is guaranteed to leave by the cap. VICTORY_SHADER_LOOP_LIMIT=64 makes it
look 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 as UNORDERED_ACCESS
    although nothing tracks buffer states; declaring it from COMMON and leaving it in COMMON
    in done() took the debug layer's state warnings from many to one. (The one left is the
    COMMON … assumed at first use case, which needs per-buffer state tracking.)
  • host.rs: a Close() failure only reports "a command recorded into it was invalid"; the
    info queue's messages name the command, so draining it before giving up is worth two lines.
  • pipeline.rs: a diagnostics VICTORY_DUMP_SHADER=<hash> that writes a container out, which
    is how 8bbcbda6008eaa37 was turned back into code with victory shader-info --disasm.

Happy to run anything you want on this host; logs for all runs are kept.

**@⁠Luminous418** on GitHub · 2026-11-24 16:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7137167998) # 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 - Windows 11 Pro 26200, iGPU + **NVIDIA GeForce RTX 5050 Laptop** (driver 32.0.16.2135, `WaveLaneCountMin = Max = 32`), 16 GB RAM, 8 GB VRAM. - Title 1.0.2.1, the build of #778 (`b99f876b…`). - `cargo build --profile diag -p victory --features diagnostics`; `TdrDelay` and `TdrDdiDelay` = 60, as #468 suggests. - Base `c7a5f49`; also `main` `ffe310e` + **#483** (`65a161d`) + **#493** (`c48b240`), and then + **#189** (`c047885`). ## Runs | Build | Refused pipelines | Wave64 warnings | World | Ends with | |---|---|---|---|---| | `main` `c7a5f49`, `LOOP_LIMIT=64` | 111 | 119 | 0.2–0.6 fps | `DEVICE_HUNG`, 17 lists, ~100 s | | `main` `ffe310e` + #483 + #493 | 118 | 134 | 0.2–0.9 fps | **`E_OUTOFMEMORY`** + PnP stop, 189.9 s | | + #189 (`Wave32` mode on this host) | **0** | **0** | 0.2–1.2 fps | **`DEVICE_HUNG`**, 121 s | All 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, `0x887A0006` does not appear once in 190 s (the first run on this machine without it). The failure moves to: ``` debug layer: ID3D12Device::CreateCommittedResource: Returning E_OUTOFMEMORY, meaning memory was exhausted. RemoveDevice: DXGI_ERROR_DEVICE_REMOVED: Plug-and-play stop has been exercised on this adapter. ``` and the copy statistics explain the pressure: ``` copies per frame: 44.0 submissions; 7057 title copies 3.7 MB; 12314 refreshes 10531.0 MB, 0 skipped 0.0 MB; ... moves 34.68 ms, 176.66 MB ``` **12 314 refreshes and 10 531 MB refreshed per frame.** That is the shadow-copy path, not the GPU. `uma.rs` in XCL (`ID3D12Device3::OpenExistingHeapFromAddress`) is the approach that would 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 134 `wave lane count of 64` warnings go to **0**: the emulation does compile and create. Then: ``` a list stopped at command 6 of 195 (op 9) ← op 9 = ExecuteIndirect DISPATCH command 6 (op 9): no marker ``` Breadcrumbs are present, and there is **no** `page fault at`, `inside freed` or `past its end` anywhere: it is a hang, not a bad access. That matches the ~1.2 s dispatches we had seen on `8bbcbda6008eaa37` before the emulation existed. ## 3. Why, and what would fix it XCL's `docs/wave64-on-wave32.md` states the constraint that matters here: > **One console wave per group** (≤ 64 threads …): `GroupMemoryBarrierWithGroupSync` … > Portable and cheap. **Several console waves per group** (mesh: 128 threads, compute > 64 > threads): a group barrier would also wait for the *other* console waves, whose control flow > may differ. #189 uses `barrier(1 | 8)` in all four exchange sites (`exchange_two_halves`, `exchange_64`, `emulated_readfirstlane`, the lowest-active-lane `atomicMin`) regardless of group size. Our world'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 for 3-D groups) and it is not the hang: with the claim in place the 10 `Emulate` GPU tests in `wave64_tests.rs` fail on output comparison, because the permutation changes which host thread produces 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 indirect dispatch. Its loop is **not** mistranslated: the emitted DXIL carries the console's own `icmp sgt i32 %i, 9999` cap, and the select chain can only turn the continue mask from true to false, so the loop is guaranteed to leave by the cap. `VICTORY_SHADER_LOOP_LIMIT=64` makes it look 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 as `UNORDERED_ACCESS` although nothing tracks buffer states; declaring it from `COMMON` and leaving it in `COMMON` in `done()` took the debug layer's state warnings from many to one. (The one left is the `COMMON … assumed at first use` case, which needs per-buffer state tracking.) - `host.rs`: a `Close()` failure only reports "a command recorded into it was invalid"; the info queue's messages name the command, so draining it before giving up is worth two lines. - `pipeline.rs`: a diagnostics `VICTORY_DUMP_SHADER=<hash>` that writes a container out, which is how `8bbcbda6008eaa37` was turned back into code with `victory shader-info --disasm`. Happy to run anything you want on this host; logs for all runs are kept.
Author
Owner

@⁠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, then 3d77d5e). The follow-ups from other laptop and desktop NVIDIA cards make it more useful.

The failure (compute pipelines refused with 0x80070057 on 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:

  • #1929: wave64 compute on 32-lane hosts (rebase of #233);
  • #1922: refuse wave64 mesh and compute programs on hosts without 64-lane waves (rebase of #578);
  • #1890: split waves.

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 main and post the refused-pipeline count and a world frame's summary line, as you did here.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/468#issuecomment-7149957043) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T16:07:54Z at=2026-11-25T01:47:08Z --> Automated triage for the maintainers. Thanks, this is a complete run report (RTX 4060 Laptop, driver 32.0.16.2124, Windows 11 26300, `d2a4bae`, then `3d77d5e`). The follow-ups from other laptop and desktop NVIDIA cards make it more useful. The failure (compute pipelines refused with `0x80070057` on 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: - #1929: wave64 compute on 32-lane hosts (rebase of #233); - #1922: refuse wave64 mesh and compute programs on hosts without 64-lane waves (rebase of #578); - #1890: split waves. 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 `main` and post the refused-pipeline count and a world frame's summary line, as you did here. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#468
No description provided.