NVIDIA RTX 3060: world has no image; 135 compute shaders need wave64, 112 pipelines refused, resource-state mismatches in D3D12 debug layer #1001

Open
opened 2026-11-26 04:16:38 +00:00 by github-bot · 3 comments
Owner

@⁠MIZZTW on GitHub · 2026-11-24 14:49 UTC · original

Environment

  • VIctory commit d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989 (2026-11-24), built with Rust 1.98.1 (pinned toolchain)
  • Windows 11 (build 26100), x64
  • GPU: NVIDIA GeForce RTX 3060, driver 32.0.16.2124
  • CPU: AMD Ryzen 7 5700X, 32 GB RAM
  • Game files on an HDD, cache and data on an SSD (cache_dir, data_dir in victory.toml)
  • Builds used: --release and --profile diag --features diagnostics
  • D3D12 debug layer: Graphics Tools installed (d3d12SDKLayers.dll present), VICTORY_D3D12_DEBUG=1

What happens

  1. Boot, first-boot screens, language/settings and loading work as in the README.
  2. Entering the world, the first mission's title card ("2 years ago") renders.
  3. Release build, no debug layer: the host GPU is removed during a submission of 31-32 lists:
    device removed ... (0x887A0006), plus 0x887A0004 as the reason, no breadcrumbs. Exit code 5. crashes.log contains the same line. Reproduced 3 times, all in the same place.
  4. diag build with the D3D12 debug layer on: no device removal this time, but the world has no image. Dialogue audio plays. Run reached frame 13029. A warning reported black_frames=5.

Findings from the diagnostics run

1. Wave64 compute shaders on a 32-lane GPU (NVIDIA-specific)

135 warnings of the form:

ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32.

112 distinct compute pipelines were then refused:

host pipeline refused error=El parámetro no es correcto. (0x80070057) shaders=[compute <hash>]

This matches the README note that some compute programs need 64-lane waves. On NVIDIA (32 lanes) those pipelines are never created, so anything depending on them is dropped.

2. Shaders that do not translate

331 distinct shaders log shader does not translate; its pipelines' draws are dropped. The most frequent reasons in this run (first 60 chars of the message, counts include repeats):

Count Reason
74 a select on an untracked ...
66 a lane mask holding lanes ...
35 an address in an SGPR that ...
31 a structured buffer of ...
17 an address not from a root ...
16 a scalar memory read as data ...
16 a descriptor read only as ...
13 a descriptor neither loaded ...

These are probably the known "untranslated shaders" gaps from the README, but I'm listing them in case the counts on a different GPU/driver help. Counts differ slightly between runs because the loaded shader set differs.

3. Resource-state mismatches reported by the debug layer

224 warnings from ExecuteCommandLists and 18 from DrawIndexedInstanced, e.g.:

ResourceBarrier ... Before state (0x8: UNORDERED_ACCESS) of resource ... specified by transition barrier does not match with the current resource state (0x1: VERTEX_AND_CONSTANT_BUFFER) (assumed at first use)

IASetVertexBuffers ... Resource state (0x8: UNORDERED_ACCESS) ... is invalid for use as a vertex buffer. Expected: 0x1 VERTEX_AND_CONSTANT_BUFFER, Actual: 0x8 UNORDERED_ACCESS

My guess (not verified): a buffer written by compute and then used as vertex/constant data does not get the right transition. That could plausibly be related to the device-removed in the release build, but I have no evidence beyond the timing. Happy to test patches.

4. Other warnings (counts only)

  • 596 + 306 ID3D12PipelineLibrary::Load*Pipeline warnings (library does not match / state differs) and 312 StorePipeline name collisions.
  • 26 slow host submission warnings (lists=11 and lists=32, several seconds each).

Questions

  • Is wave64 on 32-lane GPUs something you plan to support (e.g. with WaveSize/emulated lane masks)? XCL's README mentions a slower workaround for NVIDIA.
  • Would a VICTORY_D3D12_DEBUG=1 log of the barrier warnings be useful in a specific format?
  • Anything else you want me to capture on an RTX 3060? I can run builds and share logs.

Notes

  • No game data is attached. Only shader hashes and log messages appear above; full logs available on request.
  • I only used the diagnostics build for the second run; the first two were the plain release build.
**@⁠MIZZTW** on GitHub · 2026-11-24 14:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/1001) ## Environment - VIctory commit `d2a4bae1f49533ef5cb512fd1b1ba1513f2e1989` (2026-11-24), built with Rust 1.98.1 (pinned toolchain) - Windows 11 (build 26100), x64 - GPU: NVIDIA GeForce RTX 3060, driver 32.0.16.2124 - CPU: AMD Ryzen 7 5700X, 32 GB RAM - Game files on an HDD, cache and data on an SSD (`cache_dir`, `data_dir` in `victory.toml`) - Builds used: `--release` and `--profile diag --features diagnostics` - D3D12 debug layer: Graphics Tools installed (`d3d12SDKLayers.dll` present), `VICTORY_D3D12_DEBUG=1` ## What happens 1. Boot, first-boot screens, language/settings and loading work as in the README. 2. Entering the world, the first mission's title card ("2 years ago") renders. 3. **Release build, no debug layer:** the host GPU is removed during a submission of 31-32 lists: `device removed ... (0x887A0006)`, plus `0x887A0004` as the reason, `no breadcrumbs`. Exit code 5. `crashes.log` contains the same line. Reproduced 3 times, all in the same place. 4. **`diag` build with the D3D12 debug layer on:** no device removal this time, but the world has **no image**. Dialogue audio plays. Run reached frame 13029. A warning reported `black_frames=5`. ## Findings from the diagnostics run ### 1. Wave64 compute shaders on a 32-lane GPU (NVIDIA-specific) 135 warnings of the form: > `ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32.` 112 distinct compute pipelines were then refused: > `host pipeline refused error=El parámetro no es correcto. (0x80070057) shaders=[compute <hash>]` This matches the README note that some compute programs need 64-lane waves. On NVIDIA (32 lanes) those pipelines are never created, so anything depending on them is dropped. ### 2. Shaders that do not translate 331 distinct shaders log `shader does not translate; its pipelines' draws are dropped`. The most frequent reasons in this run (first 60 chars of the message, counts include repeats): | Count | Reason | |------:|--------| | 74 | a select on an untracked ... | | 66 | a lane mask holding lanes ... | | 35 | an address in an SGPR that ... | | 31 | a structured buffer of ... | | 17 | an address not from a root ... | | 16 | a scalar memory read as data ... | | 16 | a descriptor read only as ... | | 13 | a descriptor neither loaded ... | These are probably the known "untranslated shaders" gaps from the README, but I'm listing them in case the counts on a different GPU/driver help. Counts differ slightly between runs because the loaded shader set differs. ### 3. Resource-state mismatches reported by the debug layer 224 warnings from `ExecuteCommandLists` and 18 from `DrawIndexedInstanced`, e.g.: > `ResourceBarrier ... Before state (0x8: UNORDERED_ACCESS) of resource ... specified by transition barrier does not match with the current resource state (0x1: VERTEX_AND_CONSTANT_BUFFER) (assumed at first use)` > `IASetVertexBuffers ... Resource state (0x8: UNORDERED_ACCESS) ... is invalid for use as a vertex buffer. Expected: 0x1 VERTEX_AND_CONSTANT_BUFFER, Actual: 0x8 UNORDERED_ACCESS` My guess (not verified): a buffer written by compute and then used as vertex/constant data does not get the right transition. That could plausibly be related to the device-removed in the release build, but I have no evidence beyond the timing. Happy to test patches. ### 4. Other warnings (counts only) - 596 + 306 `ID3D12PipelineLibrary::Load*Pipeline` warnings (library does not match / state differs) and 312 `StorePipeline` name collisions. - 26 `slow host submission` warnings (lists=11 and lists=32, several seconds each). ## Questions - Is wave64 on 32-lane GPUs something you plan to support (e.g. with `WaveSize`/emulated lane masks)? XCL's README mentions a slower workaround for NVIDIA. - Would a `VICTORY_D3D12_DEBUG=1` log of the barrier warnings be useful in a specific format? - Anything else you want me to capture on an RTX 3060? I can run builds and share logs. ## Notes - No game data is attached. Only shader hashes and log messages appear above; full logs available on request. - I only used the diagnostics build for the second run; the first two were the plain release build.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:16:38 +00:00
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-24 14:54 UTC · original

The two resource-state warnings match the ones PR #334 targets. In the RTX 3070 A/B below, #334 cleared both warning types, and the device hang still occurred later in the run.
#334

Since the debug layer works on your RTX 3060, a useful comparison would be ffe310e versus #334 at c99e429, with VICTORY_D3D12_DEBUG=1 on both. Counts for the barrier before-state mismatch and the vertex buffer in UNORDERED_ACCESS over the same part of world entry would answer whether #334 clears the warnings on your setup. Whether the image appears or the device hangs is worth recording separately.

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-24 14:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/1001#issuecomment-7135151673) The two resource-state warnings match the ones PR #334 targets. In the RTX 3070 A/B below, #334 cleared both warning types, and the device hang still occurred later in the run. https://git.gtahub.st/github/Marvisak--VIctory/pulls/334 Since the debug layer works on your RTX 3060, a useful comparison would be `ffe310e` versus #334 at `c99e429`, with `VICTORY_D3D12_DEBUG=1` on both. Counts for the barrier before-state mismatch and the vertex buffer in `UNORDERED_ACCESS` over the same part of world entry would answer whether #334 clears the warnings on your setup. Whether the image appears or the device hangs is worth recording separately. *AI-assisted with Codex.*
Author
Owner

@⁠JuniorBoschet on GitHub · 2026-11-24 15:12 UTC · original

Another RTX 3060 data point, with a longer TDR and a #189-based tree.

Setup: Windows 11, RTX 3060 12 GB, driver 621.24 (32..32 lanes), retail 1.0.2.1, Series X, release build with --features diagnostics. Game files on NVMe.

Tree: main ffe310e + #189 + alfycs feat/wave64-mesh-emulation (b3671c8, from #778) + #705 + #694 + #704 + #452 + gangg111 gpu-189 a3a8fe7 and 94908df (root SRV reach, from #951). No #578, so wave64 mesh programs run (emulated).

Result: menus, intro, story load and the opening cutscene (subtitles, audio) work. Entering the world, 1,200 to 3,200 draws/frame run, then the device is removed (0x887A0006). No refused pipelines; about 470 compute programs still do not translate (lane masks, mostly).

The removal is not a timeout here. With TdrDelay=60 and TdrDdiDelay=60 (after a reboot), the device is removed 3 s and 10 s after the last 5 s stats line, far below 60 s. So on this card it looks like a fault, not a slow list. DRED reports no page fault, though.

VICTORY_ROOT_REACH_MB=128 (with the #951 commits) did not change it. VICTORY_SHADER_LOOP_LIMIT=256 did not either.

DRED's stopping command, one run each:

Run TDR Command Shaders
1 2 s DispatchMesh, 2 groups mesh bb8e58b3ddd93bfd, pixel 0f4693d56bb63abc
2 2 s, loop limit 256, run 1's mesh skipped ExecuteIndirect kind 10 mesh d0503aa87911743e, pixel 5a0b31c2cd7fb82e
3 2 s DispatchMesh, 1 group mesh af6d42b80481c3a5, pixel 2567ef6bc3625832
4 60 s, #951 commits DispatchMesh, 58 groups mesh f0c7efd2aceb2aaa, pixel 7d85c9cab3c80721
5 60 s, #951 commits, reach 128 MB DispatchMesh, 4 groups mesh 02a1fac69125ab5e, pixel e81f634f4832432c

f0c7efd2aceb2aaa is one of the seven in #951's Aftermath dumps.

I disassembled the DXIL of run 3's pair (af6d42b80481c3a5 and 2567ef6bc3625832, captured with an in-game dump by hash). Neither has a loop. The mesh shader has 13 barriers in 8 blocks; every path from the entry reaches them, none is inside a loop, and SetMeshOutputCounts(128, 128) is in the entry block. So that draw cannot hang on its own logic, which fits a fault (or another command in the same barrier window: DRED printed one command per window here).

Side effect of the #951 commits on this tree: copies per frame rose from about 300 MB to 1.5 to 3.4 GB (wide windows copied again each frame).

Not tried: Aftermath, #568, the console flow (#233/#439) for mesh.

**@⁠JuniorBoschet** on GitHub · 2026-11-24 15:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1001#issuecomment-7135627974) Another RTX 3060 data point, with a longer TDR and a #189-based tree. **Setup**: Windows 11, RTX 3060 12 GB, driver 621.24 (32..32 lanes), retail 1.0.2.1, Series X, release build with `--features diagnostics`. Game files on NVMe. **Tree**: `main` `ffe310e` + #189 + alfycs `feat/wave64-mesh-emulation` (`b3671c8`, from #778) + #705 + #694 + #704 + #452 + gangg111 `gpu-189` `a3a8fe7` and `94908df` (root SRV reach, from #951). No #578, so wave64 mesh programs run (emulated). **Result**: menus, intro, story load and the opening cutscene (subtitles, audio) work. Entering the world, 1,200 to 3,200 draws/frame run, then the device is removed (`0x887A0006`). No refused pipelines; about 470 compute programs still do not translate (lane masks, mostly). **The removal is not a timeout here.** With `TdrDelay=60` and `TdrDdiDelay=60` (after a reboot), the device is removed 3 s and 10 s after the last 5 s stats line, far below 60 s. So on this card it looks like a fault, not a slow list. DRED reports no page fault, though. `VICTORY_ROOT_REACH_MB=128` (with the #951 commits) did not change it. `VICTORY_SHADER_LOOP_LIMIT=256` did not either. DRED's stopping command, one run each: | Run | TDR | Command | Shaders | |---|---|---|---| | 1 | 2 s | DispatchMesh, 2 groups | mesh `bb8e58b3ddd93bfd`, pixel `0f4693d56bb63abc` | | 2 | 2 s, loop limit 256, run 1's mesh skipped | ExecuteIndirect kind 10 | mesh `d0503aa87911743e`, pixel `5a0b31c2cd7fb82e` | | 3 | 2 s | DispatchMesh, 1 group | mesh `af6d42b80481c3a5`, pixel `2567ef6bc3625832` | | 4 | 60 s, #951 commits | DispatchMesh, 58 groups | mesh `f0c7efd2aceb2aaa`, pixel `7d85c9cab3c80721` | | 5 | 60 s, #951 commits, reach 128 MB | DispatchMesh, 4 groups | mesh `02a1fac69125ab5e`, pixel `e81f634f4832432c` | `f0c7efd2aceb2aaa` is one of the seven in #951's Aftermath dumps. I disassembled the DXIL of run 3's pair (`af6d42b80481c3a5` and `2567ef6bc3625832`, captured with an in-game dump by hash). Neither has a loop. The mesh shader has 13 barriers in 8 blocks; every path from the entry reaches them, none is inside a loop, and `SetMeshOutputCounts(128, 128)` is in the entry block. So that draw cannot hang on its own logic, which fits a fault (or another command in the same barrier window: DRED printed one command per window here). Side effect of the #951 commits on this tree: copies per frame rose from about 300 MB to 1.5 to 3.4 GB (wide windows copied again each frame). Not tried: Aftermath, #568, the console flow (#233/#439) for mesh.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:51 UTC · original

Automated triage for the maintainers.

Thanks for the complete report (RTX 3060, driver 32.0.16.2124, Windows 11 26100, d2a4bae). The pieces are tracked in these places:

  • The world device removal / no image on NVIDIA is the failure tracked in #71. The DRED stops on mesh dispatches in the comment above fit what is collected there and in #778.
  • The 112 refused wave64 compute pipelines match main: Lower::new in crates/victory-shader/src/emit/lower.rs declares the console wave size, and a 32-lane host refuses it. Open PRs for this are listed on #71, for example #189 and #1922.
  • The debug-layer error, a title buffer in UNORDERED_ACCESS used as a vertex buffer, is tracked in #199 (open PR #334).
    The ffe310e vs #334 comparison suggested above would be a useful data point for #199.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1001#issuecomment-7155240199) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T15:12:12Z at=2026-11-25T06:51:59Z --> Automated triage for the maintainers. Thanks for the complete report (RTX 3060, driver 32.0.16.2124, Windows 11 26100, `d2a4bae`). The pieces are tracked in these places: - The world device removal / no image on NVIDIA is the failure tracked in #71. The DRED stops on mesh dispatches in the comment above fit what is collected there and in #778. - The 112 refused wave64 compute pipelines match `main`: `Lower::new` in `crates/victory-shader/src/emit/lower.rs` declares the console wave size, and a 32-lane host refuses it. Open PRs for this are listed on #71, for example #189 and #1922. - The debug-layer error, a title buffer in `UNORDERED_ACCESS` used as a vertex buffer, is tracked in #199 (open PR #334). The `ffe310e` vs #334 comparison suggested above would be a useful data point for #199. --- _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#1001
No description provided.