The world: 64 indirect draws/frame dropped, 282 compute / 14 mesh / 17 VS-PS shaders do not translate (RX 9070 XT) #748

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

@⁠KricsDavid on GitHub · 2026-11-24 09:28 UTC · original

Setup: Windows 11 Pro 26300, Ryzen 7 5800X3D, 32 GB, AMD RX 9070 XT (driver 32.0.32029.2010),
retail title 1.0.2.1, build c7a5f49 (release) and the same commit as a diag build.
game_dir points at my own dump; victory.toml otherwise default.
What works: boot screens, intro video with sound, start screen, profile, loading into the
world (~50 s), the first mission's intro and its title card. The window caption shows ~1 fps in the
world; menus were 30 fps for me. GPU sits at ~38%, so this is not GPU-bound.
Translate pass (victory translate --pipelines, ran to completion on this dump):

programs     26148 translated of 26148 (40647088 IR instructions)
DXIL         12236 emitted of 14013 vertex and pixel programs
             1440 emitted of 2581 compute programs
             8163 emitted of 8506 mesh programs
      653  emit: a 64-bit image atomic
      604  emit: a scalar memory read as data
      388  emit: a descriptor read only as data
      298  resources: a descriptor neither loaded nor built
      288  emit: a select on an untracked mask

Run (VICTORY_GPU_TIMING=1, diag build, no capture): the title reaches the world and renders
the title card, then the scene is dark. The log (debug level) shows the scene is being dropped
rather than drawn:

WARN victory_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="compute"   ×282
WARN victory_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="mesh"      ×14
WARN victory_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="vertex/pixel" ×17
INFO victory_gpu::host: dropped 64.0/frame without a host pipeline: indirect kind 0: prepare failed (compute false, mesh false)
INFO victory_gpu::host: dropped 5.0/frame without a host pipeline: compute a197f50cd8481541
INFO victory_gpu::host: dropped 5.0/frame without a host pipeline: compute c85822de2e41cfaa
INFO victory_gpu::host: dropped 5.0/frame without a host pipeline: mesh adc5c689b0552cc2
WARN victory_gpu::host: slow host list ms=52 commands=0
DEBUG victory_gpu::texture: a sampled texture's memory is all zero (not streamed yet, or a failed BCPack read)   (many, early frames)

Questions

  1. Is the dropped 64.0/frame … indirect kind 0: prepare failed expected at this stage (the
    README says most of the scene is missing), or is it a separate defect worth a trace? The
    prepare failed (compute false, mesh false) reads like the arguments buffer's pipeline could
    not be resolved before the indirect call.
  2. The 282 compute shaders that do not translate are presumably the 64-bit image atomic and
    scalar memory read as data groups from the translate pass (the RaytracingResolve /
    InterpolateStrands family). Is there a list of shader hashes I should attach, or is a
    VICTORY_SKIP_PIPELINES run with those hashes the useful next data point?
  3. Are the all-zero sampled textures a streaming-order problem (they are sampled before the
    streamer wrote them) or the failed BCPack reads?
  4. Does VICTORY_SHADER_LOOP_LIMIT help world frame time on this title? At the default it is
    ~1 fps/frame here; I can measure a lower limit and report the difference if that is useful.
    Not tested: NVIDIA, Series S mode, and other titles. The GPU hung hard once when entering the
    world on a real device (the README warns about this); the run above is the one that got through.
    AI use: written by an AI agent (DeepSeek Harness, deepseek-flash) from my run logs; the runs,
    the hardware and the dump are mine. No game files are attached.
**@⁠KricsDavid** on GitHub · 2026-11-24 09:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/748) **Setup:** Windows 11 Pro 26300, Ryzen 7 5800X3D, 32 GB, AMD RX 9070 XT (driver 32.0.32029.2010), retail title 1.0.2.1, build `c7a5f49` (release) and the same commit as a `diag` build. `game_dir` points at my own dump; `victory.toml` otherwise default. **What works:** boot screens, intro video with sound, start screen, profile, loading into the world (~50 s), the first mission's intro and its title card. The window caption shows ~1 fps in the world; menus were 30 fps for me. GPU sits at ~38%, so this is not GPU-bound. **Translate pass** (`victory translate --pipelines`, ran to completion on this dump): ``` programs 26148 translated of 26148 (40647088 IR instructions) DXIL 12236 emitted of 14013 vertex and pixel programs 1440 emitted of 2581 compute programs 8163 emitted of 8506 mesh programs 653 emit: a 64-bit image atomic 604 emit: a scalar memory read as data 388 emit: a descriptor read only as data 298 resources: a descriptor neither loaded nor built 288 emit: a select on an untracked mask ``` **Run** (`VICTORY_GPU_TIMING=1`, diag build, no capture): the title reaches the world and renders the title card, then the scene is dark. The log (debug level) shows the scene is being dropped rather than drawn: ``` WARN victory_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="compute" ×282 WARN victory_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="mesh" ×14 WARN victory_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="vertex/pixel" ×17 INFO victory_gpu::host: dropped 64.0/frame without a host pipeline: indirect kind 0: prepare failed (compute false, mesh false) INFO victory_gpu::host: dropped 5.0/frame without a host pipeline: compute a197f50cd8481541 INFO victory_gpu::host: dropped 5.0/frame without a host pipeline: compute c85822de2e41cfaa INFO victory_gpu::host: dropped 5.0/frame without a host pipeline: mesh adc5c689b0552cc2 WARN victory_gpu::host: slow host list ms=52 commands=0 DEBUG victory_gpu::texture: a sampled texture's memory is all zero (not streamed yet, or a failed BCPack read) (many, early frames) ``` **Questions** 1. Is the `dropped 64.0/frame … indirect kind 0: prepare failed` expected at this stage (the README says most of the scene is missing), or is it a separate defect worth a trace? The `prepare failed (compute false, mesh false)` reads like the arguments buffer's pipeline could not be resolved before the indirect call. 2. The 282 compute shaders that do not translate are presumably the `64-bit image atomic` and `scalar memory read as data` groups from the translate pass (the RaytracingResolve / InterpolateStrands family). Is there a list of shader hashes I should attach, or is a `VICTORY_SKIP_PIPELINES` run with those hashes the useful next data point? 3. Are the all-zero sampled textures a streaming-order problem (they are sampled before the streamer wrote them) or the failed BCPack reads? 4. Does `VICTORY_SHADER_LOOP_LIMIT` help world frame time on this title? At the default it is ~1 fps/frame here; I can measure a lower limit and report the difference if that is useful. **Not tested:** NVIDIA, Series S mode, and other titles. The GPU hung hard once when entering the world on a real device (the README warns about this); the run above is the one that got through. **AI use:** written by an AI agent (DeepSeek Harness, `deepseek-flash`) from my run logs; the runs, the hardware and the dump are mine. No game files are attached.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:55 +00:00
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 10:34 UTC · original

Rebased and verified the root-constant address pair lowering on top of recent main (#710 / commit github.com/LAKSHYA-cmd-tech/VIctory@44aec54b83), including s_load_dword* scalar reads through root constants. All 111 tests in victory-shader and 68 in victory-gpu pass cleanly.

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 10:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/748#issuecomment-7128951188) Rebased and verified the root-constant address pair lowering on top of recent main (#710 / commit https://github.com/LAKSHYA-cmd-tech/VIctory/commit/44aec54b83ea9a35e959ce5012a8069503dc08eb), including s_load_dword* scalar reads through root constants. All 111 tests in victory-shader and 68 in victory-gpu pass cleanly.
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 10:43 UTC · original

For question 2, your completed debug run should already contain the most useful comparison. In c7a5f49, the shader does not translate warning includes stage, hash and error together. Could you share those three fields for the following hashes if they appear in that warning?

  • Compute a197f50cd8481541 and c85822de2e41cfaa
  • Mesh adc5c689b0552cc2

You reported five drops per frame for each. The error on each matching row would tell us which translator change to test for those draws. If a hash only appears in the drop summary, that is useful too. The 653 atomic and 604 scalar-read counts cover the entire archive, so they cannot tell us which error an individual world shader hit. Searching your existing log is sufficient for this comparison.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 10:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/748#issuecomment-7129163044) For question 2, your completed debug run should already contain the most useful comparison. In `c7a5f49`, the `shader does not translate` warning includes `stage`, `hash` and `error` together. Could you share those three fields for the following hashes if they appear in that warning? - Compute `a197f50cd8481541` and `c85822de2e41cfaa` - Mesh `adc5c689b0552cc2` You reported five drops per frame for each. The error on each matching row would tell us which translator change to test for those draws. If a hash only appears in the drop summary, that is useful too. The 653 atomic and 604 scalar-read counts cover the entire archive, so they cannot tell us which error an individual world shader hit. Searching your existing log is sufficient for this comparison.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:50 UTC · original

Automated triage for the maintainers.

Complete run report (RX 9070 XT, driver 32.0.32029.2010, Windows 11 26300, c7a5f49). The world is reached but stays dark, which matches the README's current state. The untranslated-shader drops are coordinated in #293.

On your questions:

  1. indirect kind 0: prepare failed (compute false, mesh false): this is a draw whose host pipeline exists, but State::prepare refused it (State::execute_indirect in crates/victory-gpu/src/draw.rs). It is a different path from "no host pipeline". On current main, the diag build adds the reason after a colon on this line. A rerun on current main that shows that reason would settle it. Merged #1635 now drops calls whose pipeline isn't built yet before the argument clamp, but that does not change this path.
  2. The per-hash errors MichaelSmithAI asked for (stage, hash, error for a197f50cd8481541, c85822de2e41cfaa, adc5c689b0552cc2) are the useful next data point. Hashes and refusal reasons are enough. Please don't post shader program names from the title.
  3. The all-zero texture message covers both cases, and the log alone can't tell them apart.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/748#issuecomment-7152285198) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T10:43:37Z at=2026-11-25T03:50:09Z --> Automated triage for the maintainers. Complete run report (RX 9070 XT, driver 32.0.32029.2010, Windows 11 26300, `c7a5f49`). The world is reached but stays dark, which matches the README's current state. The untranslated-shader drops are coordinated in **#293**. On your questions: 1. **`indirect kind 0: prepare failed (compute false, mesh false)`:** this is a draw whose host pipeline exists, but `State::prepare` refused it (`State::execute_indirect` in `crates/victory-gpu/src/draw.rs`). It is a different path from "no host pipeline". On current `main`, the diag build adds the reason after a colon on this line. A rerun on current `main` that shows that reason would settle it. Merged #1635 now drops calls whose pipeline isn't built yet before the argument clamp, but that does not change this path. 2. The per-hash errors MichaelSmithAI asked for (stage, hash, error for `a197f50cd8481541`, `c85822de2e41cfaa`, `adc5c689b0552cc2`) are the useful next data point. Hashes and refusal reasons are enough. Please don't post shader program names from the title. 3. The all-zero texture message covers both cases, and the log alone can't tell them apart. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Jackster on GitHub · 2026-11-26 14:30 UTC · original

The three programs on another RDNA3 card: two translate and bind, one is dropped by a root-view-offset check that #2703 fixes

Our logs answer the stage/hash/error question from a 300 s world run of retail 1.0.2.1 on an RX 7900 XTX (1002:744c, driver 32.0.32029.2010, Windows 10 26300.10075), diagnostics build, VICTORY_LOG=victory=info.

hash stage what the logs say
a197f50cd8481541 compute translated (shader translated stage="compute"), host pipeline made, first bind ... frame=1724 stage="compute" size=8340. No refusal, no per-hash drop.
adc5c689b0552cc2 mesh translated, host mesh pipeline made for [mesh adc5c689b0552cc2, pixel d3bf7d8dc468a3d7], first bind ... frame=1213 stage="mesh" size=22912. No refusal, no per-hash drop.
c85822de2e41cfaa compute translated and bound (first bind ... frame=1724, size 13308), but on unpatched main it is dropped at dispatch with a reason.

The one per-hash reason, from main at 63bcca4 (29–32 lines per run):

dropped 5.0/frame without a host pipeline: dispatch: a root view's offset:
no root view, or outside title buffers [compute c85822de2e41cfaa]

So for this program the drop is not a translation refusal and not the pipeline queue: it is the root-view-offset check in draw.rs's user-data loop taking a root constant's dword 4 for a view offset. With #2703 (a root constant's dword 4 is a value, not a view offset) in the tree the same program translates, makes its pipeline and binds — the drop is gone, and this is a named program the fix restores, which the PR's description does not have.

Two other observations from the same logs, since the 64/frame in the report is aggregate:

  • Every shader does not translate warning in our runs is for one of three programs, none of them yours: 90a0692af4320129 and 82a2ad6d07417d36 (both "GFX10 code at 0x14dc/0x150c: a lane mask read as data", the BVH-skinning pair) and a929109552ce1e84.
  • The bulk of the drops carry no hash — dropped … without a host pipeline: being made and dropped … indirect kind 10: no host pipeline — so the per-frame number cannot be attributed to individual programs beyond c85822.

Written with an AI assistant.

**@⁠Jackster** on GitHub · 2026-11-26 14:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/748#issuecomment-7194910980) **The three programs on another RDNA3 card: two translate and bind, one is dropped by a root-view-offset check that #2703 fixes** Our logs answer the `stage`/`hash`/`error` question from a 300 s world run of retail 1.0.2.1 on an RX 7900 XTX (`1002:744c`, driver 32.0.32029.2010, Windows 10 26300.10075), diagnostics build, `VICTORY_LOG=victory=info`. | hash | stage | what the logs say | |---|---|---| | `a197f50cd8481541` | compute | translated (`shader translated stage="compute"`), host pipeline made, `first bind ... frame=1724 stage="compute" size=8340`. No refusal, no per-hash drop. | | `adc5c689b0552cc2` | mesh | translated, host mesh pipeline made for `[mesh adc5c689b0552cc2, pixel d3bf7d8dc468a3d7]`, `first bind ... frame=1213 stage="mesh" size=22912`. No refusal, no per-hash drop. | | `c85822de2e41cfaa` | compute | translated and bound (`first bind ... frame=1724`, size 13308), but on unpatched `main` it is dropped at dispatch with a reason. | The one per-hash reason, from `main` at `63bcca4` (29–32 lines per run): ``` dropped 5.0/frame without a host pipeline: dispatch: a root view's offset: no root view, or outside title buffers [compute c85822de2e41cfaa] ``` So for this program the drop is not a translation refusal and not the pipeline queue: it is the root-view-offset check in `draw.rs`'s user-data loop taking a root constant's dword 4 for a view offset. With #2703 (a root constant's dword 4 is a value, not a view offset) in the tree the same program translates, makes its pipeline and binds — the drop is gone, and this is a named program the fix restores, which the PR's description does not have. Two other observations from the same logs, since the 64/frame in the report is aggregate: - Every `shader does not translate` warning in our runs is for one of three programs, none of them yours: `90a0692af4320129` and `82a2ad6d07417d36` (both "GFX10 code at 0x14dc/0x150c: a lane mask read as data", the BVH-skinning pair) and `a929109552ce1e84`. - The bulk of the drops carry no hash — `dropped … without a host pipeline: being made` and `dropped … indirect kind 10: no host pipeline` — so the per-frame number cannot be attributed to individual programs beyond `c85822`. Written with an AI assistant.
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#748
No description provided.