What's needed right now to get the game further? #732

Open
opened 2026-11-26 04:13:53 +00:00 by github-bot · 46 comments
Owner

@⁠Dufftwt on GitHub · 2026-11-24 08:45 UTC · original

Where it stands (README, 23 Nov): the game boots, gets through the menus and loads into the world. In the world, most of the scene is dark, a frame takes 0.5–1.8 s, and real GPUs can hang.

New PRs are paused while the queue is reviewed (#712). That makes this a good time to agree on what actually blocks progress, so the next round of work goes there. In plain words:

  1. What's the biggest thing stopping the game from going further right now?
  2. What can people without the game work on that would help with that?
  3. What should people with the game test and send back (which build, which logs, which settings)?

A line or two each is plenty. If the maintainer already has a list, a pinned reply would help everyone aim at the same things.

**@⁠Dufftwt** on GitHub · 2026-11-24 08:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/732) Where it stands (README, 23 Nov): the game boots, gets through the menus and loads into the world. In the world, most of the scene is dark, a frame takes 0.5–1.8 s, and real GPUs can hang. New PRs are paused while the queue is reviewed (#712). That makes this a good time to agree on what actually blocks progress, so the next round of work goes there. In plain words: 1. **What's the biggest thing stopping the game from going further right now?** 2. **What can people without the game work on** that would help with that? 3. **What should people with the game test and send back** (which build, which logs, which settings)? A line or two each is plenty. If the maintainer already has a list, a pinned reply would help everyone aim at the same things.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:53 +00:00
Author
Owner

@⁠Conrage on GitHub · 2026-11-24 09:12 UTC · original · edited 2026-11-24 09:26 UTC

I would be happy to help with anything, let me know if and how i can contribute

Here are some issues and possible fixes:

1. Textures and buffers reached through ResourceDescriptorHeap[] are never refreshed or transitioned

Only views in descriptor tables get their contents uploaded. tables() filters u.root == RootType::Table (crates/victory-gpu/src/draw.rs:649), and only those entries reach readable() (draw.rs:1105). readable() is the only draw-time caller of texture::upload and shadow.refresh. Heap-indexed resources (RootType::ResourceHeap) never pass through it. The only other upload path is copies (list.rs:449, 543).
Effect: a bindless texture keeps its creation contents (black), and a bindless buffer keeps its first-use copy. host.rs:149 and shadow.rs:13-16 acknowledge this.
Fix idea: at submission, upload and transition the title-written resources that the bound heap's views name.

2. DispatchMeshX with indirect arguments is dropped

crates/victory-gpu/src/list.rs:1082-1086: if indirect != 0, it warns once ("indirect mesh dispatches dropped") and returns.
Fix idea: route it through State::execute_indirect with kind MESH (10), which already exists and handles mesh (draw.rs:983).

3. ExecuteIndirect runs only single-argument signatures

list.rs:1169 matches ([[kind, ..]], ..), which is a slice of exactly one argument. Signatures that also set root constants or views per record (draw-ID patterns) are counted and dropped. They log "indirect execution dropped (first time for this signature)".

4. A texture that once received a host copy ignores later title writes

texture.rs:109-113: once a texture is in HOST_WRITTEN (set by CopyResource/CopyTextureRegion/resolve, list.rs:454, 550, 634), upload always returns early. The flag is cleared only when the resource is dropped (resource.rs:976). If the title later writes that texture's memory (for example by streaming), the host never sees it.

5. ID3D12Fence::SetEventOnCompletion(value, NULL) returns E_NOTIMPL

crates/victory-gpu/src/fence.rs:90-95. D3D12 defines a NULL event as "block until reached". The comment's reason ("nothing can reach it while no GPU work runs") no longer holds, since signal runs from queues and the CPU (fence.rs:99, queue.rs:160).
Fix idea: a Condvar beside waiters, with signal calling notify_all. This is small and unit-testable.

**@⁠Conrage** on GitHub · 2026-11-24 09:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7127109225) · edited 2026-11-24 09:26 UTC I would be happy to help with anything, let me know if and how i can contribute Here are some issues and possible fixes: ### 1. Textures and buffers reached through `ResourceDescriptorHeap[]` are never refreshed or transitioned Only views in descriptor **tables** get their contents uploaded. `tables()` filters `u.root == RootType::Table` (`crates/victory-gpu/src/draw.rs:649`), and only those entries reach `readable()` (`draw.rs:1105`). `readable()` is the only draw-time caller of `texture::upload` and `shadow.refresh`. Heap-indexed resources (`RootType::ResourceHeap`) never pass through it. The only other upload path is copies (`list.rs:449`, `543`). **Effect:** a bindless texture keeps its creation contents (black), and a bindless buffer keeps its first-use copy. `host.rs:149` and `shadow.rs:13-16` acknowledge this. **Fix idea:** at submission, upload and transition the title-written resources that the bound heap's views name. ### 2. `DispatchMeshX` with indirect arguments is dropped `crates/victory-gpu/src/list.rs:1082-1086`: if `indirect != 0`, it warns once ("indirect mesh dispatches dropped") and returns. **Fix idea:** route it through `State::execute_indirect` with kind `MESH` (10), which already exists and handles mesh (`draw.rs:983`). ### 3. `ExecuteIndirect` runs only single-argument signatures `list.rs:1169` matches `([[kind, ..]], ..)`, which is a slice of exactly one argument. Signatures that also set root constants or views per record (draw-ID patterns) are counted and dropped. They log "indirect execution dropped (first time for this signature)". ### 4. A texture that once received a host copy ignores later title writes `texture.rs:109-113`: once a texture is in `HOST_WRITTEN` (set by `CopyResource`/`CopyTextureRegion`/resolve, `list.rs:454`, `550`, `634`), `upload` always returns early. The flag is cleared only when the resource is dropped (`resource.rs:976`). If the title later writes that texture's memory (for example by streaming), the host never sees it. ### 5. `ID3D12Fence::SetEventOnCompletion(value, NULL)` returns `E_NOTIMPL` `crates/victory-gpu/src/fence.rs:90-95`. D3D12 defines a NULL event as "block until reached". The comment's reason ("nothing can reach it while no GPU work runs") no longer holds, since `signal` runs from queues and the CPU (`fence.rs:99`, `queue.rs:160`). **Fix idea:** a `Condvar` beside `waiters`, with `signal` calling `notify_all`. This is small and unit-testable.
Author
Owner

@⁠Conrage on GitHub · 2026-11-24 09:40 UTC · original

I went through the GPU side of the code against the README's current blockers (dark world, slow frames) and filed what I could confirm in the code. I can't run the game, so each issue gives the code path and says which effect is a guess.

Possibly behind the dark world:

  • #754 Textures and buffers read through ResourceDescriptorHeap are never refreshed or transitioned
  • #756 DispatchMeshX with indirect arguments is silently dropped
  • #757 ExecuteIndirect only runs single-argument command signatures
  • #758 A texture that once received a GPU copy ignores later writes to its memory

Smaller ones, with patches inline since PRs are paused:

  • #759 SetEventOnCompletion with a NULL event returns E_NOTIMPL instead of blocking
  • #760 Design docs cited in the code are missing (decision 0003/0007, TODO.md)
  • #761 docs/architecture.md still lists BCPack as planned

For question 3: anyone with the game could post the "indirect mesh dispatches dropped" and "indirect execution dropped" log lines from a world run on a diagnostics build. That would show how much #756 and #757 matter.

AI use: found and written with Claude from reading the code; not run on hardware.

**@⁠Conrage** on GitHub · 2026-11-24 09:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7127733743) I went through the GPU side of the code against the README's current blockers (dark world, slow frames) and filed what I could confirm in the code. I can't run the game, so each issue gives the code path and says which effect is a guess. Possibly behind the dark world: - #754 Textures and buffers read through ResourceDescriptorHeap are never refreshed or transitioned - #756 DispatchMeshX with indirect arguments is silently dropped - #757 ExecuteIndirect only runs single-argument command signatures - #758 A texture that once received a GPU copy ignores later writes to its memory Smaller ones, with patches inline since PRs are paused: - #759 SetEventOnCompletion with a NULL event returns E_NOTIMPL instead of blocking - #760 Design docs cited in the code are missing (decision 0003/0007, TODO.md) - #761 docs/architecture.md still lists BCPack as planned For question 3: anyone with the game could post the "indirect mesh dispatches dropped" and "indirect execution dropped" log lines from a world run on a diagnostics build. That would show how much #756 and #757 matter. _AI use: found and written with Claude from reading the code; not run on hardware._
Author
Owner

@⁠Wasler on GitHub · 2026-11-24 09:46 UTC · original

Here are diagnostics-build logs from a Windows 11 run (--profile diag --features diagnostics, VICTORY_D3D12_WARP=1, VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1) on Marvisak/VIctory (66252c0, base d2a4bae / #728 fixes), up to the crash right after initial settings:

Progress & Shader Stats

  • Reached: Account selection -> intro logo animation -> initial settings -> crash on scene/world load (frame=1194 on the first run; 1-list submission on the second).
  • Shaders in this run: 841 translated, 71 failed to translate (a descriptor neither loaded nor built, a structured buffer of unknown stride, a hardware SGPR input, image_gather4_l, barycentrics read directly, an LDS write of bytes or halves, a descriptor read only as data, a descriptor chosen by control flow).

indirect execution dropped & indirect mesh (per #756 / #757)

  • indirect mesh dispatches dropped: 0 occurrences before the crash.
  • indirect execution dropped (5 signatures before the crash):
    • stride=12 args=[[2, 13, 0, 0]] max=1
    • stride=12 args=[[105, 0, 60000, 0]] max=1
    • stride=12 args=[[10, 0, 489318063, 32764]]
    • stride=20 args=[[1, 32764, 439707812, 32764]] max=1
    • stride=16 args=[[0, 32764, 8, 0]] max=1

D3D12 Debug Layer & DRED Crash (WARP)

  • D3D12 API errors (severity=0): 0.
  • D3D12 warnings (id=622, severity=1): Shader wants wave lane count of 32 / 64 but maximum wave lane count for device is 4 (WARP cap, causing 0x80070057 on several compute PSOs).
  • Crash: d3d10warp.dll hits repeated first-chance exception 0xc0000005 (read 0x0) followed by DXGI_ERROR_DEVICE_REMOVED (0x887A0005).
  • DRED (crashes.log): Fails on a 1-list submission (list 0 of 1, of its 50) running dispatch ... [compute 269b802f878c24e1] with Uav s0+288: uav None and u4=0xa67100 [heap 340872: null]. (An earlier 32-list crash ended around compute 1d449fb6a212a044 / compute 9381f54ec01b7adb also with Uav s1+16: uav None).
**@⁠Wasler** on GitHub · 2026-11-24 09:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7127874469) Here are diagnostics-build logs from a Windows 11 run (`--profile diag --features diagnostics`, `VICTORY_D3D12_WARP=1`, `VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_DRED=1`) on `Marvisak/VIctory` (`66252c0`, base `d2a4bae` / `#728` fixes), up to the crash right after initial settings: ### Progress & Shader Stats - **Reached:** Account selection -> intro logo animation -> initial settings -> crash on scene/world load (`frame=1194` on the first run; 1-list submission on the second). - **Shaders in this run:** `841` translated, `71` failed to translate (`a descriptor neither loaded nor built`, `a structured buffer of unknown stride`, `a hardware SGPR input`, `image_gather4_l`, `barycentrics read directly`, `an LDS write of bytes or halves`, `a descriptor read only as data`, `a descriptor chosen by control flow`). ### `indirect execution dropped` & `indirect mesh` (per #756 / #757) - `indirect mesh dispatches dropped`: **0** occurrences before the crash. - `indirect execution dropped` (**5** signatures before the crash): - `stride=12 args=[[2, 13, 0, 0]] max=1` - `stride=12 args=[[105, 0, 60000, 0]] max=1` - `stride=12 args=[[10, 0, 489318063, 32764]]` - `stride=20 args=[[1, 32764, 439707812, 32764]] max=1` - `stride=16 args=[[0, 32764, 8, 0]] max=1` ### D3D12 Debug Layer & DRED Crash (`WARP`) - **D3D12 API errors (`severity=0`):** `0`. - **D3D12 warnings (`id=622`, `severity=1`):** `Shader wants wave lane count of 32 / 64 but maximum wave lane count for device is 4` (WARP cap, causing `0x80070057` on several compute PSOs). - **Crash:** `d3d10warp.dll` hits repeated `first-chance exception 0xc0000005 (read 0x0)` followed by `DXGI_ERROR_DEVICE_REMOVED (0x887A0005)`. - **DRED (`crashes.log`):** Fails on a `1`-list submission (`list 0 of 1, of its 50`) running `dispatch ... [compute 269b802f878c24e1]` with `Uav s0+288: uav None` and `u4=0xa67100 [heap 340872: null]`. (An earlier `32`-list crash ended around `compute 1d449fb6a212a044` / `compute 9381f54ec01b7adb` also with `Uav s1+16: uav None`).
Author
Owner

@⁠RID-Games on GitHub · 2026-11-24 09:55 UTC · original · edited 2026-11-24 10:21 UTC

Integration status of the community shader fixes (verified on Linux, rustc 1.100, cargo test -p victory-shader):

Stacked https://github.com/Hiiva/VIctory@hiiva/heap-uav-coherence (#724/#725, [fa119dd](https://github.com/Hiiva/VIctory/commit/fa119dd) + [5c26db0](https://github.com/Hiiva/VIctory/commit/5c26db0), plus the one-line glc marking from #724) on top of [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech/VIctory)'s integrate/gta6-world-and-shader-fixes ([60b7efb](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/60b7efb)). One conflict: the image atomic handle — the integration branch adds the 64-bit atomic feature bits, the heap-uav branch adds the glc resource flags; keep both. Resolved, the whole stack is 79 tests passing on Linux.

One fix the integration branch needs: sixty_four_bit_image_atomics_lower_and_validate calls validator::Validator::load unguarded, but validator is #[cfg(windows)] (emit/mod.rs:88), so cargo test -p victory-shader does not compile on Linux (E0433). Gate the call with #[cfg(windows)] as emit/mod.rs:471 does — #752 shows people are running on Linux.

Still missing for the world after this stack (from #748's translate stats): "a scalar memory read as data" (604 programs), "a descriptor read only as data" (388, partly addressed by the #736 fix), "a descriptor neither loaded nor built" (298), "a select on an untracked mask" (288).

AI-assisted.

**@⁠RID-Games** on GitHub · 2026-11-24 09:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7128063142) · edited 2026-11-24 10:21 UTC Integration status of the community shader fixes (verified on Linux, rustc 1.100, `cargo test -p victory-shader`): Stacked [https://github.com/Hiiva/VIctory@hiiva/heap-uav-coherence](https://github.com/Hiiva/VIctory/tree/hiiva/heap-uav-coherence) (#724/#725, `[fa119dd](https://github.com/Hiiva/VIctory/commit/fa119dd)` + `[5c26db0](https://github.com/Hiiva/VIctory/commit/5c26db0)`, plus the one-line glc marking from #724) on top of `[LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech/VIctory)`'s [`integrate/gta6-world-and-shader-fixes`](https://github.com/LAKSHYA-cmd-tech/VIctory/tree/integrate/gta6-world-and-shader-fixes) (`[60b7efb](https://github.com/LAKSHYA-cmd-tech/VIctory/commit/60b7efb)`). One conflict: the image atomic handle — the integration branch adds the 64-bit atomic feature bits, the heap-uav branch adds the glc resource flags; keep both. Resolved, the whole stack is **79 tests passing on Linux**. One fix the integration branch needs: `sixty_four_bit_image_atomics_lower_and_validate` calls `validator::Validator::load` unguarded, but `validator` is `#[cfg(windows)]` ([`emit/mod.rs:88`](https://github.com/Marvisak/VIctory/blob/8e79c80/crates/victory-shader/src/emit/mod.rs#L88)), so `cargo test -p victory-shader` does not compile on Linux (`E0433`). Gate the call with `#[cfg(windows)]` as [`emit/mod.rs:471`](https://github.com/Marvisak/VIctory/blob/8e79c80/crates/victory-shader/src/emit/mod.rs#L471) does — #752 shows people are running on Linux. Still missing for the world after this stack (from #748's translate stats): "a scalar memory read as data" (604 programs), "a descriptor read only as data" (388, partly addressed by the #736 fix), "a descriptor neither loaded nor built" (298), "a select on an untracked mask" (288). AI-assisted.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 10:34 UTC · original

@⁠Wasler thanks, that's exactly the kind of log that helps.

Your crash looks like #508. The dispatch that removes the device has UAV slots with no view behind them (Uav s0+288: uav None, [heap 340872: null]). As #568 explains, such a slot currently holds a null Texture2D SRV descriptor. A shader that writes it as a UAV buffer then uses a descriptor of the wrong type, which is undefined: here WARP reads through a null pointer, and in #508 an RDNA3 GPU page-faults. #568 fills those slots with a null descriptor of the kind the shader expects, so the writes are simply dropped.

Could you try once more with #568 on top of current main? Your build is based on d2a4bae, and main has had 59 merges since. #568 merges into it cleanly.

git fetch origin
git checkout -B test-568 origin/main
git fetch origin pull/568/head:pr-568
git merge pr-568
cargo build --profile diag -p victory --features diagnostics

If you can, run it on your real GPU instead of WARP:

  • WARP's maximum wave size is 4, so it refuses every compute pipeline that needs 32- or 64-lane waves (your id=622 warnings). The dispatches that use them are dropped, so a WARP run shows less than a GPU would.
  • As the README warns, a real GPU can hang on entering the world, and Windows then resets the display driver. With VICTORY_D3D12_DRED=1 still set, crashes.log names the dispatch if that happens.

What would help most:

  1. Whether it gets past the point where it crashed before.
  2. If it still crashes, the DRED part of crashes.log.
  3. The dropped …/frame without a host pipeline: … lines from the log, which a diagnostics build prints every 5 s. They give the reason behind each "indirect execution dropped" signature, such as a pipeline that wasn't made or a shader that didn't translate.
**@⁠Dufftwt** on GitHub · 2026-11-24 10:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7128956013) @⁠Wasler thanks, that's exactly the kind of log that helps. **Your crash looks like #508.** The dispatch that removes the device has UAV slots with no view behind them (`Uav s0+288: uav None`, `[heap 340872: null]`). As #568 explains, such a slot currently holds a null *Texture2D SRV* descriptor. A shader that writes it as a UAV buffer then uses a descriptor of the wrong type, which is undefined: here WARP reads through a null pointer, and in #508 an RDNA3 GPU page-faults. #568 fills those slots with a null descriptor of the kind the shader expects, so the writes are simply dropped. Could you try once more with #568 on top of current `main`? Your build is based on `d2a4bae`, and main has had 59 merges since. #568 merges into it cleanly. ``` git fetch origin git checkout -B test-568 origin/main git fetch origin pull/568/head:pr-568 git merge pr-568 cargo build --profile diag -p victory --features diagnostics ``` If you can, run it on your real GPU instead of WARP: - WARP's maximum wave size is 4, so it refuses every compute pipeline that needs 32- or 64-lane waves (your `id=622` warnings). The dispatches that use them are dropped, so a WARP run shows less than a GPU would. - As the README warns, a real GPU can hang on entering the world, and Windows then resets the display driver. With `VICTORY_D3D12_DRED=1` still set, `crashes.log` names the dispatch if that happens. What would help most: 1. Whether it gets past the point where it crashed before. 2. If it still crashes, the DRED part of `crashes.log`. 3. The `dropped …/frame without a host pipeline: …` lines from the log, which a diagnostics build prints every 5 s. They give the reason behind each "indirect execution dropped" signature, such as a pipeline that wasn't made or a shader that didn't translate.
Author
Owner

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

@⁠Dufftwt Tested test-568 (origin/main ffe310e + PR #568, commit 22e6676) on the real GPU (NVIDIA GeForce RTX 5060 Ti, Windows 11, --profile diag --features diagnostics, VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1):

1. Did it get past the previous crash?

Yes. The old #508 / uav None crash (compute 269b802f878c24e1 / 731a39171b568298) is gone. It ran for ~2m47s into world/scene loading (1539 shaders translated, 403 failed to translate, 4591 draws at frame=1024).

2. Where it stops now (DRED + D3D12 Debug Layer)

It then hit DXGI_ERROR_DEVICE_HUNG (0x887A0006) after a submission of 11 lists, and the D3D12 Debug Layer caught a vertex ↔ UAV resource state conflict (matching #751):

D3D12: ID3D12CommandQueue1::ExecuteCommandLists: Using IASetVertexBuffers on Command List:
Resource state (0x8: D3D12_RESOURCE_STATE_UNORDERED_ACCESS) of resource ('title buffer 0x11680000+0xae00000') (subresource: 0)
is invalid for use as a vertex buffer. Expected State Bits (all): 0x1: D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER,
Actual State: 0x8: D3D12_RESOURCE_STATE_UNORDERED_ACCESS, Missing State: 0x1: D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER.

DRED tail (list 10 of 11):

  • list 10 of 11, of its 4: dispatch 10x6x64 [compute 9ef9a9d818b27236] (with Srv s1+0 placed 0x12a7f880, Uav s1+8 buffer (58411053312, 1024), Uav s1+16 buffer (58668941312, 921600), Uav s1+24 80x45 f42)

3. dropped ... without a host pipeline & indirect execution dropped

Last 5-second stats before the hang:

dropped 1423 without a host pipeline (0 being made) and 1475 indirect
dropped 1319 without a host pipeline (1 being made) and 1848 indirect
dropped 1828 without a host pipeline (0 being made) and 4550 indirect
dropped 1192 without a host pipeline (0 being made) and 2943 indirect
dropped 1216 without a host pipeline (0 being made) and 2157 indirect

(indirect execution dropped signatures: stride=12 args=[[2, 13, 0, 0]] max=1, stride=12 args=[[10, 0, ...]], stride=20 args=[[1, 32763, ...]], stride=12 args=[[105, 0, 60000, 0]] max=1, stride=16 args=[[0, 32763, 8, 0]] max=1).

**@⁠Wasler** on GitHub · 2026-11-24 11:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7129596648) @⁠Dufftwt Tested `test-568` (`origin/main` `ffe310e` + PR `#568`, commit `22e6676`) on the real GPU (`NVIDIA GeForce RTX 5060 Ti`, Windows 11, `--profile diag --features diagnostics`, `VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_DRED=1`): ### 1. Did it get past the previous crash? **Yes.** The old `#508` / `uav None` crash (`compute 269b802f878c24e1` / `731a39171b568298`) is gone. It ran for ~2m47s into world/scene loading (`1539` shaders translated, `403` failed to translate, `4591` draws at `frame=1024`). ### 2. Where it stops now (DRED + D3D12 Debug Layer) It then hit `DXGI_ERROR_DEVICE_HUNG (0x887A0006)` after a submission of `11` lists, and the D3D12 Debug Layer caught a **vertex ↔ UAV resource state conflict** (matching `#751`): ```text D3D12: ID3D12CommandQueue1::ExecuteCommandLists: Using IASetVertexBuffers on Command List: Resource state (0x8: D3D12_RESOURCE_STATE_UNORDERED_ACCESS) of resource ('title buffer 0x11680000+0xae00000') (subresource: 0) is invalid for use as a vertex buffer. Expected State Bits (all): 0x1: D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER, Actual State: 0x8: D3D12_RESOURCE_STATE_UNORDERED_ACCESS, Missing State: 0x1: D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER. ``` DRED tail (`list 10 of 11`): - `list 10 of 11, of its 4`: `dispatch 10x6x64 [compute 9ef9a9d818b27236]` (with `Srv s1+0` placed `0x12a7f880`, `Uav s1+8` buffer `(58411053312, 1024)`, `Uav s1+16` buffer `(58668941312, 921600)`, `Uav s1+24` `80x45 f42`) ### 3. `dropped ... without a host pipeline` & `indirect execution dropped` Last 5-second stats before the hang: ```text dropped 1423 without a host pipeline (0 being made) and 1475 indirect dropped 1319 without a host pipeline (1 being made) and 1848 indirect dropped 1828 without a host pipeline (0 being made) and 4550 indirect dropped 1192 without a host pipeline (0 being made) and 2943 indirect dropped 1216 without a host pipeline (0 being made) and 2157 indirect ``` (`indirect execution dropped` signatures: `stride=12 args=[[2, 13, 0, 0]] max=1`, `stride=12 args=[[10, 0, ...]]`, `stride=20 args=[[1, 32763, ...]]`, `stride=12 args=[[105, 0, 60000, 0]] max=1`, `stride=16 args=[[0, 32763, 8, 0]] max=1`).
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 11:20 UTC · original

@⁠Wasler great news, thank you! Getting past that crash on your GPU is a good sign for #568 (your earlier crash was on WARP, so it's not a strict A/B).

The new stop is the one #334 fixes. A title buffer that a shader wrote is left in UNORDERED_ACCESS and then used as a vertex buffer. Several testers on #334 report it takes exactly those debug-layer errors to 0, then hit a later hang. On some machines, that later hang is a page fault just past the end of a 4 MB host copy, which #493 fixes (one RX 9070 XT went from ~145 s to 195 s in the world with it).

All three merge cleanly onto ffe310e, and on GitHub's Windows runner the GPU and shader tests pass on that stack (victory-gpu 54 passed, victory-shader 122 passed).

git fetch origin pull/334/head:pr-334 pull/493/head:pr-493
git checkout test-568
git merge pr-334
git merge pr-493
cargo build --profile diag -p victory --features diagnostics

Same as before, what helps most:

  1. How far it gets, and the last debug-layer errors plus the DRED tail if it stops.

  2. The per-reason drop lines: in a diagnostics build, each 5-second totals line (dropped 1423 without a host pipeline … and 1475 indirect) is followed by lines like dropped 12.3/frame without a host pipeline: indirect kind 2: prepare failed …. Those say why the draws drop.

  3. Which reasons make the 403 shaders fail to translate, counted. In PowerShell, with your log file:

    Select-String "shader does not translate" .\your-log.txt | % { ($_.Line -split 'error=')[-1] } | Group-Object | Sort-Object Count -Descending | Format-Table Count, Name -AutoSize
    

    That shows which missing piece of shader translation would bring back the most draws, and it's work people without the game can do.

**@⁠Dufftwt** on GitHub · 2026-11-24 11:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7129973509) @⁠Wasler great news, thank you! Getting past that crash on your GPU is a good sign for #568 (your earlier crash was on WARP, so it's not a strict A/B). **The new stop is the one #334 fixes.** A title buffer that a shader wrote is left in `UNORDERED_ACCESS` and then used as a vertex buffer. Several testers on #334 report it takes exactly those debug-layer errors to 0, then hit a later hang. On some machines, that later hang is a page fault just past the end of a 4 MB host copy, which #493 fixes (one RX 9070 XT went from ~145 s to 195 s in the world with it). All three merge cleanly onto `ffe310e`, and on GitHub's Windows runner the GPU and shader tests pass on that stack (`victory-gpu` 54 passed, `victory-shader` 122 passed). ``` git fetch origin pull/334/head:pr-334 pull/493/head:pr-493 git checkout test-568 git merge pr-334 git merge pr-493 cargo build --profile diag -p victory --features diagnostics ``` Same as before, what helps most: 1. How far it gets, and the last debug-layer errors plus the DRED tail if it stops. 2. The per-reason drop lines: in a diagnostics build, each 5-second totals line (`dropped 1423 without a host pipeline … and 1475 indirect`) is followed by lines like `dropped 12.3/frame without a host pipeline: indirect kind 2: prepare failed …`. Those say *why* the draws drop. 3. Which reasons make the 403 shaders fail to translate, counted. In PowerShell, with your log file: ```powershell Select-String "shader does not translate" .\your-log.txt | % { ($_.Line -split 'error=')[-1] } | Group-Object | Sort-Object Count -Descending | Format-Table Count, Name -AutoSize ``` That shows which missing piece of shader translation would bring back the most draws, and it's work people without the game can do.
Author
Owner

@⁠Wasler on GitHub · 2026-11-24 11:21 UTC · original

@⁠Dufftwt Quick follow-up on test-568 (22e6676) on RTX 5060 Ti with VICTORY_GPU_TIMING=1 (splitting each list into its own ExecuteCommandLists):

  • The IASetVertexBuffers (UNORDERED_ACCESS -> VERTEX_AND_CONSTANT_BUFFER) state error disappeared completely (0 D3D12 resource-state errors in the log), confirming it was a cross-list Shadow barrier issue between lists in the same submission (#751).
  • The run reached frame=1510 (1583 shaders translated, 397 failed to translate) before hitting a single hung list (slow host list ms=8456 commands=230) -> DXGI_ERROR_DEVICE_HUNG (0x887A0006) on the same submission (list 10 of 11, compute 9ef9a9d818b27236).
**@⁠Wasler** on GitHub · 2026-11-24 11:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7129994386) @⁠Dufftwt Quick follow-up on `test-568` (`22e6676`) on RTX 5060 Ti with `VICTORY_GPU_TIMING=1` (splitting each list into its own `ExecuteCommandLists`): - **The `IASetVertexBuffers` (`UNORDERED_ACCESS` -> `VERTEX_AND_CONSTANT_BUFFER`) state error disappeared completely** (`0` D3D12 resource-state errors in the log), confirming it was a cross-list `Shadow` barrier issue between lists in the same submission (#751). - The run reached `frame=1510` (`1583` shaders translated, `397` failed to translate) before hitting a single hung list (`slow host list ms=8456 commands=230`) -> `DXGI_ERROR_DEVICE_HUNG (0x887A0006)` on the same submission (`list 10 of 11`, `compute 9ef9a9d818b27236`).
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 11:26 UTC · original

@⁠Wasler thanks, that fits. Lists of one submission share buffer states, so splitting them hides the error; #334 fixes it without the split (see my comment just above yours, which crossed with it).

The new stop is one compute dispatch, 9ef9a9d818b27236 (10x6x64), that runs for 8.5 s. Two quick checks would tell us what kind of problem it is. Both work in a diagnostics build, one run each:

  1. VICTORY_SHADER_LOOP_LIMIT=1000: translated loops give up after 1,000 iterations instead of about a million. If the hang goes away, that shader is stuck in a loop on the PC. The likely case is a loop waiting for a value another workgroup writes, which is what #725 is about. (The limit is part of the translation, so every shader is translated again on that run.)
  2. VICTORY_SKIP_PIPELINES=9ef9a9d818b27236: skips that shader's dispatches, so we see what stops the run next.

Please don't post the shader's code or disassembly: the asset policy rules out shader dumps. The result of the two runs is enough.

**@⁠Dufftwt** on GitHub · 2026-11-24 11:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130092619) @⁠Wasler thanks, that fits. Lists of one submission share buffer states, so splitting them hides the error; #334 fixes it without the split (see my comment just above yours, which crossed with it). The new stop is one compute dispatch, `9ef9a9d818b27236` (10x6x64), that runs for 8.5 s. Two quick checks would tell us what kind of problem it is. Both work in a diagnostics build, one run each: 1. **`VICTORY_SHADER_LOOP_LIMIT=1000`**: translated loops give up after 1,000 iterations instead of about a million. If the hang goes away, that shader is stuck in a loop on the PC. The likely case is a loop waiting for a value another workgroup writes, which is what #725 is about. (The limit is part of the translation, so every shader is translated again on that run.) 2. **`VICTORY_SKIP_PIPELINES=9ef9a9d818b27236`**: skips that shader's dispatches, so we see what stops the run next. Please don't post the shader's code or disassembly: the asset policy rules out shader dumps. The result of the two runs is enough.
Author
Owner

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

@⁠Dufftwt Ran both checks on test-568 (22e6676) on RTX 5060 Ti (with VICTORY_GPU_TIMING=1, VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1):

  1. VICTORY_SHADER_LOOP_LIMIT=1000:

    • 9ef9a9d818b27236 compiled and did not hang — the 11-list submission passed!
    • The run then got further (1575 translated, 369 failed) before hitting a later DXGI_ERROR_DEVICE_HUNG (0x887A0006) on a 30-list submission (slow host list ms=2682 commands=78, DRED tail: list 26 of 30 [mesh 4c5ab7a8ed26bb84], list 29 of 30 [compute 12eae112b559091c], [compute a133bf0a24aff410], [compute 4c0ac499ad613809]).
  2. VICTORY_SKIP_PIPELINES=9ef9a9d818b27236 (without loop limit):

    • The same 11-list submission still hung (slow host list ms=6807 commands=84, 0x887A0006), with list 10 of 11 now ending in 3 dispatches ([compute da2fdff4709c3189], [compute ba4e20a2fd348338], [compute 4fcf26015f70eecf]) and earlier in-flight lists 7/8 ([compute 5af5bbc0c3267799], [vertex 2634f1e308bc9ae1, pixel 3dc5a8831849e058], [vertex 4adcfeaa24ae6450, pixel 9ab96b7a002d6ac8], [vertex afad629131a4d329]).

So VICTORY_SHADER_LOOP_LIMIT=1000 definitely breaks out of the loop hang in that 11-list submission, and 9ef9a9d818b27236 isn't the only shader in that submission hitting the loop hang.

**@⁠Wasler** on GitHub · 2026-11-24 11:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130596986) @⁠Dufftwt Ran both checks on `test-568` (`22e6676`) on RTX 5060 Ti (with `VICTORY_GPU_TIMING=1`, `VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_DRED=1`): 1. **`VICTORY_SHADER_LOOP_LIMIT=1000`**: - **`9ef9a9d818b27236` compiled and did not hang** — the `11`-list submission passed! - The run then got further (`1575` translated, `369` failed) before hitting a later `DXGI_ERROR_DEVICE_HUNG (0x887A0006)` on a **`30`-list** submission (`slow host list ms=2682 commands=78`, DRED tail: `list 26 of 30` `[mesh 4c5ab7a8ed26bb84]`, `list 29 of 30` `[compute 12eae112b559091c]`, `[compute a133bf0a24aff410]`, `[compute 4c0ac499ad613809]`). 2. **`VICTORY_SKIP_PIPELINES=9ef9a9d818b27236`** (without loop limit): - **The same `11`-list submission still hung (`slow host list ms=6807 commands=84`, `0x887A0006`)**, with `list 10 of 11` now ending in `3` dispatches (`[compute da2fdff4709c3189]`, `[compute ba4e20a2fd348338]`, `[compute 4fcf26015f70eecf]`) and earlier in-flight lists `7`/`8` (`[compute 5af5bbc0c3267799]`, `[vertex 2634f1e308bc9ae1, pixel 3dc5a8831849e058]`, `[vertex 4adcfeaa24ae6450, pixel 9ab96b7a002d6ac8]`, `[vertex afad629131a4d329]`). So `VICTORY_SHADER_LOOP_LIMIT=1000` definitely breaks out of the loop hang in that `11`-list submission, and `9ef9a9d818b27236` isn't the only shader in that submission hitting the loop hang.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 11:57 UTC · original

@⁠Wasler that's a clear answer, thanks. 9ef9a9d818b27236 is stuck in a loop on the PC. Skipping it only moves the hang to the next dispatches in the same list, which looks like they wait for what it produces.

The question now is why the loop never ends here. My best guess is #725: the loop polls a value that other workgroups write, using glc loads, which we translate as ordinary cached loads, so on the PC the new value may never be seen. dpalacios69 has a fix for that on a branch (see #725). It conflicts with #568 in one file, so I merged it for you with #568, #334 and #493 onto ffe310e (keeping both sides). On GitHub's Windows runner the GPU and shader tests pass on the result (victory-gpu 54 passed, victory-shader 127 passed, including the fix's five new tests). Nobody has run the fix in the game yet. It's all on one branch (e0c3385):

git fetch https://github.com/Dufftwt/VIctory.git test/world-stack
git checkout -B world-stack FETCH_HEAD
cargo build --profile diag -p victory --features diagnostics

Two runs, with the same settings as your last ones:

  1. Without VICTORY_SHADER_LOOP_LIMIT. If 9ef9a9d818b27236 now finishes, the loop was waiting on a value it couldn't see, and the coherence fix is what it needed. If it still hangs, it's waiting for something else, and we look there next.
  2. With VICTORY_SHADER_LOOP_LIMIT=1000, to see how far the whole stack gets.

The branch is only for testing: none of it is merged upstream yet.

**@⁠Dufftwt** on GitHub · 2026-11-24 11:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130770917) @⁠Wasler that's a clear answer, thanks. `9ef9a9d818b27236` is stuck in a loop on the PC. Skipping it only moves the hang to the next dispatches in the same list, which looks like they wait for what it produces. The question now is *why* the loop never ends here. My best guess is #725: the loop polls a value that other workgroups write, using `glc` loads, which we translate as ordinary cached loads, so on the PC the new value may never be seen. dpalacios69 has a fix for that on a branch (see #725). It conflicts with #568 in one file, so I merged it for you with #568, #334 and #493 onto `ffe310e` (keeping both sides). On GitHub's Windows runner the GPU and shader tests pass on the result (`victory-gpu` 54 passed, `victory-shader` 127 passed, including the fix's five new tests). Nobody has run the fix in the game yet. It's all on one branch (`e0c3385`): ``` git fetch https://github.com/Dufftwt/VIctory.git test/world-stack git checkout -B world-stack FETCH_HEAD cargo build --profile diag -p victory --features diagnostics ``` Two runs, with the same settings as your last ones: 1. **Without `VICTORY_SHADER_LOOP_LIMIT`.** If `9ef9a9d818b27236` now finishes, the loop was waiting on a value it couldn't see, and the coherence fix is what it needed. If it still hangs, it's waiting for something else, and we look there next. 2. **With `VICTORY_SHADER_LOOP_LIMIT=1000`**, to see how far the whole stack gets. The branch is only for testing: none of it is merged upstream yet.
Author
Owner

@⁠nopsled0x on GitHub · 2026-11-24 11:58 UTC · original

@⁠Wasler @⁠Dufftwt a second data point on the same GPU, on Windows 10: it hangs here too. Counts only.

Windows 10 22H2 (19045), Ryzen 7 5700X3D, RTX 5060 Ti 16 GB, NVIDIA 610.88 (as in my #84 comment). --profile diag --features diagnostics, VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1, run --execute, each run stopped by timeout.

Measured:

  • main ffe310e without the Agility runtime: the title faults about 4 s in (0xc0000005, read at 0x68, same offset in two runs). No GPU errors before it.
  • With the app-local Agility 1.620.2 (#175): mesh=true, 0 root-signature refusals, 0 unhandled exceptions, 3 runs.
  • 9ef9a9d818b27236 appears in the hang report in 2 of those 3 runs (0x887A0006, 3 events each: #175 alone, and main + #175 + #568). The third run (#175 alone) did not hang in 170 s.
  • Same #175 build, two runs: one reached frame 4096 with 0 refused pipelines and 0 device removals; the other stopped at frame 1560 with 115 host pipeline refused (0x80070057) and 2 host GPU device removed.
  • No uav None entries in any run.

Reported by me, not measured: in one run the screen went black while the audio kept playing; I didn't note when. After the first device removal the log shows no more frames, which fits.

Not established: whether #568 changes anything here (runs vary by themselves, 3 runs only), and whether the world renders (I read logs, not the screen). I have not run the two checks above: your VICTORY_SHADER_LOOP_LIMIT and VICTORY_SKIP_PIPELINES results on the same card are already in this thread.

The runs, log reading and this write-up were done with an AI assistant (Claude Code); the numbers are counted from the logs.

**@⁠nopsled0x** on GitHub · 2026-11-24 11:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130796986) @⁠Wasler @⁠Dufftwt a second data point on the same GPU, on Windows 10: it hangs here too. Counts only. Windows 10 22H2 (19045), Ryzen 7 5700X3D, RTX 5060 Ti 16 GB, NVIDIA 610.88 (as in my #84 comment). `--profile diag --features diagnostics`, `VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_DRED=1`, `run --execute`, each run stopped by `timeout`. Measured: - `main` `ffe310e` without the Agility runtime: the title faults about 4 s in (`0xc0000005`, read at `0x68`, same offset in two runs). No GPU errors before it. - With the app-local Agility 1.620.2 (#175): `mesh=true`, 0 root-signature refusals, 0 unhandled exceptions, 3 runs. - `9ef9a9d818b27236` appears in the hang report in 2 of those 3 runs (`0x887A0006`, 3 events each: #175 alone, and `main` + #175 + #568). The third run (#175 alone) did not hang in 170 s. - Same #175 build, two runs: one reached frame 4096 with 0 refused pipelines and 0 device removals; the other stopped at frame 1560 with 115 `host pipeline refused` (`0x80070057`) and 2 `host GPU device removed`. - No `uav None` entries in any run. Reported by me, not measured: in one run the screen went black while the audio kept playing; I didn't note when. After the first device removal the log shows no more frames, which fits. Not established: whether #568 changes anything here (runs vary by themselves, 3 runs only), and whether the world renders (I read logs, not the screen). I have not run the two checks above: your `VICTORY_SHADER_LOOP_LIMIT` and `VICTORY_SKIP_PIPELINES` results on the same card are already in this thread. The runs, log reading and this write-up were done with an AI assistant (Claude Code); the numbers are counted from the logs.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 12:00 UTC · original

@⁠nopsled0x thanks, a second machine helps a lot. Two things in your numbers matter:

  • Same shader. 9ef9a9d818b27236 is in the hang on your card too, so it isn't specific to Wasler's setup.
  • Only 2 runs in 3. A translation bug that loops forever would hang every time. A loop that sometimes sees the value it waits for and sometimes doesn't fits better, and that's the #725 case the test branch above targets. It also means a single run that doesn't hang proves little either way.

So for test/world-stack (my comment above yours, which crossed with it), the useful number is how many of 3 runs hang without VICTORY_SHADER_LOOP_LIMIT, from each of you. On Windows 10 that needs #175 on top, as in your runs. It conflicts in apps/victory/src/main.rs, as it does with main.

**@⁠Dufftwt** on GitHub · 2026-11-24 12:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130834941) @⁠nopsled0x thanks, a second machine helps a lot. Two things in your numbers matter: - **Same shader.** `9ef9a9d818b27236` is in the hang on your card too, so it isn't specific to Wasler's setup. - **Only 2 runs in 3.** A translation bug that loops forever would hang every time. A loop that sometimes sees the value it waits for and sometimes doesn't fits better, and that's the #725 case the test branch above targets. It also means a single run that doesn't hang proves little either way. So for `test/world-stack` (my comment above yours, which crossed with it), the useful number is **how many of 3 runs hang without `VICTORY_SHADER_LOOP_LIMIT`**, from each of you. On Windows 10 that needs #175 on top, as in your runs. It conflicts in `apps/victory/src/main.rs`, as it does with `main`.
Author
Owner

@⁠Wasler on GitHub · 2026-11-24 12:04 UTC · original

@⁠Dufftwt Tested origin/main (ffe310e) + PR #568 + PR #334 + a local #725 glc -> IsGloballyCoherent (0x4000) patch on crates/victory-shader/src/emit/lower.rs (image & buffer UAV handles), on RTX 5060 Ti without VICTORY_GPU_TIMING and without VICTORY_SHADER_LOOP_LIMIT:

  • PR #334 eliminated the IASetVertexBuffers (UNORDERED_ACCESS -> VERTEX_AND_CONSTANT_BUFFER) D3D12 error (0 resource-state errors in the log at full speed).
  • The #725 IsGloballyCoherent (0x4000) fix cleared the 11-list loop hang (9ef9a9d818b27236 / 4fcf26015f70eecf) without any loop cap.
  • The run translated 1653 shaders (418 failed) and reached a later 30-list submission before hitting DXGI_ERROR_DEVICE_HUNG (0x887A0006) on list 23 of 30 (indirect kind 10 ... [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd] and [mesh 0750cb2d975c7563, pixel 085d374c5a795549]).
**@⁠Wasler** on GitHub · 2026-11-24 12:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130937558) @⁠Dufftwt Tested `origin/main` (`ffe310e`) + PR `#568` + PR `#334` + a local `#725` `glc` -> `IsGloballyCoherent` (`0x4000`) patch on `crates/victory-shader/src/emit/lower.rs` (image & buffer UAV handles), on RTX 5060 Ti **without** `VICTORY_GPU_TIMING` and **without** `VICTORY_SHADER_LOOP_LIMIT`: - **PR `#334` eliminated the `IASetVertexBuffers` (`UNORDERED_ACCESS` -> `VERTEX_AND_CONSTANT_BUFFER`) D3D12 error** (`0` resource-state errors in the log at full speed). - **The `#725` `IsGloballyCoherent` (`0x4000`) fix cleared the `11`-list loop hang (`9ef9a9d818b27236` / `4fcf26015f70eecf`) without any loop cap.** - The run translated `1653` shaders (`418` failed) and reached a later **`30`-list** submission before hitting `DXGI_ERROR_DEVICE_HUNG (0x887A0006)` on `list 23 of 30` (`indirect kind 10 ... [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd]` and `[mesh 0750cb2d975c7563, pixel 085d374c5a795549]`).
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 12:05 UTC · original

If anyone needs results on AMD + Linux, I can test PRs on an RX 9070 XT (RDNA4) with Wine + vkd3d-proton 3.2. I also have an RDNA2 iGPU (gfx1036) for checking what instructions actually do on hardware.

Latest from my side is on #568: same long dispatch hang as on NVIDIA, gone with the loop limit, and then a separate GPUVM fault at 0x0 that I also get without it. Linux setup notes are in #752.

**@⁠AwkGrep256** on GitHub · 2026-11-24 12:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7130952310) If anyone needs results on AMD + Linux, I can test PRs on an RX 9070 XT (RDNA4) with Wine + vkd3d-proton 3.2. I also have an RDNA2 iGPU (gfx1036) for checking what instructions actually do on hardware. Latest from my side is on #568: same long dispatch hang as on NVIDIA, gone with the loop limit, and then a separate GPUVM fault at `0x0` that I also get without it. Linux setup notes are in #752.
Author
Owner

@⁠MartinIndra02 on GitHub · 2026-11-24 12:08 UTC · original

In-title diagnostic run on Windows 11 / RTX 3080 (10 GB, driver 621.24, 32-32 wave lanes) with VICTORY_D3D12_DRED=1, VICTORY_GPU_TIMING=1, VICTORY_SHADER_LOOP_LIMIT=1000 (diag build, retail 1.0.2.1):

  • Tree: main ffe310e + #783 (perf/gpu-copy-mapped-region-fallback) + #584 (fix/shader-heap-bounds-clamp) + #757 (feat/gpu-multi-arg-execute-indirect) + #776 (schmiticle/gpu/write-watch-once-per-submission) + #724/#725 (dpalacios69/fix/shader-glc-globally-coherent) + #431 + #439.
  • Results:
    • Reached the world (menus and loading illustrations rendered cleanly); world frame rate settled at 1.0 – 1.5 fps (683 – 1033 ms/frame).
    • 1,903 translated shaders, 497 failed, 0 host pipeline refused (#439 eliminated all 32-lane refusals).
    • 0 DRED page faults (#584 dynamic heap guard + #431 deferred texture free).
    • Hit no free dynamic once on the 1M-capped NVIDIA view heap (consistent with #747).
  • Final stop (0x887A0006 DEVICE_HUNG, 5-list submission):
    • a list stopped at command 80 of 140 (op 42): mesh 6 [mesh c962201cddbdd7dd, pixel 57a27c5e2e1d62a9] (no page fault).

No game data posted. AI-assisted; build and title run executed on my machine.

**@⁠MartinIndra02** on GitHub · 2026-11-24 12:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131012066) In-title diagnostic run on **Windows 11 / RTX 3080 (10 GB, driver `621.24`, 32-32 wave lanes)** with `VICTORY_D3D12_DRED=1`, `VICTORY_GPU_TIMING=1`, `VICTORY_SHADER_LOOP_LIMIT=1000` (diag build, retail 1.0.2.1): - **Tree:** `main` `ffe310e` + `#783` (`perf/gpu-copy-mapped-region-fallback`) + `#584` (`fix/shader-heap-bounds-clamp`) + `#757` (`feat/gpu-multi-arg-execute-indirect`) + `#776` (`schmiticle/gpu/write-watch-once-per-submission`) + `#724/#725` (`dpalacios69/fix/shader-glc-globally-coherent`) + `#431` + `#439`. - **Results:** - Reached the world (menus and loading illustrations rendered cleanly); world frame rate settled at **`1.0 – 1.5 fps` (`683 – 1033 ms/frame`)**. - **1,903** translated shaders, **497** failed, **`0` `host pipeline refused`** (`#439` eliminated all 32-lane refusals). - **`0` DRED page faults** (`#584` dynamic heap guard + `#431` deferred texture free). - Hit `no free dynamic` once on the 1M-capped NVIDIA view heap (consistent with `#747`). - **Final stop (`0x887A0006` `DEVICE_HUNG`, 5-list submission):** - `a list stopped at command 80 of 140 (op 42): mesh 6 [mesh c962201cddbdd7dd, pixel 57a27c5e2e1d62a9]` (no page fault). *No game data posted. AI-assisted; build and title run executed on my machine.*
Author
Owner

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

@⁠Wasler that's the result we were hoping for, thank you: the coherence fix (#725) ends the 9ef9a9d818b27236 loop hang with no loop limit. nopsled0x's card hung in only 2 of 3 runs, so one or two more runs would make it airtight. Still, every run of yours without the fix hung, so it already looks solid. The fix exists in two versions, dpalacios69's (the one in test/world-stack) and Hiiva's. Whichever becomes the PR once PRs reopen now has your result on #725 behind it.

The new stop, an indirect mesh draw (kind 10) in list 23 of 30, looks like the NVIDIA mesh hang being worked out in #778. All of the game's mesh programs are written for 64-lane waves, and NVIDIA runs each one as two 32-lane halves. Two runs would show which part it is:

  1. With #579 merged (it merges cleanly onto test/world-stack) and VICTORY_SKIP_WAVE64=mesh. If the hang goes away, it's that family. The 3D view goes black, since mesh draws are skipped.
  2. Without the skip, with VICTORY_SHADER_LOOP_LIMIT=1024. On an RTX 3070, KenzoPortela traced most world hangs at mesh draws to nested loops in pixel programs running far too long. With that limit (and two shaders skipped), their run lasted 20 min in the world, and the scene's geometry reached the render targets (#778).

Posting the mesh and pixel hashes on #778 would help there too.

@⁠MartinIndra02 thanks. Your stop is also a mesh draw on NVIDIA, with a loop limit already on, so it fits #778 as well. The same VICTORY_SKIP_WAVE64=mesh check (#579) would confirm it.

@⁠AwkGrep256 thanks, your AMD + Linux run shows the 9ef9a9d818b27236 hang isn't NVIDIA-only. Wasler's result above shows the #725 fix ends it on NVIDIA without a loop limit. One run of test/world-stack (or dpalacios69's branch) on your RX 9070 XT without the limit would show whether that holds on AMD too. For the 0x0 GPUVM fault: if your vkd3d-proton build supports it, VKD3D_CONFIG=breadcrumbs should name the command that faulted.

Your RDNA2 iGPU could also settle the open question in #720 (cube-map arrays), if you can run single instructions on it:

  • Is the face operand of image_sample on a cube array 8 × layer + face?
  • What does image_get_resinfo return as a cube array's array size: cubes or faces?
**@⁠Dufftwt** on GitHub · 2026-11-24 12:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131192265) **@⁠Wasler** that's the result we were hoping for, thank you: the coherence fix (#725) ends the `9ef9a9d818b27236` loop hang with no loop limit. nopsled0x's card hung in only 2 of 3 runs, so one or two more runs would make it airtight. Still, every run of yours without the fix hung, so it already looks solid. The fix exists in two versions, dpalacios69's (the one in `test/world-stack`) and Hiiva's. Whichever becomes the PR once PRs reopen now has your result on #725 behind it. The new stop, an indirect mesh draw (`kind 10`) in list 23 of 30, looks like the NVIDIA mesh hang being worked out in #778. All of the game's mesh programs are written for 64-lane waves, and NVIDIA runs each one as two 32-lane halves. Two runs would show which part it is: 1. **With #579 merged** (it merges cleanly onto `test/world-stack`) **and `VICTORY_SKIP_WAVE64=mesh`.** If the hang goes away, it's that family. The 3D view goes black, since mesh draws are skipped. 2. **Without the skip, with `VICTORY_SHADER_LOOP_LIMIT=1024`.** On an RTX 3070, KenzoPortela traced most world hangs at mesh draws to nested loops in pixel programs running far too long. With that limit (and two shaders skipped), their run lasted 20 min in the world, and the scene's geometry reached the render targets (#778). Posting the mesh and pixel hashes on #778 would help there too. **@⁠MartinIndra02** thanks. Your stop is also a mesh draw on NVIDIA, with a loop limit already on, so it fits #778 as well. The same `VICTORY_SKIP_WAVE64=mesh` check (#579) would confirm it. **@⁠AwkGrep256** thanks, your AMD + Linux run shows the `9ef9a9d818b27236` hang isn't NVIDIA-only. Wasler's result above shows the #725 fix ends it on NVIDIA without a loop limit. One run of `test/world-stack` (or dpalacios69's branch) on your RX 9070 XT without the limit would show whether that holds on AMD too. For the `0x0` GPUVM fault: if your vkd3d-proton build supports it, `VKD3D_CONFIG=breadcrumbs` should name the command that faulted. Your RDNA2 iGPU could also settle the open question in #720 (cube-map arrays), if you can run single instructions on it: - Is the face operand of `image_sample` on a cube array `8 × layer + face`? - What does `image_get_resinfo` return as a cube array's array size: cubes or faces?
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 12:18 UTC · original

Update from AMD/Linux (RX 9070 XT, Mesa 26.3.1, Wine 11.22, vkd3d-proton 3.2.0), main ffe310e + #190 #454 #493 #579 + #568, Series X, VICTORY_NO_WATCHDOG=1, VICTORY_SHADER_LOOP_LIMIT=1000:

It now gets past the intro cutscene to the first control prompt ("Move around / Move the camera") at about 3 fps, still black apart from HUD and subtitles. That's further than I got before.

About 5 minutes into the world it hits a GPUVM fault at 0x0 and the device is removed. The kernel log says the faulting client is SQC (data), not TCP like in #714, so it's a scalar read: constants or descriptors, not a texture fetch. I checked one candidate (a root CBV/SRV whose address has no host copy, which VIctory leaves unbound) by binding zeros there instead. That path never ran, so it's not that. A null descriptor table or heap pointer is my next guess.

**@⁠AwkGrep256** on GitHub · 2026-11-24 12:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131261746) Update from AMD/Linux (RX 9070 XT, Mesa 26.3.1, Wine 11.22, vkd3d-proton 3.2.0), main `ffe310e` + #190 #454 #493 #579 + #568, Series X, `VICTORY_NO_WATCHDOG=1`, `VICTORY_SHADER_LOOP_LIMIT=1000`: It now gets past the intro cutscene to the first control prompt ("Move around / Move the camera") at about 3 fps, still black apart from HUD and subtitles. That's further than I got before. About 5 minutes into the world it hits a GPUVM fault at `0x0` and the device is removed. The kernel log says the faulting client is SQC (data), not TCP like in #714, so it's a scalar read: constants or descriptors, not a texture fetch. I checked one candidate (a root CBV/SRV whose address has no host copy, which VIctory leaves unbound) by binding zeros there instead. That path never ran, so it's not that. A null descriptor table or heap pointer is my next guess.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 12:23 UTC · original

@⁠AwkGrep256 the first control prompt on AMD/Linux is real progress, thanks. Ruling out the root view without a host copy helps too.

One thing about the fault address: amdgpu reports GPUVM faults by page ("in page starting at address …"), so 0x0 means anywhere in the first 4 KiB. That's a null base plus a small offset, not necessarily offset 0.

On main (ffe310e) I found three other ways a scalar read can end up there:

  1. A root view the title never set. In State::bind (draw.rs), when a shader reads a root CBV/SRV slot whose title value isn't a view, the loop continues and leaves it unbound. That's a different continue from the no-host-copy one you patched, and it's logged once: a shader reads a root view the title did not set. Worth grepping your log for. With #493 in your tree, root SRVs go through tables, so this would be a root CBV.
  2. A heap with no host mirror. bind passes SetDescriptorHeaps only the heaps whose host() exists. Heap::host() (descriptor.rs) builds the host heap on first use, and if HostHeap::new fails then, for example under memory pressure, it stays None for good, with nothing logged. Every later draw then reads descriptors from a heap that isn't bound. A one-line warn! in that None case would show it.
  3. A misaligned root CBV. A root CBV address that isn't 256-byte aligned is copied into the list's scratch ring. If that allocation fails, root_view returns None and the CBV stays unbound as well. Unlikely unless memory runs out.

Since it takes ~5 minutes, 2 and 3 would fit something running out over time. Your earlier note puts the 0x0 fault at ~14 min on main without #568, and ~3.5 min with it, so the timing varies a lot.

The other ask still stands: one run of the #725 fix (test/world-stack, or dpalacios69's branch on top of your tree) without VICTORY_SHADER_LOOP_LIMIT, to see whether it ends the 9ef9a9d818b27236 hang on AMD too.

**@⁠Dufftwt** on GitHub · 2026-11-24 12:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131372122) @⁠AwkGrep256 the first control prompt on AMD/Linux is real progress, thanks. Ruling out the root view without a host copy helps too. One thing about the fault address: amdgpu reports GPUVM faults by page ("in page starting at address …"), so `0x0` means anywhere in the first 4 KiB. That's a null base plus a small offset, not necessarily offset 0. On `main` (`ffe310e`) I found three other ways a scalar read can end up there: 1. **A root view the title never set.** In `State::bind` (`draw.rs`), when a shader reads a root CBV/SRV slot whose title value isn't a view, the loop `continue`s and leaves it unbound. That's a different `continue` from the no-host-copy one you patched, and it's logged once: `a shader reads a root view the title did not set`. Worth grepping your log for. With #493 in your tree, root SRVs go through tables, so this would be a root CBV. 2. **A heap with no host mirror.** `bind` passes `SetDescriptorHeaps` only the heaps whose `host()` exists. `Heap::host()` (`descriptor.rs`) builds the host heap on first use, and if `HostHeap::new` fails then, for example under memory pressure, it stays `None` for good, with nothing logged. Every later draw then reads descriptors from a heap that isn't bound. A one-line `warn!` in that `None` case would show it. 3. **A misaligned root CBV.** A root CBV address that isn't 256-byte aligned is copied into the list's scratch ring. If that allocation fails, `root_view` returns `None` and the CBV stays unbound as well. Unlikely unless memory runs out. Since it takes ~5 minutes, 2 and 3 would fit something running out over time. Your earlier note puts the `0x0` fault at ~14 min on `main` without #568, and ~3.5 min with it, so the timing varies a lot. The other ask still stands: one run of the #725 fix (`test/world-stack`, or dpalacios69's branch on top of your tree) without `VICTORY_SHADER_LOOP_LIMIT`, to see whether it ends the `9ef9a9d818b27236` hang on AMD too.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 12:26 UTC · original

@⁠Dufftwt ran test/world-stack (e0c3385) on the RX 9070 XT without a loop limit. I added #454 for VICTORY_NO_WATCHDOG, otherwise the same.

It still hangs on AMD. The world loads, 9ef9a9d818b27236 gets created, and about 13 s later the ring times out and the device is removed, same as my run without #725. So on this card #725 doesn't end it, at least in this run. I can do a second run, or one with VICTORY_D3D12_DRED=1 if that helps pin down the dispatch.

On your three 0x0 candidates:

  1. a shader reads a root view the title did not set doesn't show up in any of my logs, so it's not that one.
  2. Not checked yet. I'll add a warn! where Heap::host() stays None and run it again.
  3. My zero-fill experiment logged before calling scratch, inside the root_view(...) None case, and that line never fired. So root_view never returned None, which rules this one out too.

For the breadcrumbs, I tried VKD3D_CONFIG=breadcrumbs once, but that run crashed in the process (signal 11) before the GPU fault, so no breadcrumbs yet.

I can also look at the #720 cube-array questions on the RDNA2 iGPU. I have a raw dispatch setup there that already reads textures through hand-built T#s, so cube arrays should be doable.

**@⁠AwkGrep256** on GitHub · 2026-11-24 12:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131447214) @⁠Dufftwt ran `test/world-stack` (`e0c3385`) on the RX 9070 XT without a loop limit. I added #454 for `VICTORY_NO_WATCHDOG`, otherwise the same. It still hangs on AMD. The world loads, `9ef9a9d818b27236` gets created, and about 13 s later the ring times out and the device is removed, same as my run without #725. So on this card #725 doesn't end it, at least in this run. I can do a second run, or one with `VICTORY_D3D12_DRED=1` if that helps pin down the dispatch. On your three `0x0` candidates: 1. `a shader reads a root view the title did not set` doesn't show up in any of my logs, so it's not that one. 2. Not checked yet. I'll add a `warn!` where `Heap::host()` stays `None` and run it again. 3. My zero-fill experiment logged before calling `scratch`, inside the `root_view(...)` `None` case, and that line never fired. So `root_view` never returned `None`, which rules this one out too. For the breadcrumbs, I tried `VKD3D_CONFIG=breadcrumbs` once, but that run crashed in the process (signal 11) before the GPU fault, so no breadcrumbs yet. I can also look at the #720 cube-array questions on the RDNA2 iGPU. I have a raw dispatch setup there that already reads textures through hand-built T#s, so cube arrays should be doable.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 12:29 UTC · original

@⁠AwkGrep256 thanks, a negative result on AMD is just as useful.

The fix does reach your driver. dxil-spirv (vkd3d-proton's shader translator) reads bit 0x4000 (AnnotateGloballyCoherentMask) of every annotateHandle and marks that UAV Coherent (opcodes_dxil_builtins.cpp, dxil_converter.cpp). So the coherence isn't lost on the way to Vulkan. On your card either a different dispatch hangs, or the loop waits for something coherence doesn't fix: for example data from an earlier dispatch that is still running, or waves that never get scheduled while others spin.

Next step: find which dispatch hangs. "Created 13 s before the timeout" makes 9ef9a9d818b27236 likely, but not certain.

  • A VICTORY_D3D12_DRED=1 run is worth trying once, though I don't know how much of DRED vkd3d-proton fills in.
  • If that comes back empty, RADV_DEBUG=hang makes RADV write a hang report (under ~/radv_dumps_*) with the shaders that were running when the GPU stopped. It waits after every command, so it's slow. Please keep that report local, since it contains shader code. Whether it's that one shader, and what its loop waits on (a glc load, an atomic, a value from an earlier dispatch), is all we need.
  • A second plain run would also help, since nopsled0x's card only hung in 2 of 3 runs.

On the 0x0 fault: thanks for ruling out 1 and 3. I'm curious what the warn! in Heap::host() shows.

#720, yes please. What would settle it, with each texel holding 10 × layer + face in a cube array of 2 cubes:

  1. image_sample_lz … dim:CUBE with s = t = 1.5:
    • face operand 10.0 reads 12 if the operand is 8 × layer + face (layer 1, +Y), and 14 if it's 6 × layer + face (layer 1, +Z);
    • face operand 8.0, as a cross-check, reads 10 under 8 × layer + face and 12 under 6 × layer + face.
  2. image_get_resinfo … dim:CUBE on the same view: does the array size come back as 2 (cubes), 12 (faces), or something else?
**@⁠Dufftwt** on GitHub · 2026-11-24 12:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131503335) @⁠AwkGrep256 thanks, a negative result on AMD is just as useful. **The fix does reach your driver.** dxil-spirv (vkd3d-proton's shader translator) reads bit `0x4000` (`AnnotateGloballyCoherentMask`) of every `annotateHandle` and marks that UAV `Coherent` (`opcodes_dxil_builtins.cpp`, `dxil_converter.cpp`). So the coherence isn't lost on the way to Vulkan. On your card either a different dispatch hangs, or the loop waits for something coherence doesn't fix: for example data from an earlier dispatch that is still running, or waves that never get scheduled while others spin. **Next step: find which dispatch hangs.** "Created 13 s before the timeout" makes `9ef9a9d818b27236` likely, but not certain. - A `VICTORY_D3D12_DRED=1` run is worth trying once, though I don't know how much of DRED vkd3d-proton fills in. - If that comes back empty, `RADV_DEBUG=hang` makes RADV write a hang report (under `~/radv_dumps_*`) with the shaders that were running when the GPU stopped. It waits after every command, so it's slow. Please keep that report local, since it contains shader code. Whether it's that one shader, and what its loop waits on (a `glc` load, an atomic, a value from an earlier dispatch), is all we need. - A second plain run would also help, since nopsled0x's card only hung in 2 of 3 runs. On the `0x0` fault: thanks for ruling out 1 and 3. I'm curious what the `warn!` in `Heap::host()` shows. **#720, yes please.** What would settle it, with each texel holding `10 × layer + face` in a cube array of 2 cubes: 1. `image_sample_lz … dim:CUBE` with s = t = 1.5: - face operand 10.0 reads 12 if the operand is `8 × layer + face` (layer 1, +Y), and 14 if it's `6 × layer + face` (layer 1, +Z); - face operand 8.0, as a cross-check, reads 10 under `8 × layer + face` and 12 under `6 × layer + face`. 2. `image_get_resinfo … dim:CUBE` on the same view: does the array size come back as 2 (cubes), 12 (faces), or something else?
Author
Owner

@⁠MartinIndra02 on GitHub · 2026-11-24 12:31 UTC · original

@⁠Dufftwt Confirmed on the exact same tree + #579 with VICTORY_SKIP_WAVE64=mesh (Windows 11, RTX 3080 621.24, VICTORY_D3D12_DRED=1, VICTORY_GPU_TIMING=1, VICTORY_SHADER_LOOP_LIMIT=1000):

  • 10+ minutes in the world, still running cleanly at steady 1.0 – 1.3 fps (750 – 966 ms/frame) (3D view black as expected with mesh skipped).
  • 2,008 translated shaders, 495 failed, 0 host pipeline refused, 0 slow host submission, 0 DRED page faults, 0 device removed.
  • 30 wave64 mesh skip entries logged.

So the earlier command 80 of 140 (op 42): mesh 6 [mesh c962201cddbdd7dd, pixel 57a27c5e2e1d62a9] TDR is indeed in the #778 NVIDIA 32-lane mesh-hang family. I'll add the hashes and this confirmation to #778 as well.

No game data posted. AI-assisted; build and title run executed on my machine.

**@⁠MartinIndra02** on GitHub · 2026-11-24 12:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131568777) @⁠Dufftwt Confirmed on the exact same tree + `#579` with `VICTORY_SKIP_WAVE64=mesh` (Windows 11, RTX 3080 `621.24`, `VICTORY_D3D12_DRED=1`, `VICTORY_GPU_TIMING=1`, `VICTORY_SHADER_LOOP_LIMIT=1000`): - **10+ minutes in the world, still running cleanly** at steady **`1.0 – 1.3 fps` (`750 – 966 ms/frame`)** (3D view black as expected with mesh skipped). - **2,008** translated shaders, **495** failed, **`0` `host pipeline refused`**, **`0` `slow host submission`**, **`0` DRED page faults**, **`0` `device removed`**. - **30** wave64 mesh skip entries logged. So the earlier `command 80 of 140 (op 42): mesh 6 [mesh c962201cddbdd7dd, pixel 57a27c5e2e1d62a9]` TDR is indeed in the `#778` NVIDIA 32-lane mesh-hang family. I'll add the hashes and this confirmation to `#778` as well. *No game data posted. AI-assisted; build and title run executed on my machine.*
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 12:32 UTC · original

Follow-up on candidate 2: I added a warn! where HostHeap::new returns None inside Heap::host() and ran it again (same stack, loop limit 1000). It never fired, so every shader-visible heap got its host heap. No host view heap capped either, since vkd3d-proton 3.2 enables VK_EXT_descriptor_heap here.

The fault came about 4 min into the world again, SQC (data), but this time in the page at 0x20000 instead of 0x0. That fits your point about a null base plus an offset, just a bigger offset (128 KiB) this time.

**@⁠AwkGrep256** on GitHub · 2026-11-24 12:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131574468) Follow-up on candidate 2: I added a `warn!` where `HostHeap::new` returns `None` inside `Heap::host()` and ran it again (same stack, loop limit 1000). It never fired, so every shader-visible heap got its host heap. No `host view heap capped` either, since vkd3d-proton 3.2 enables `VK_EXT_descriptor_heap` here. The fault came about 4 min into the world again, SQC (data), but this time in the page at `0x20000` instead of `0x0`. That fits your point about a null base plus an offset, just a bigger offset (128 KiB) this time.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 12:33 UTC · original

@⁠MartinIndra02 thanks, 10+ minutes with no device removal settles it: your stop is the #778 mesh family.

@⁠AwkGrep256 thanks, so all three of my candidates are ruled out. The page moving from 0x0 to 0x20000 says something too: the base is null, but the offset changes from run to run. That looks like an address computed in a shader (a null base plus an index or offset from data), not one fixed slot read every time.

So the useful next thing is which shader faults. One run covers both problems: RADV_DEBUG=hang writes a dump under ~/radv_dumps_*, and when the device is lost through a page fault it includes a "VM fault report" (failing page, status). It also shows the pipeline and waves that were active, so the same run with and without the loop limit gives you the hang and the fault. It's slow, since RADV waits after each submission. As before, please keep the shader code from those dumps local. Which VIctory shader hash it is, and whether the faulting read uses a descriptor or an address from constants, is what we need.

**@⁠Dufftwt** on GitHub · 2026-11-24 12:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131614392) @⁠MartinIndra02 thanks, 10+ minutes with no device removal settles it: your stop is the #778 mesh family. @⁠AwkGrep256 thanks, so all three of my candidates are ruled out. The page moving from `0x0` to `0x20000` says something too: the base is null, but the offset changes from run to run. That looks like an address computed in a shader (a null base plus an index or offset from data), not one fixed slot read every time. So the useful next thing is which shader faults. One run covers both problems: `RADV_DEBUG=hang` writes a dump under `~/radv_dumps_*`, and when the device is lost through a page fault it includes a "VM fault report" (failing page, status). It also shows the pipeline and waves that were active, so the same run with and without the loop limit gives you the hang and the fault. It's slow, since RADV waits after each submission. As before, please keep the shader code from those dumps local. Which VIctory shader hash it is, and whether the faulting read uses a descriptor or an address from constants, is what we need.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 12:36 UTC · original

Thanks, that helps. I'll do a DRED run and a second plain run on test/world-stack, and keep a RADV_DEBUG=hang report local if DRED comes back empty.

The Heap::host() warn never fired, so that's ruled out too (my comment above).

For #720 your setup is clear. I'll build the 2-cube array with 10 × layer + face per texel, then post the sample results for face operands 10.0 and 8.0 and what resinfo returns.

**@⁠AwkGrep256** on GitHub · 2026-11-24 12:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131666933) Thanks, that helps. I'll do a DRED run and a second plain run on `test/world-stack`, and keep a `RADV_DEBUG=hang` report local if DRED comes back empty. The `Heap::host()` warn never fired, so that's ruled out too (my comment above). For #720 your setup is clear. I'll build the 2-cube array with `10 × layer + face` per texel, then post the sample results for face operands 10.0 and 8.0 and what `resinfo` returns.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 12:48 UTC · original

@⁠Dufftwt two more runs of test/world-stack (+ #454) on the RX 9070 XT without a loop limit: one with VICTORY_D3D12_DRED=1, one plain. Both hung like the first, so that's 3 of 3 on AMD, each 13–17 s after 9ef9a9d818b27236 was created.

DRED doesn't help under Wine: vkd3d-proton stubs it (d3d12_dred_settings_SetAutoBreadcrumbsEnablement ... stub!, same for page faults). VIctory's own device-removed message lists commands from lists 1, 3, 9, 11, 19 and 23 of the 25 in the failed submission, and 9ef9a9d818b27236 isn't among them. I'm not sure that list is complete, so it's a hint rather than proof that a different dispatch hangs here.

Next I can try RADV_DEBUG=hang to get the shaders that were actually running when it stopped (report stays local).

**@⁠AwkGrep256** on GitHub · 2026-11-24 12:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131937655) @⁠Dufftwt two more runs of `test/world-stack` (+ #454) on the RX 9070 XT without a loop limit: one with `VICTORY_D3D12_DRED=1`, one plain. Both hung like the first, so that's 3 of 3 on AMD, each 13–17 s after `9ef9a9d818b27236` was created. DRED doesn't help under Wine: vkd3d-proton stubs it (`d3d12_dred_settings_SetAutoBreadcrumbsEnablement ... stub!`, same for page faults). VIctory's own device-removed message lists commands from lists 1, 3, 9, 11, 19 and 23 of the 25 in the failed submission, and `9ef9a9d818b27236` isn't among them. I'm not sure that list is complete, so it's a hint rather than proof that a different dispatch hangs here. Next I can try `RADV_DEBUG=hang` to get the shaders that were actually running when it stopped (report stays local).
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 12:49 UTC · original

@⁠AwkGrep256 thanks, 3 of 3 is clear: on AMD the #725 fix doesn't end it.

On your doubt about that list: it isn't complete. Without device-removed data, VIctory's message shows only the last six commands each list noted (last_notes, host.rs). So 9ef9a9d818b27236 could sit earlier in any of those lists, and its absence doesn't point either way.

A cheap way to narrow it down before the RADV run: VICTORY_GPU_TIMING=1 together with VICTORY_D3D12_DRED=1 (the latter only to make VIctory note the commands, so it works under Wine too). Each list then goes to the GPU on its own, and the one that hangs shows up as a slow host list ms=… commands=… line just before the removal. That's how Wasler's 8.5 s list showed up (slow host list ms=8456 commands=230). After that, RADV_DEBUG=hang only has to tell you which shader in that one list.

**@⁠Dufftwt** on GitHub · 2026-11-24 12:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7131977488) @⁠AwkGrep256 thanks, 3 of 3 is clear: on AMD the #725 fix doesn't end it. On your doubt about that list: it isn't complete. Without device-removed data, VIctory's message shows only the **last six commands each list noted** (`last_notes`, `host.rs`). So `9ef9a9d818b27236` could sit earlier in any of those lists, and its absence doesn't point either way. A cheap way to narrow it down before the RADV run: `VICTORY_GPU_TIMING=1` together with `VICTORY_D3D12_DRED=1` (the latter only to make VIctory note the commands, so it works under Wine too). Each list then goes to the GPU on its own, and the one that hangs shows up as a `slow host list ms=… commands=…` line just before the removal. That's how Wasler's 8.5 s list showed up (`slow host list ms=8456 commands=230`). After that, `RADV_DEBUG=hang` only has to tell you which shader in that one list.
Author
Owner

@⁠ChruutvoLuzi on GitHub · 2026-11-24 13:09 UTC · original

@⁠Dufftwt for the NVIDIA mesh hang, one more thing worth adding to the runs above: #493. On an RTX 4090, plain main ffe310e + #493 with VICTORY_SHADER_LOOP_LIMIT=1024 ran 19 minutes in the world with no device removal and the mesh draws kept (718 mesh pipelines, about 2,000 draws per frame, HUD prompt shown, final image black). Plain main with the same limit hangs after about 20 s at a mesh-only draw with no loops (4adfa13bea1c556a), which reads its vertex data through root parameter 3, the root SRV #493 bounds. The default limit still hangs at the pixel loop. Wasler's tree and the 3080 tree above don't list #493, so it may be worth a run before skipping all mesh draws. Details on #778.

AI-assisted (Claude Code).

**@⁠ChruutvoLuzi** on GitHub · 2026-11-24 13:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7132427493) @⁠Dufftwt for the NVIDIA mesh hang, one more thing worth adding to the runs above: #493. On an RTX 4090, plain `main` `ffe310e` + #493 with `VICTORY_SHADER_LOOP_LIMIT=1024` ran 19 minutes in the world with no device removal and the mesh draws kept (718 mesh pipelines, about 2,000 draws per frame, HUD prompt shown, final image black). Plain `main` with the same limit hangs after about 20 s at a mesh-only draw with no loops (`4adfa13bea1c556a`), which reads its vertex data through root parameter 3, the root SRV #493 bounds. The default limit still hangs at the pixel loop. Wasler's tree and the 3080 tree above don't list #493, so it may be worth a run before skipping all mesh draws. Details on #778. AI-assisted (Claude Code).
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 13:10 UTC · original

@⁠ChruutvoLuzi thanks, that's a strong lead: mesh draws kept, 19 minutes, and a concrete reason (root parameter 3 read past its host copy, which #493 bounds).

@⁠Wasler test/world-stack (e0c3385) already has #493, together with #568, #334 and the #725 coherence fix. Your last run was your own tree without #493. So one run of test/world-stack with VICTORY_SHADER_LOOP_LIMIT=1024, no mesh skip, would show whether your mesh hang is the one #493 fixes. If it still hangs, the DRED line for that list and the mesh hash are what #778 needs.

**@⁠Dufftwt** on GitHub · 2026-11-24 13:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7132459402) @⁠ChruutvoLuzi thanks, that's a strong lead: mesh draws kept, 19 minutes, and a concrete reason (root parameter 3 read past its host copy, which #493 bounds). @⁠Wasler `test/world-stack` (`e0c3385`) already has #493, together with #568, #334 and the #725 coherence fix. Your last run was your own tree without #493. So one run of `test/world-stack` with `VICTORY_SHADER_LOOP_LIMIT=1024`, no mesh skip, would show whether your mesh hang is the one #493 fixes. If it still hangs, the DRED line for that list and the mesh hash are what #778 needs.
Author
Owner

@⁠AwkGrep256 on GitHub · 2026-11-24 13:23 UTC · original

@⁠Dufftwt I ran d795bfa (world-stack plus #454) on the RX 9070 XT in Series X with VICTORY_GPU_TIMING=1 and VICTORY_D3D12_DRED=1. The graphics ring reset after a list with 47 commands took 2,054 ms. Its per-command timings were all zero. The preceding lists did return timestamps, with mesh 04b9be3756e8f41c and pixel 1af4a50c7fb40c97 taking up to 497 ms per dispatch. The 47-command list also had two dispatches with that pair in its last six notes.

I repeated it with RADV_DEBUG=hang. The same pair took 574 ms on a list before the reset, and RADV captured a mesh and pixel pipeline at the hang. The dump doesn’t give me the VIctory hashes, so I can’t confirm it was that exact pair. Neither run logged a VM page fault. The raw report is staying local. The mesh hash also showed up as slow on NVIDIA in #71.

**@⁠AwkGrep256** on GitHub · 2026-11-24 13:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7132761455) @⁠Dufftwt I ran `d795bfa` (world-stack plus #454) on the RX 9070 XT in Series X with `VICTORY_GPU_TIMING=1` and `VICTORY_D3D12_DRED=1`. The graphics ring reset after a list with 47 commands took 2,054 ms. Its per-command timings were all zero. The preceding lists did return timestamps, with mesh `04b9be3756e8f41c` and pixel `1af4a50c7fb40c97` taking up to 497 ms per dispatch. The 47-command list also had two dispatches with that pair in its last six notes. I repeated it with `RADV_DEBUG=hang`. The same pair took 574 ms on a list before the reset, and RADV captured a mesh and pixel pipeline at the hang. The dump doesn’t give me the VIctory hashes, so I can’t confirm it was that exact pair. Neither run logged a VM page fault. The raw report is staying local. The mesh hash also showed up as slow on NVIDIA in #71.
Author
Owner

@⁠HrHd on GitHub · 2026-11-24 13:24 UTC · original

Answering question 1 from measured runs rather than impression, because two of the three blockers are now pinned down and the third is the one nobody has named.

The blocker is compute dispatch. Not memory, not timing, not mesh. Every run that keeps compute dies the same way: a [compute ...] pipeline is created, then a submission of 18 lists taking 275–290 ms, then the machine stops — and it stops hard, so nothing is written to crashes.log, VICTORY_D3D12_DRED=1 has no breadcrumb to leave, and the box needs a reset rather than the process dying. #578 (refuse wave64 mesh/compute on 32-lane hosts) gets past world entry and buys 11–13 minutes instead of 25–95 s; it does not remove the compute wall, it defers it.

Refuse compute by stage and the world runs. One line in HostPipeline::new, gated on an env var, swapping #578's per-program refusal for a stage refusal:

compute allowed compute refused
world ~1 fps, 260–300 draws 8–10 fps, 460–585 draws
survives 11–13 min, then hard lock 14.7 min and still climbing (stopped by choice)
device removed never logged never

So compute is both the hang and the dominant per-frame cost: 708 ms of a 983 ms frame in the preparing phase on the runs that keep it, against ~55 ms with it refused. It is also exactly what the picture is missing — lighting, shadow masks and the ray-traced shadow checks live there — so this is a dial, not a fix: stability now, lighting back once dispatches return.

Hash-skipping does not work for this. I burned five runs on VICTORY_SKIP_PIPELINES before realising the killer is a new compute hash minted by walking into an area (e6a32775a6bb91c8 had never appeared in any earlier log of the same build). Any list is stale by the next boot. 814 hashes collected from all my runs still locked, because the next one was not in the list.

The other thing nobody has named: nothing reaches the output target. On this card the prologue is drawn — car, street, flat and unlit — into the title's own targets while the 3840x2160 output stays at zero (#841 has the same from a 3090 at 2560x1440/3840x2160). Until that is fixed, "in the world and lit" still looks like a dark screen, which will make the compute work look like it is failing when it is not.

Order I would suggest: the output-target path first, because it is what makes every other result visible and judgeable; then compute dispatch survival (loop budget versus cross-lane/barrier use — VICTORY_SHADER_LOOP_LIMIT is the cheap discriminator and is running now); mesh and descriptor classes after.

Per-build offsets and counts only, no assets, on 1.0.2.1 with the four fail-fast writes NOPed.

**@⁠HrHd** on GitHub · 2026-11-24 13:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7132786116) Answering question 1 from measured runs rather than impression, because two of the three blockers are now pinned down and the third is the one nobody has named. **The blocker is compute dispatch.** Not memory, not timing, not mesh. Every run that keeps compute dies the same way: a `[compute ...]` pipeline is created, then a submission of 18 lists taking 275–290 ms, then the machine stops — and it stops *hard*, so nothing is written to `crashes.log`, `VICTORY_D3D12_DRED=1` has no breadcrumb to leave, and the box needs a reset rather than the process dying. `#578` (refuse wave64 mesh/compute on 32-lane hosts) gets past world entry and buys 11–13 minutes instead of 25–95 s; it does not remove the compute wall, it defers it. **Refuse compute by stage and the world runs.** One line in `HostPipeline::new`, gated on an env var, swapping #578's per-program refusal for a stage refusal: | | compute allowed | compute refused | |---|---|---| | world | ~1 fps, 260–300 draws | **8–10 fps, 460–585 draws** | | survives | 11–13 min, then hard lock | **14.7 min and still climbing** (stopped by choice) | | device removed | never logged | never | So compute is both the hang and the dominant per-frame cost: 708 ms of a 983 ms frame in the preparing phase on the runs that keep it, against ~55 ms with it refused. It is also exactly what the picture is missing — lighting, shadow masks and the ray-traced shadow checks live there — so this is a dial, not a fix: stability now, lighting back once dispatches return. **Hash-skipping does not work for this.** I burned five runs on `VICTORY_SKIP_PIPELINES` before realising the killer is a *new* compute hash minted by walking into an area (`e6a32775a6bb91c8` had never appeared in any earlier log of the same build). Any list is stale by the next boot. 814 hashes collected from all my runs still locked, because the next one was not in the list. **The other thing nobody has named: nothing reaches the output target.** On this card the prologue is drawn — car, street, flat and unlit — into the title's own targets while the 3840x2160 output stays at zero (#841 has the same from a 3090 at 2560x1440/3840x2160). Until that is fixed, "in the world and lit" still looks like a dark screen, which will make the compute work look like it is failing when it is not. Order I would suggest: the output-target path first, because it is what makes every other result visible and judgeable; then compute dispatch survival (loop budget versus cross-lane/barrier use — `VICTORY_SHADER_LOOP_LIMIT` is the cheap discriminator and is running now); mesh and descriptor classes after. Per-build offsets and counts only, no assets, on 1.0.2.1 with the four fail-fast writes NOPed.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 13:24 UTC · original

@⁠AwkGrep256 that pins it, thanks. Mesh 04b9be3756e8f41c + pixel 1af4a50c7fb40c97 is the same draw that hangs on NVIDIA:

  • KenzoPortela's RTX 3070 TDR'd at exactly this pair (#778, point 3). They found the mesh program has no loops, while the pixel program has 7 back edges, nested. With today's per-loop guard of 2^20, nested loops can run ~2^40 iterations per pixel when whatever should end them is never written.
  • Machad3x measured 1,375 ms for 4 groups of the same pair on an RTX 3080 Ti (#815).

So on your card, the hang that follows 9ef9a9d818b27236 may not be that shader at all. It may be this draw, in the same part of the frame, which would explain why the #725 fix didn't change your result.

One run would separate the two: test/world-stack without a loop limit, plus VICTORY_SKIP_PIPELINES=04b9be3756e8f41c,1af4a50c7fb40c97. If it gets past the 13–17 s point, the #725 fix works on AMD too, and this pixel loop is the next wall on both vendors. Why its loops never end on the PC is then the question for #778.

**@⁠Dufftwt** on GitHub · 2026-11-24 13:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7132786737) @⁠AwkGrep256 that pins it, thanks. Mesh `04b9be3756e8f41c` + pixel `1af4a50c7fb40c97` is the same draw that hangs on NVIDIA: - KenzoPortela's RTX 3070 TDR'd at exactly this pair (#778, point 3). They found the mesh program has no loops, while the pixel program has 7 back edges, nested. With today's per-loop guard of 2^20, nested loops can run ~2^40 iterations per pixel when whatever should end them is never written. - Machad3x measured 1,375 ms for 4 groups of the same pair on an RTX 3080 Ti (#815). So on your card, the hang that follows `9ef9a9d818b27236` may not be that shader at all. It may be this draw, in the same part of the frame, which would explain why the #725 fix didn't change your result. One run would separate the two: `test/world-stack` without a loop limit, plus `VICTORY_SKIP_PIPELINES=04b9be3756e8f41c,1af4a50c7fb40c97`. If it gets past the 13–17 s point, the #725 fix works on AMD too, and this pixel loop is the next wall on both vendors. Why its loops never end on the PC is then the question for #778.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 13:25 UTC · original

@⁠HrHd thanks, that's the clearest picture yet of what compute costs, and what refusing it buys. Two connections with other threads that may save you runs:

The output target. The scene is at 2560x1440 and the output at 3840x2160, so some pass scales the one into the other. In current engines that's usually a compute pass sampling the scene. With compute refused, nothing can write the output, so the black screen in those runs is expected. With compute allowed, MD5Visual's run in #841 had 6 compute pipelines refused with E_OUTOFMEMORY. r4tedx traced that refusal to modules that fail DXIL validation because a compute image_sample is lowered to an implicit-derivative sample (#201). #180 is the open fix for that. If the pass writing the 3840x2160 target is one of the refused or untranslated compute programs, the black output and the compute work are the same problem. The writer logs mpDom and MichaelSmithAI mention on #841 should show which program writes it.

The compute wall. Two compute and pixel loops are pinned down so far:

  • 9ef9a9d818b27236: a compute loop waiting on other workgroups' glc loads. On Wasler's RTX 5060 Ti it ended with the #725 coherence fix, which is in test/world-stack (Dufftwt/VIctory).
  • 04b9be3756e8f41c + 1af4a50c7fb40c97: a draw whose pixel program has nested loops. It hangs on both NVIDIA (#778, #815) and AMD (AwkGrep256 above).

If your VICTORY_SHADER_LOOP_LIMIT run gets past the lock, it's loops. Then a run of test/world-stack with compute allowed would show how much of your wall the coherence fix removes. Your hard lock with no TDR doesn't look like those cases, though, so if the limit doesn't help, that's worth its own issue.

**@⁠Dufftwt** on GitHub · 2026-11-24 13:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7132806964) @⁠HrHd thanks, that's the clearest picture yet of what compute costs, and what refusing it buys. Two connections with other threads that may save you runs: **The output target.** The scene is at 2560x1440 and the output at 3840x2160, so some pass scales the one into the other. In current engines that's usually a compute pass sampling the scene. With compute refused, nothing can write the output, so the black screen in those runs is expected. With compute allowed, MD5Visual's run in #841 had 6 compute pipelines refused with `E_OUTOFMEMORY`. r4tedx traced that refusal to modules that fail DXIL validation because a compute `image_sample` is lowered to an implicit-derivative `sample` (#201). #180 is the open fix for that. If the pass writing the 3840x2160 target is one of the refused or untranslated compute programs, the black output and the compute work are the same problem. The writer logs mpDom and MichaelSmithAI mention on #841 should show which program writes it. **The compute wall.** Two compute and pixel loops are pinned down so far: - `9ef9a9d818b27236`: a compute loop waiting on other workgroups' `glc` loads. On Wasler's RTX 5060 Ti it ended with the #725 coherence fix, which is in `test/world-stack` (`Dufftwt/VIctory`). - `04b9be3756e8f41c` + `1af4a50c7fb40c97`: a draw whose pixel program has nested loops. It hangs on both NVIDIA (#778, #815) and AMD (AwkGrep256 above). If your `VICTORY_SHADER_LOOP_LIMIT` run gets past the lock, it's loops. Then a run of `test/world-stack` with compute allowed would show how much of your wall the coherence fix removes. Your hard lock with no TDR doesn't look like those cases, though, so if the limit doesn't help, that's worth its own issue.
Author
Owner

@⁠HrHd on GitHub · 2026-11-24 14:22 UTC · original

Breadcrumb data for the hang, since "no breadcrumbs" kept hiding it. A --features diagnostics build with VICTORY_D3D12_DRED=1 and VICTORY_GPU_TIMING=1 names the stuck command instead of a batch:

... list 27 of 28, of its 376: dispatch 93x1x1 [compute 36e010b53acffd77]
| 36e010b53acffd77: u4=0xa6b080 [heap 341380: Placed(false, [1, 1, 0, 0, 998400, 0, 1, 65537, 0, 1, 0, 1, 0, 0],
[0, 1, 5768, 0, 0, 0, 2400, 416, 0, 32766, 760652640, title 0x2d56a360+0xf3c00 host Some(...)

The pattern across six runs is identical and reproducible: a submission that grows to 28 lists, one of them (always 27th, always ~376 commands) carrying compute dispatches, the whole submission taking 29–33 s, then 0x887A0004. With TdrDelay=30 the machine survives and the process dies cleanly instead of the box needing a reset, so this is now cheap to reproduce — 6–8 minutes in, every time.

What made it narrow-able: the stuck dispatch is 93x1x1 on a compute program whose u4 is a placed heap resource with a title address, i.e. a big dispatch over a wrapped/aliased resource. FlushGpuCachesX is the console's "make writes visible" call and this title uses it instead of explicit barriers; VIctory's list-level state tracking already covers texture transitions, so the remaining suspect is UAV ordering between dispatches inside one list rather than the RT→SRV case.

Also worth stating for anyone bisecting: skipping compute by shader hash cannot work. The title mints a new hash per area, so the killer is always the one hash not in the list (814 collected hashes still hung). A stage switch — one line at HostPipeline::new — is what gives a stable 8–10 fps world at 500+ draws, at the cost of the lighting passes.

Happy to run any candidate patch on this box; the reproduction is 6–8 minutes and no longer costs a reset.

**@⁠HrHd** on GitHub · 2026-11-24 14:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7134269675) Breadcrumb data for the hang, since "no breadcrumbs" kept hiding it. A `--features diagnostics` build with `VICTORY_D3D12_DRED=1` and `VICTORY_GPU_TIMING=1` names the stuck command instead of a batch: ``` ... list 27 of 28, of its 376: dispatch 93x1x1 [compute 36e010b53acffd77] | 36e010b53acffd77: u4=0xa6b080 [heap 341380: Placed(false, [1, 1, 0, 0, 998400, 0, 1, 65537, 0, 1, 0, 1, 0, 0], [0, 1, 5768, 0, 0, 0, 2400, 416, 0, 32766, 760652640, title 0x2d56a360+0xf3c00 host Some(...) ``` The pattern across six runs is identical and reproducible: a submission that grows to 28 lists, one of them (always 27th, always ~376 commands) carrying compute dispatches, the whole submission taking 29–33 s, then `0x887A0004`. With `TdrDelay=30` the machine survives and the process dies cleanly instead of the box needing a reset, so this is now cheap to reproduce — 6–8 minutes in, every time. What made it narrow-able: the stuck dispatch is `93x1x1` on a compute program whose `u4` is a *placed* heap resource with a title address, i.e. a big dispatch over a wrapped/aliased resource. `FlushGpuCachesX` is the console's "make writes visible" call and this title uses it instead of explicit barriers; VIctory's list-level state tracking already covers texture transitions, so the remaining suspect is UAV ordering between dispatches inside one list rather than the RT→SRV case. Also worth stating for anyone bisecting: skipping compute by shader hash cannot work. The title mints a new hash per area, so the killer is always the one hash not in the list (814 collected hashes still hung). A stage switch — one line at `HostPipeline::new` — is what gives a stable 8–10 fps world at 500+ draws, at the cost of the lighting passes. Happy to run any candidate patch on this box; the reproduction is 6–8 minutes and no longer costs a reset.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 14:29 UTC · original

@⁠HrHd that breadcrumb is what was missing, thanks. And your sync point checks out in the code. The console's pipeline syncs (list slots 129 and 130, sync in crates/victory-gpu/src/list.rs) do nothing on the host. The comment there reasons that "host lists order their own work". But D3D12 lets draws and dispatches in one list overlap unless a barrier separates them. So if the title orders a pass with a sync rather than a barrier, the next dispatch can read what the previous one hasn't written yet. A loop bound or counter read too early would make a 30 s dispatch.

Candidate patch, since you offered: test/world-stack-sync on Dufftwt/VIctory (b446491). It's test/world-stack plus one commit: each sync records a UAV barrier on every resource, the barrier the enhanced barriers already record. victory-gpu and victory-shader tests pass on Windows CI. It isn't tested in-game.

To tell the causes apart, two runs, compute allowed and your diagnostics settings:

  1. test/world-stack (e0c3385) as is. It already has the #725 coherence fix, which ended a compute hang (9ef9a9d818b27236) on Wasler's RTX 5060 Ti. If your tree didn't have it, that alone may change things.
  2. test/world-stack-sync. If 1 hangs at 36e010b53acffd77 and 2 doesn't, the missing ordering is it.

If both still hang, VICTORY_SHADER_LOOP_LIMIT=1024 would show whether it's a loop. Which GPU and tree are your six runs on?

**@⁠Dufftwt** on GitHub · 2026-11-24 14:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7134473073) @⁠HrHd that breadcrumb is what was missing, thanks. And your sync point checks out in the code. The console's pipeline syncs (list slots 129 and 130, `sync` in `crates/victory-gpu/src/list.rs`) do nothing on the host. The comment there reasons that "host lists order their own work". But D3D12 lets draws and dispatches in one list overlap unless a barrier separates them. So if the title orders a pass with a sync rather than a barrier, the next dispatch can read what the previous one hasn't written yet. A loop bound or counter read too early would make a 30 s dispatch. Candidate patch, since you offered: `test/world-stack-sync` on `Dufftwt/VIctory` (`b446491`). It's `test/world-stack` plus one commit: each sync records a UAV barrier on every resource, the barrier the enhanced barriers already record. `victory-gpu` and `victory-shader` tests pass on Windows CI. It isn't tested in-game. To tell the causes apart, two runs, compute allowed and your diagnostics settings: 1. `test/world-stack` (`e0c3385`) as is. It already has the #725 coherence fix, which ended a compute hang (`9ef9a9d818b27236`) on Wasler's RTX 5060 Ti. If your tree didn't have it, that alone may change things. 2. `test/world-stack-sync`. If 1 hangs at `36e010b53acffd77` and 2 doesn't, the missing ordering is it. If both still hang, `VICTORY_SHADER_LOOP_LIMIT=1024` would show whether it's a loop. Which GPU and tree are your six runs on?
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 14:33 UTC · original

@⁠rhuantac thanks, a careful table, and a useful negative: a 3060 Ti that doesn't hang on either tree.

Your refused compute pipelines very likely are the wave64 ones, as you guessed. The translator declares a 64-lane wave size (DXIL WaveSize(64)) on a console wave64 compute program that relies on console lanes, or that is one wave with LDS (crates/victory-shader/src/emit/lower.rs, where s.wave_size is set). NVIDIA runs only 32-lane waves, and D3D12 refuses such a pipeline with E_INVALIDARG. AMD cards run 64-lane waves, so they shouldn't see these refusals. #439 (r4tedx) runs the one-wave LDS case on 32-lane hosts.

That ties into your output-target finding. If the pass that scales the 2560x1440 scene into the 3840x2160 frame is one of these wave64 compute programs, NVIDIA cards get exactly what you saw: credits and subtitles over an empty frame. Two cheap checks:

  • A diagnostics build with VICTORY_D3D12_DEBUG=1 logs the debug layer's reason right after each host pipeline refused line. A tally of those reasons, text only, would confirm the wave-size cause.
  • Has anyone on an AMD card seen the scene in the 3840x2160 frame? If AMD shows it and NVIDIA doesn't, the refusals are the black output, and #439 plus the wave64 work in #192 are the fix to test.
**@⁠Dufftwt** on GitHub · 2026-11-24 14:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7134562724) @⁠rhuantac thanks, a careful table, and a useful negative: a 3060 Ti that doesn't hang on either tree. Your refused compute pipelines very likely are the wave64 ones, as you guessed. The translator declares a 64-lane wave size (DXIL `WaveSize(64)`) on a console wave64 compute program that relies on console lanes, or that is one wave with LDS (`crates/victory-shader/src/emit/lower.rs`, where `s.wave_size` is set). NVIDIA runs only 32-lane waves, and D3D12 refuses such a pipeline with `E_INVALIDARG`. AMD cards run 64-lane waves, so they shouldn't see these refusals. #439 (r4tedx) runs the one-wave LDS case on 32-lane hosts. That ties into your output-target finding. If the pass that scales the 2560x1440 scene into the 3840x2160 frame is one of these wave64 compute programs, NVIDIA cards get exactly what you saw: credits and subtitles over an empty frame. Two cheap checks: - A diagnostics build with `VICTORY_D3D12_DEBUG=1` logs the debug layer's reason right after each `host pipeline refused` line. A tally of those reasons, text only, would confirm the wave-size cause. - Has anyone on an AMD card seen the scene in the 3840x2160 frame? If AMD shows it and NVIDIA doesn't, the refusals are the black output, and #439 plus the wave64 work in #192 are the fix to test.
Author
Owner

@⁠rhuantac on GitHub · 2026-11-24 14:32 UTC · original · edited 2026-11-24 14:33 UTC

NVIDIA data point for the test/world-stack ask: RTX 3060 Ti (8 GB, Ampere), driver 610.88, Windows 11, 32 GB RAM, retail 1.0.2.1, Series X mode, real GPU (no WARP). Counts only, no game data.

main ffe310e test/world-stack e0c3385
Build release, then diag diag
Settings VICTORY_D3D12_DRED=1 VICTORY_D3D12_DRED=1, VICTORY_SHADER_LOOP_LIMIT=1024, no skips
Time in the world ~50 s (release), ~4 min (diag) ~6 min
Device removed / TDR none, no crashes.log none, no crashes.log
World frame rate ~4 fps release; 0.2–0.4 fps diag 0.5–1.0 fps diag
Draws per frame 1,500–2,300 1,200–2,700
Dropped without a host pipeline, per 5 s line 1,000–1,700 (400–500 still being made) 650–1,200 (0 being made)
Dropped indirect 1,700–2,700 590–1,070
host pipeline refused (0x80070057), all compute 111 distinct 134 distinct
indirect mesh dispatches dropped 0 0
  • Neither tree hung on this card, including plain main with the default loop limit, unlike the 5060 Ti / 3070 / 3080 / 4090 reports. One run each, so this says little about how often it would hang.
  • Edit: both runs were ended by closing the window, at ~4 min (main) and ~6 min (world-stack) in the world, so before or at the start of the 6–8 min window where HrHd's hang appears. They don't rule that hang out. Longer runs of test/world-stack and test/world-stack-sync to follow.
  • The main diag run was still building pipelines while in the world, and world-stack ran with the loop limit, so the frame rate and drop columns are not an A/B of the four fixes.
  • Same 5 indirect execution dropped signatures as Wasler's (stride=12 [[2…, [[10…, [[105…, stride=16 [[0…, stride=20 [[1…).
  • Most of the frame time is in preparing: copies of title memory took 1.1–2.3 s per frame against 0.1–0.6 s on the GPU.
  • Output target: this matches what HrHd and #841 (RTX 3090) saw. With VICTORY_DUMP_TARGETS=1 during the intro cutscene, the 2560x1440 targets hold the scene's geometry (characters, props, street, clearly recognisable in an R8_UINT target and the depth target), while the presented 3840x2160 frame shows only the credits and subtitles over a flat dark background.
  • The 111–134 refused compute pipelines would fit the 32-lane refusals #439 removes on a 3080. I have not tested #439.

Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.

**@⁠rhuantac** on GitHub · 2026-11-24 14:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7134536244) · edited 2026-11-24 14:33 UTC NVIDIA data point for the `test/world-stack` ask: **RTX 3060 Ti (8 GB, Ampere), driver 610.88, Windows 11, 32 GB RAM**, retail 1.0.2.1, Series X mode, real GPU (no WARP). Counts only, no game data. | | `main` `ffe310e` | `test/world-stack` `e0c3385` | |---|---|---| | Build | release, then `diag` | `diag` | | Settings | `VICTORY_D3D12_DRED=1` | `VICTORY_D3D12_DRED=1`, `VICTORY_SHADER_LOOP_LIMIT=1024`, no skips | | Time in the world | ~50 s (release), ~4 min (diag) | ~6 min | | Device removed / TDR | none, no `crashes.log` | none, no `crashes.log` | | World frame rate | ~4 fps release; 0.2–0.4 fps diag | 0.5–1.0 fps diag | | Draws per frame | 1,500–2,300 | 1,200–2,700 | | Dropped without a host pipeline, per 5 s line | 1,000–1,700 (400–500 still being made) | 650–1,200 (0 being made) | | Dropped indirect | 1,700–2,700 | 590–1,070 | | `host pipeline refused` (`0x80070057`), all compute | 111 distinct | 134 distinct | | `indirect mesh dispatches dropped` | 0 | 0 | - **Neither tree hung on this card**, including plain `main` with the default loop limit, unlike the 5060 Ti / 3070 / 3080 / 4090 reports. One run each, so this says little about how often it would hang. - *Edit:* both runs were ended by closing the window, at ~4 min (`main`) and ~6 min (`world-stack`) in the world, so before or at the start of the 6–8 min window where HrHd's hang appears. They don't rule that hang out. Longer runs of `test/world-stack` and `test/world-stack-sync` to follow. - The `main` diag run was still building pipelines while in the world, and world-stack ran with the loop limit, so the frame rate and drop columns are **not an A/B** of the four fixes. - Same 5 `indirect execution dropped` signatures as Wasler's (`stride=12 [[2…`, `[[10…`, `[[105…`, `stride=16 [[0…`, `stride=20 [[1…`). - Most of the frame time is in preparing: copies of title memory took 1.1–2.3 s per frame against 0.1–0.6 s on the GPU. - **Output target:** this matches what HrHd and #841 (RTX 3090) saw. With `VICTORY_DUMP_TARGETS=1` during the intro cutscene, the 2560x1440 targets hold the scene's geometry (characters, props, street, clearly recognisable in an R8_UINT target and the depth target), while the presented 3840x2160 frame shows only the credits and subtitles over a flat dark background. - The 111–134 refused compute pipelines would fit the 32-lane refusals #439 removes on a 3080. I have not tested #439. Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.
Author
Owner

@⁠HrHd on GitHub · 2026-11-24 14:48 UTC · original

Two results that narrow the compute hang, both reproducible today.

1. The compute shaders are all valid DXIL. victory translate --validate over the whole retail pack:

stage emitted validator
vertex + pixel 14,027 13,043 valid, 84 rejected
compute 2,582 2,442 of 2,442 valid
mesh 8,713 8,456 valid, 69 rejected

So invalid DXIL is not why a compute dispatch hangs. Every compute program that emits also validates.

2. The hang behaves like a spin, not like bad codegen. With VICTORY_SHADER_LOOP_LIMIT=64 and compute on, a run has now gone 9.7 min and still climbing, zero device removals, where nine consecutive uncapped runs died at 6–8 min. Frames are 3 s and 2 draws — it limps — but it survives. Capping iterations only changes loop trip counts, so a loop that never terminates (or never satisfies a barrier) is what the uncapped runs stall on.

That puts the suspect on barrier placement rather than translation correctness: s_barrier is emitted for compute, and is deliberately left out for mesh blocks (no_barrier) and single-lane console-flow regions. If a wave64 barrier sits under divergence while the lanes are actually separate 32-lane halves, it can never be satisfied. Worth trying on any box: VICTORY_SKIP_COMPUTE=1 (stable, 8–10 fps, no lighting) versus VICTORY_SHADER_LOOP_LIMIT=64 (all stages, survives, crawls).

Unrelated defects the validator named, all real and all cheaper than the hang: 53 × "vertex plus primitive output size" (mesh), 32 × Program Output Signature mismatch, 19 × Input Signature mismatch, 21 × TEXCOORD interpolation-mode mismatches.

**@⁠HrHd** on GitHub · 2026-11-24 14:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7134984342) Two results that narrow the compute hang, both reproducible today. **1. The compute shaders are all valid DXIL.** `victory translate --validate` over the whole retail pack: | stage | emitted | validator | |---|---|---| | vertex + pixel | 14,027 | 13,043 valid, **84 rejected** | | compute | 2,582 | **2,442 of 2,442 valid** | | mesh | 8,713 | 8,456 valid, **69 rejected** | So invalid DXIL is not why a compute dispatch hangs. Every compute program that emits also validates. **2. The hang behaves like a spin, not like bad codegen.** With `VICTORY_SHADER_LOOP_LIMIT=64` and compute **on**, a run has now gone **9.7 min and still climbing**, zero device removals, where nine consecutive uncapped runs died at 6–8 min. Frames are 3 s and 2 draws — it limps — but it survives. Capping iterations only changes loop trip counts, so a loop that never terminates (or never satisfies a barrier) is what the uncapped runs stall on. That puts the suspect on barrier placement rather than translation correctness: `s_barrier` is emitted for compute, and is deliberately left out for mesh blocks (`no_barrier`) and single-lane console-flow regions. If a wave64 barrier sits under divergence while the lanes are actually separate 32-lane halves, it can never be satisfied. Worth trying on any box: `VICTORY_SKIP_COMPUTE=1` (stable, 8–10 fps, no lighting) versus `VICTORY_SHADER_LOOP_LIMIT=64` (all stages, survives, crawls). Unrelated defects the validator named, all real and all cheaper than the hang: 53 × "vertex plus primitive output size" (mesh), 32 × Program Output Signature mismatch, 19 × Input Signature mismatch, 21 × TEXCOORD interpolation-mode mismatches.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 14:50 UTC · original

@⁠HrHd the loop cap result settles a lot, thanks. One caveat on the barrier reading: a barrier that can never be satisfied doesn't end because loops are capped, unless it sits inside a capped loop. The simpler reading is a loop whose exit depends on memory that another workgroup or an earlier dispatch writes, and the loop never sees the write. Two known gaps produce exactly that:

  1. Stale glc loads. A loop polls a value through glc loads that the host doesn't make coherent, so it never sees the change. That was the 9ef9a9d818b27236 hang, and the #725 fix ended it on an RTX 5060 Ti. The fix is in test/world-stack.
  2. Unordered dispatches. The pipeline syncs do nothing on the host, so a loop bound or counter can be read before the previous dispatch writes it. That's what test/world-stack-sync adds.

So the two uncapped runs from my last comment are the direct test: test/world-stack first, then test/world-stack-sync. With your 6–8 minute reproduction, each run answers within ten minutes.

The validator counts are worth keeping: #201 is the census of modules that fail validation, and it would take your 84 + 69 with their reasons.

**@⁠Dufftwt** on GitHub · 2026-11-24 14:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7135024377) @⁠HrHd the loop cap result settles a lot, thanks. One caveat on the barrier reading: a barrier that can never be satisfied doesn't end because loops are capped, unless it sits inside a capped loop. The simpler reading is a loop whose exit depends on memory that another workgroup or an earlier dispatch writes, and the loop never sees the write. Two known gaps produce exactly that: 1. **Stale `glc` loads.** A loop polls a value through `glc` loads that the host doesn't make coherent, so it never sees the change. That was the `9ef9a9d818b27236` hang, and the #725 fix ended it on an RTX 5060 Ti. The fix is in `test/world-stack`. 2. **Unordered dispatches.** The pipeline syncs do nothing on the host, so a loop bound or counter can be read before the previous dispatch writes it. That's what `test/world-stack-sync` adds. So the two uncapped runs from my last comment are the direct test: `test/world-stack` first, then `test/world-stack-sync`. With your 6–8 minute reproduction, each run answers within ten minutes. The validator counts are worth keeping: #201 is the census of modules that fail validation, and it would take your 84 + 69 with their reasons.
Author
Owner

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

@⁠Dufftwt the debug-layer tally you asked for, same RTX 3060 Ti (driver 610.88, Windows 11). The tree is test/world-stack e0c3385, a diag build with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1, about 2 minutes into the intro cutscene.

Refusals: all wave size. 131 host pipeline refused (0x80070057), all compute, 131 distinct hashes. Each one comes with:

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

That message appears 133 times. No other create error explains a refusal. 122 refusals are followed directly by their id=622. In the other 9, pipeline-making threads interleave and the id=622 lines land just before the refusal. So on this card, every refused pipeline is a WaveSize(64) one.

Other debug-layer output in the same run, in case it's useful:

  • The two no host texture warnings are format support: a 2560x1440 B5G5R5A1_UNORM created with ALLOW_UNORDERED_ACCESS and a 2560x1440 B4G4R4A4_UNORM with ALLOW_RENDER_TARGET, both id=599 (format can't be used that way at FL 12_2).
  • Pipeline library name collisions: 555 × StorePipeline: A pipeline with name … already exists (id=970) and 554 × Load*Pipeline: The pipeline state desc provided does not match the one used to create the PSO stored with name … (id=972), plus 159 × "not stored" (id=971, expected on a first run of this tree). The 970/972 pairs look like two different pipeline descs sharing one library name, so they miss the cache and are rebuilt. I haven't looked at how the name is derived.
  • No device removal, no other API errors.

The longer run I mentioned in the edit: test/world-stack with VICTORY_D3D12_DRED=1 and VICTORY_GPU_TIMING=1, no loop limit. There was still no GPU hang. About 6.9 min into the world the title stopped itself with 0x80000003 at +0x5149aec, and that is #698 exactly: the same 8-frame stack, INSTANCE_LIST 45000/45000, Paused: Yes, SRL in Prestream, at 0.5–0.9 fps.

On this tree, HrHd's hang shader 36e010b53acffd77 doesn't translate (a scalar memory read as data is not supported), so its dispatches are dropped here. That likely explains why this card doesn't hit that hang. It also means a test/world-stack-sync run on this card couldn't tell the two causes apart, so I've skipped it for now.

Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.

**@⁠rhuantac** on GitHub · 2026-11-24 14:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7135138603) @⁠Dufftwt the debug-layer tally you asked for, same RTX 3060 Ti (driver 610.88, Windows 11). The tree is `test/world-stack` `e0c3385`, a `diag` build with `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1`, about 2 minutes into the intro cutscene. **Refusals: all wave size.** 131 `host pipeline refused` (`0x80070057`), all compute, 131 distinct hashes. Each one comes with: ``` ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32. id=622 ``` That message appears 133 times. No other create error explains a refusal. 122 refusals are followed directly by their id=622. In the other 9, pipeline-making threads interleave and the id=622 lines land just before the refusal. So on this card, every refused pipeline is a `WaveSize(64)` one. Other debug-layer output in the same run, in case it's useful: - **The two `no host texture` warnings are format support:** a 2560x1440 `B5G5R5A1_UNORM` created with `ALLOW_UNORDERED_ACCESS` and a 2560x1440 `B4G4R4A4_UNORM` with `ALLOW_RENDER_TARGET`, both id=599 (format can't be used that way at FL 12_2). - **Pipeline library name collisions:** 555 × `StorePipeline: A pipeline with name … already exists` (id=970) and 554 × `Load*Pipeline: The pipeline state desc provided does not match the one used to create the PSO stored with name …` (id=972), plus 159 × "not stored" (id=971, expected on a first run of this tree). The 970/972 pairs look like two different pipeline descs sharing one library name, so they miss the cache and are rebuilt. I haven't looked at how the name is derived. - No device removal, no other API errors. **The longer run** I mentioned in the edit: `test/world-stack` with `VICTORY_D3D12_DRED=1` and `VICTORY_GPU_TIMING=1`, no loop limit. There was still no GPU hang. About 6.9 min into the world the title stopped itself with `0x80000003` at `+0x5149aec`, and that is **#698 exactly**: the same 8-frame stack, `INSTANCE_LIST` 45000/45000, `Paused: Yes`, SRL in `Prestream`, at 0.5–0.9 fps. On this tree, HrHd's hang shader `36e010b53acffd77` doesn't translate (`a scalar memory read as data is not supported`), so its dispatches are dropped here. That likely explains why this card doesn't hit that hang. It also means a `test/world-stack-sync` run on this card couldn't tell the two causes apart, so I've skipped it for now. Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.
Author
Owner

@⁠Dufftwt on GitHub · 2026-11-24 14:56 UTC · original

@⁠rhuantac that settles the refusals: 131 of 131 are WaveSize(64) on a 32-lane card, so #439 and #192 are what would bring those compute passes back on NVIDIA.

Your last paragraph may matter most for the hang. On test/world-stack, 36e010b53acffd77 fails with a scalar memory read as data, so its dispatches are dropped, and your 6.9 minutes in the world had no hang. HrHd's tree does translate it, and there the dispatch runs 30 s until a loop cap rescues it. That refusal comes from descriptor_data (crates/victory-shader/src/emit/lower.rs): the program reads a descriptor's words as data. Translating it means rebuilding those words, such as a buffer's record count, from the host view. #953 (opened today) does that for s_buffer_load uses. If the program's loop is bounded by such a field and the rebuilt value is wrong, the loop runs practically forever. The loop cap would cut exactly that.

@⁠HrHd which change in your tree makes 36e010b53acffd77 translate? If it's #953 or similar, a run without it, with the dispatch dropped like on rhuantac's card, would show whether the hang goes with it.

On the pipeline library: the name hashes the host root signature blob, the DXIL and the full state text (library::name, pipeline/host.rs). So within one tree, two different descriptions sharing a name means some part of the description isn't in the name. Does a second run of the same tree still log the 970/972 pairs? If it doesn't, the library file was written by your earlier main runs, and it's only a cross-tree cache miss. If it does, there's a real collision, and I'll track it down.

**@⁠Dufftwt** on GitHub · 2026-11-24 14:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7135187118) @⁠rhuantac that settles the refusals: 131 of 131 are `WaveSize(64)` on a 32-lane card, so #439 and #192 are what would bring those compute passes back on NVIDIA. Your last paragraph may matter most for the hang. On `test/world-stack`, `36e010b53acffd77` fails with `a scalar memory read as data`, so its dispatches are dropped, and your 6.9 minutes in the world had no hang. HrHd's tree does translate it, and there the dispatch runs 30 s until a loop cap rescues it. That refusal comes from `descriptor_data` (`crates/victory-shader/src/emit/lower.rs`): the program reads a descriptor's words as data. Translating it means rebuilding those words, such as a buffer's record count, from the host view. #953 (opened today) does that for `s_buffer_load` uses. If the program's loop is bounded by such a field and the rebuilt value is wrong, the loop runs practically forever. The loop cap would cut exactly that. @⁠HrHd which change in your tree makes `36e010b53acffd77` translate? If it's #953 or similar, a run without it, with the dispatch dropped like on rhuantac's card, would show whether the hang goes with it. On the pipeline library: the name hashes the host root signature blob, the DXIL and the full state text (`library::name`, `pipeline/host.rs`). So within one tree, two different descriptions sharing a name means some part of the description isn't in the name. Does a second run of the same tree still log the 970/972 pairs? If it doesn't, the library file was written by your earlier `main` runs, and it's only a cross-tree cache miss. If it does, there's a real collision, and I'll track it down.
Author
Owner

@⁠rhuantac on GitHub · 2026-11-24 15:21 UTC · original

@⁠Dufftwt on the pipeline library: there is a real 970/972 pair within one tree, and it's the mesh-pipeline topology bug that #352 fixes. It isn't a cross-tree leftover.

Same RTX 3060 Ti (driver 610.88). diag with VICTORY_D3D12_DEBUG=1, each pair of runs on a new empty VICTORY_CACHE_DIR, about 2 min of intro cutscene per run.

tree run library made / loaded id=972 id=970
test/world-stack e0c3385 1 empty → 19.4 MB 440 / 0 16 17
2 from run 1 278 / 363 82 82
e0c3385 + #352 (f77bd28, merges cleanly) 1 empty → 17.9 MB 387 / 2 0 0
2 from run 1 450 / 429 0 0
  • Without #352, run 1 starts with an empty library and still logs the pair. Its first 972 comes 21 s after the first mesh bind, and none come in the menus. Run 2's first 972 is in the menus, but 10 s after the early start of the 405 pipelines listed by run 1, which include the mesh ones. So these are mesh pipelines that never load: the load is refused with 972, then the pipeline is compiled again and its store refused with 970. This is #352's description, now seen in the title.
  • With #352, both runs log 0 of either, and no id=1323 (topology mismatch).
  • id=971 "not stored" stays in the hundreds in both second runs. The longer runs reached pipelines that run 1 never made, and the 131 wave64-refused compute pipelines can't be stored, so they're looked up and missed on every run.

So no extra collision beyond #352 on this card. Not measured: what this does to loading time.

Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.

**@⁠rhuantac** on GitHub · 2026-11-24 15:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7135901923) @⁠Dufftwt on the pipeline library: there is a real 970/972 pair within one tree, and it's the mesh-pipeline topology bug that #352 fixes. It isn't a cross-tree leftover. Same RTX 3060 Ti (driver 610.88). `diag` with `VICTORY_D3D12_DEBUG=1`, each pair of runs on a new empty `VICTORY_CACHE_DIR`, about 2 min of intro cutscene per run. | tree | run | library | made / loaded | id=972 | id=970 | |---|---|---|---|---|---| | `test/world-stack` `e0c3385` | 1 | empty → 19.4 MB | 440 / 0 | **16** | **17** | | | 2 | from run 1 | 278 / 363 | **82** | **82** | | `e0c3385` + #352 (`f77bd28`, merges cleanly) | 1 | empty → 17.9 MB | 387 / 2 | **0** | **0** | | | 2 | from run 1 | 450 / 429 | **0** | **0** | - Without #352, run 1 starts with an empty library and still logs the pair. Its first 972 comes 21 s after the first mesh bind, and none come in the menus. Run 2's first 972 is in the menus, but 10 s after the early start of the 405 pipelines listed by run 1, which include the mesh ones. So these are mesh pipelines that never load: the load is refused with 972, then the pipeline is compiled again and its store refused with 970. This is #352's description, now seen in the title. - With #352, both runs log 0 of either, and no id=1323 (topology mismatch). - id=971 "not stored" stays in the hundreds in both second runs. The longer runs reached pipelines that run 1 never made, and the 131 wave64-refused compute pipelines can't be stored, so they're looked up and missed on every run. So no extra collision beyond #352 on this card. Not measured: what this does to loading time. Runs and log reading done with an AI assistant (Claude Code); the numbers are counted from the logs.
Author
Owner

@⁠alexdeliu on GitHub · 2026-11-24 17:20 UTC · original

I built and tested every open PR that merges cleanly (346), each merged onto main @ ffe310eb. The steps are CI's: clippy ×2 with -D warnings, then cargo test --workspace. The host has an AMD RX 9070 (RDNA4, native wave64), so the hardware-only shader tests ran too. CI on WARP skips them.

Report and per-PR table, with the head SHA each PR was tested at: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87

Totals:

  • 309 pass.
  • 16 fail only a lint.
  • 16 don't build on main.
  • 3 fail tests.

Easy rebases. 15 shader PRs fail only because two test helpers in emit/lower.rs changed signature on main:

The affected PRs are #101 #120 #142 #148 #165 #166 #171 #200 #308 #391 #420 #457 #608 #694 #705.

Merge picks per blocker (reasons in the gist):

  • LDS bytes: #632.
  • 64-bit image atomics: #539 over #305. #305's handle cache key has no element type.
  • Null descriptors: #568.
  • Resource states: #334. #588, #594 and #346 conflict with it and need a rebase after it.
  • Barycentrics: #453.
  • Wave64: #439 (382 tests) and #189 (366) both pass on native 64-lane hardware.

Branches you can pull:

Hardware-only failure: #169's tbuffer_d16_loads_pack_two_channels_per_dword fails on RDNA4. 16_16_UNORM 0xFFFF loads as 0x3BFF, not 0x3C00.

**@⁠alexdeliu** on GitHub · 2026-11-24 17:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7139057305) I built and tested every open PR that merges cleanly (346), each merged onto `main` @ `ffe310eb`. The steps are CI's: clippy ×2 with `-D warnings`, then `cargo test --workspace`. The host has an **AMD RX 9070 (RDNA4, native wave64)**, so the hardware-only shader tests ran too. CI on WARP skips them. Report and per-PR table, with the head SHA each PR was tested at: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87 **Totals:** - 309 pass. - 16 fail only a lint. - 16 don't build on `main`. - 3 fail tests. **Easy rebases.** 15 shader PRs fail only because two test helpers in `emit/lower.rs` changed signature on `main`: - `resource::track(.., Some(&st))` (6638098c). - `lowers(words, 0)` (25b0f888). The affected PRs are #101 #120 #142 #148 #165 #166 #171 #200 #308 #391 #420 #457 #608 #694 #705. **Merge picks per blocker** (reasons in the gist): - LDS bytes: #632. - 64-bit image atomics: #539 over #305. #305's handle cache key has no element type. - Null descriptors: #568. - Resource states: #334. #588, #594 and #346 conflict with it and need a rebase after it. - Barycentrics: #453. - Wave64: #439 (382 tests) and #189 (366) both pass on native 64-lane hardware. **Branches you can pull:** - [`stack-ffe310e`](https://github.com/alexdeliu/VIctory/tree/stack-ffe310e) = `main` + #632 + #539 + #334 + #453 + #413 rebased. Clippy ×2 clean, **366 tests pass** on RDNA4. - [`bindless-on-main`](https://github.com/alexdeliu/VIctory/tree/bindless-on-main) = #413 through `6a0c5e9` on `ffe310eb`, conflicts resolved, **351 tests pass**, the bindless GPU tests among them. #185 now merges cleanly too and passes. **Hardware-only failure:** #169's `tbuffer_d16_loads_pack_two_channels_per_dword` fails on RDNA4. `16_16_UNORM` `0xFFFF` loads as `0x3BFF`, not `0x3C00`.
Author
Owner

@⁠alexdeliu on GitHub · 2026-11-24 18:45 UTC · original

Merge train: alexdeliu/VIctory:train-ffe310e. It takes main @ ffe310eb and merges 149 open PRs, each of which passes alone. They went in priority order, world blockers first: #413 rebased, #632, #539, #334, #169, #171, and others. A PR that conflicted with one already merged was skipped. On the RX 9070, both CI clippy runs are clean and cargo test --workspace passes 710 tests (main: 342), the same in two runs.

The PRs fit together except in four places. The last commit (e3f72c57) fixes them:

  • #319 + #174 (frame.rs): #174 takes the tick inside next_tick, and #319's new early return for a late flip skips that. With both, waits_end_on_ticks_and_count_frames fails (10, want 11).
  • #472 + #602 (texture.rs, diagnostics): #602 reads the per-texture read buffer that #472 replaces with SCRATCH.
  • HostHeap::new(.., 0) in other PRs' tests after #413, and two duplicate mod tests in pipeline/host.rs.
  • Left out, because together they don't build:
    • #315 calls the fft that #172 removes.
    • #697's dead-code pass doesn't handle #265's Alloca.

Not in the train, because they conflict with it: #453 (interpolation code that another merged PR rewrote), #568, #439, #346 and #185. The list of merged and skipped PRs is in the gist: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87#file-3-merge-train-md

**@⁠alexdeliu** on GitHub · 2026-11-24 18:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7141109186) **Merge train:** [`alexdeliu/VIctory:train-ffe310e`](https://github.com/alexdeliu/VIctory/tree/train-ffe310e). It takes `main` @ `ffe310eb` and merges **149 open PRs**, each of which passes alone. They went in priority order, world blockers first: #413 rebased, #632, #539, #334, #169, #171, and others. A PR that conflicted with one already merged was skipped. On the **RX 9070**, both CI clippy runs are clean and `cargo test --workspace` passes **710 tests** (main: 342), the same in two runs. The PRs fit together except in four places. The last commit (`e3f72c57`) fixes them: - **#319 + #174** (`frame.rs`): #174 takes the tick inside `next_tick`, and #319's new early return for a late flip skips that. With both, `waits_end_on_ticks_and_count_frames` fails (10, want 11). - **#472 + #602** (`texture.rs`, diagnostics): #602 reads the per-texture `read` buffer that #472 replaces with `SCRATCH`. - `HostHeap::new(.., 0)` in other PRs' tests after #413, and two duplicate `mod tests` in `pipeline/host.rs`. - Left out, because together they don't build: - #315 calls the `fft` that #172 removes. - #697's dead-code pass doesn't handle #265's `Alloca`. Not in the train, because they conflict with it: #453 (interpolation code that another merged PR rewrote), #568, #439, #346 and #185. The list of merged and skipped PRs is in the gist: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87#file-3-merge-train-md
Author
Owner

@⁠alexdeliu on GitHub · 2026-11-24 19:55 UTC · original

AMD-specific shader bugs, found by comparing GPUs. I ran every lowered VALU opcode on an RX 9070, a gfx1036 iGPU (RDNA2, like the console) and WARP, on the same edge-case inputs. The fuzzer is #1614. Three findings change results in-game on AMD cards:

  • #422 (already open) fixes f16 math on AMD. legacyF32ToF16 rounds toward zero on AMD's driver, so every f16 result the translation computes in f32 is biased low there. Example: v_add_f16(0xf8b6, 0x0001) gives 0xf8b5 on AMD, where 0xf8b6 is correct. With #422 the three devices agree bit for bit.
  • #1599 (new) fixes ordered 64-bit integer compares. On AMD they are wrong when the operands share a dword. The GPU test in that PR fails on the RX 9070 without the fix.
  • #1326 (already open) stops fcmp false/fcmp true from removing the WARP device. That is the device CI runs on, and every GPU test after such a shader fails with it.

The full report is in the gist: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87#file-4-valu-fuzz-md

**@⁠alexdeliu** on GitHub · 2026-11-24 19:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7142795258) **AMD-specific shader bugs, found by comparing GPUs.** I ran every lowered VALU opcode on an RX 9070, a gfx1036 iGPU (RDNA2, like the console) and WARP, on the same edge-case inputs. The fuzzer is #1614. Three findings change results in-game on AMD cards: - **#422 (already open) fixes f16 math on AMD.** `legacyF32ToF16` rounds toward zero on AMD's driver, so every f16 result the translation computes in f32 is biased low there. Example: `v_add_f16(0xf8b6, 0x0001)` gives `0xf8b5` on AMD, where `0xf8b6` is correct. With #422 the three devices agree bit for bit. - **#1599 (new) fixes ordered 64-bit integer compares.** On AMD they are wrong when the operands share a dword. The GPU test in that PR fails on the RX 9070 without the fix. - **#1326 (already open) stops `fcmp false`/`fcmp true` from removing the WARP device.** That is the device CI runs on, and every GPU test after such a shader fails with it. The full report is in the gist: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87#file-4-valu-fuzz-md
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:48 UTC · original · edited 2026-11-25 01:53 UTC

Automated triage for the maintainers.

This is a coordination thread, so it stays open as the place to discuss priorities. The maintainers can decide whether to pin an answer. Pull requests are open to everyone again, so the fixes named here can go in as PRs.

What the thread has pinned down so far, checked against current main where it names code:

  • Loop hangs in the world. Compute 9ef9a9d818b27236 waits on glc loads, and the #725 coherence fix ended that hang on an RTX 5060 Ti but not on an RX 9070 XT. main does not mark UAVs globally coherent yet; open PR #1271 does. The draw with mesh 04b9be3756e8f41c and pixel 1af4a50c7fb40c97 hangs on both vendors; see #778.
  • Pipeline syncs. These are empty on the host: sync in crates/victory-gpu/src/list.rs has no body. Open PR #1228 adds the barrier.
  • Wave64 compute refused on 32-lane hosts. 131 of 131 refusals on an RTX 3060 Ti were WaveSize(64). Open PRs include #439, #189, #192 and #1929.
  • Resource states and null UAVs. #334 is the open fix. #568 (typed null descriptors) was closed without being merged and is not in main.

Hardware results keep coming in here. Findings that need their own fix are better filed as separate issues, as several people already did (#754 to #761 and #798).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/732#issuecomment-7149983442) · edited 2026-11-25 01:53 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T19:55:49Z at=2026-11-25T01:48:41Z --> Automated triage for the maintainers. This is a coordination thread, so it stays open as the place to discuss priorities. The maintainers can decide whether to pin an answer. Pull requests are open to everyone again, so the fixes named here can go in as PRs. What the thread has pinned down so far, checked against current `main` where it names code: - **Loop hangs in the world.** Compute `9ef9a9d818b27236` waits on `glc` loads, and the #725 coherence fix ended that hang on an RTX 5060 Ti but not on an RX 9070 XT. `main` does not mark UAVs globally coherent yet; open PR #1271 does. The draw with mesh `04b9be3756e8f41c` and pixel `1af4a50c7fb40c97` hangs on both vendors; see #778. - **Pipeline syncs.** These are empty on the host: `sync` in `crates/victory-gpu/src/list.rs` has no body. Open PR #1228 adds the barrier. - **Wave64 compute refused on 32-lane hosts.** 131 of 131 refusals on an RTX 3060 Ti were `WaveSize(64)`. Open PRs include #439, #189, #192 and #1929. - **Resource states and null UAVs.** #334 is the open fix. #568 (typed null descriptors) was closed without being merged and is not in `main`. Hardware results keep coming in here. Findings that need their own fix are better filed as separate issues, as several people already did (#754 to #761 and #798). --- _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#732
No description provided.