Compute pipelines from loose parts fail: malformed shader: unknown loose metadata version (title 930.048.020) #47

Open
opened 2026-12-05 06:26:53 +00:00 by github-bot · 6 comments
Owner

@⁠Tip-Tutaki on GitHub · 2026-12-05 06:26 UTC · original

Summary

Across every run of title 930.048.020 (TitleID 7952987A), ~26-29 compute pipelines fail to build with make=false and the reason malformed shader: unknown loose metadata version. The dispatches that would have used them are dropped (a dispatch without a host pipeline dropped). Deterministic and repeatable: same signatures every run. These look like texture-processing passes, so their output never exists - a plausible contributor to the texture artifacts we see alongside the descriptor-slot cap.

Where it refuses

crates/victory-shader/src/native.rs, loose_metadata() (~line 621):

let (head, from) = match version {
    2 => (0xc, 0x10),
    3 => (0x14, 0x38),
    _ => return Err(Malformed("unknown loose metadata version")),
};

The doc comment above it describes version 2 (graphics stages, records from +0x10) and version 3 (compute stage, records from +0x38, "0 seen" code dwords). This title build hands over a version neither describes.

What the title passes (from the WARN lines)

The failure comes through DeserializeComputePipelineStateX ("a pipeline made from loose parts"). Example from the log (signature 0x22f93080, calls=64):

  • packet: 28 B [4005cf00, 6c090102, 0, 20020, 1, 402c034d, 3888c]
  • metadata: 20 B [a9f02247, 3, 0, 0, 0]
  • CS: code 6080 B, metadata 600 B [403, 244, 5f0, 0, 0, 90440, 41, 401]

Note the metadata's first dword is a9f02247 - not 2, not 3. The 20-byte length also does not match either documented header (v2 head 0xc, v3 head 0x14). Full part bytes for all 29 warnings are in the attached log.

Signatures seen (one 38-minute run)

8 signature 0x22f93080
7 signature 0x22f93230
6 signature 0x22f93110
2 signature 0x49692140
1 signature 0x499016a0
1 signature 0x49692170
1 signature 0x49692080
1 signature 0x22f931a0
1 signature 0x22f93170
1 signature 0x1a60c830

Environment

  • victory.exe x86_64-pc-windows-msvc release, built 2026-12-03 (VIctory-Hydra @ 9dca5652)
  • Title 930.048.020-vb_sub_story, image victory-image-b99f876b74d4a77f.dll
  • RTX 5070 Ti, driver 620.73.0, Proton GE-Proton11-14-viewtree
  • Series X console mode, DLSS balanced + FG 4x
  • HERO LEAD: a placed texture view lies in the memory of a texture the host copied into: it is filled from title memory, which the copy never reached (1024x1024 views, formats 98/99, 9 layers, inside a 2048-wide copied texture) - 200 occurrences.
  • 8x prelude upload left out: the host wrote the texture after the list that samples it.
  • 1x no free dynamic descriptor slots: a table is not made n=14 (with the default 393216 dynamic slots; the title wants 1,245,184 view slots and only 606,783 fit - VICTORY_DYNAMIC_SLOTS=262144 rebalances this, testing next run).

Attachments

  • loose-parts-pipelines.log - all 29 warnings with full part bytes (via gist)
  • native-rs-loose-metadata-excerpt.txt - the refusing code
  • run-summary.txt, hero-lead-texture-warnings.log, misc-warnings.log (via gist)

Gist: https://gist.github.com/Tip-Tutaki/19a72f004b3142f417b25c6b2b4d2349

**@⁠Tip-Tutaki** on GitHub · 2026-12-05 06:26 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47) ## Summary Across every run of title 930.048.020 (TitleID 7952987A), ~26-29 compute pipelines fail to build with `make=false` and the reason `malformed shader: unknown loose metadata version`. The dispatches that would have used them are dropped (`a dispatch without a host pipeline dropped`). Deterministic and repeatable: same signatures every run. These look like texture-processing passes, so their output never exists - a plausible contributor to the texture artifacts we see alongside the descriptor-slot cap. ## Where it refuses `crates/victory-shader/src/native.rs`, `loose_metadata()` (~line 621): ```rust let (head, from) = match version { 2 => (0xc, 0x10), 3 => (0x14, 0x38), _ => return Err(Malformed("unknown loose metadata version")), }; ``` The doc comment above it describes version 2 (graphics stages, records from +0x10) and version 3 (compute stage, records from +0x38, "0 seen" code dwords). This title build hands over a version neither describes. ## What the title passes (from the WARN lines) The failure comes through `DeserializeComputePipelineStateX` ("a pipeline made from loose parts"). Example from the log (signature `0x22f93080`, calls=64): - packet: 28 B `[4005cf00, 6c090102, 0, 20020, 1, 402c034d, 3888c]` - metadata: 20 B `[a9f02247, 3, 0, 0, 0]` - CS: code 6080 B, metadata 600 B `[403, 244, 5f0, 0, 0, 90440, 41, 401]` Note the metadata's first dword is `a9f02247` - not 2, not 3. The 20-byte length also does not match either documented header (v2 head 0xc, v3 head 0x14). Full part bytes for all 29 warnings are in the attached log. ## Signatures seen (one 38-minute run) ``` 8 signature 0x22f93080 7 signature 0x22f93230 6 signature 0x22f93110 2 signature 0x49692140 1 signature 0x499016a0 1 signature 0x49692170 1 signature 0x49692080 1 signature 0x22f931a0 1 signature 0x22f93170 1 signature 0x1a60c830 ``` ## Environment - victory.exe x86_64-pc-windows-msvc release, built 2026-12-03 (VIctory-Hydra @ 9dca5652) - Title 930.048.020-vb_sub_story, image `victory-image-b99f876b74d4a77f.dll` - RTX 5070 Ti, driver 620.73.0, Proton GE-Proton11-14-viewtree - Series X console mode, DLSS balanced + FG 4x ## Related observations in the same run (may be consequences) - `HERO LEAD: a placed texture view lies in the memory of a texture the host copied into: it is filled from title memory, which the copy never reached` (1024x1024 views, formats 98/99, 9 layers, inside a 2048-wide copied texture) - 200 occurrences. - 8x `prelude upload left out: the host wrote the texture after the list that samples it`. - 1x `no free dynamic descriptor slots: a table is not made n=14` (with the default 393216 dynamic slots; the title wants 1,245,184 view slots and only 606,783 fit - `VICTORY_DYNAMIC_SLOTS=262144` rebalances this, testing next run). ## Attachments - `loose-parts-pipelines.log` - all 29 warnings with full part bytes (via gist) - `native-rs-loose-metadata-excerpt.txt` - the refusing code - `run-summary.txt`, `hero-lead-texture-warnings.log`, `misc-warnings.log` (via gist) Gist: https://gist.github.com/Tip-Tutaki/19a72f004b3142f417b25c6b2b4d2349
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 06:26:53 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-12-05 06:26 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-12-05 06:26 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47#issuecomment-7433347469) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠Tip-Tutaki on GitHub · 2026-12-05 06:30 UTC · original

Both logs from the run are now in the evidence gist:

  • victory-nvidia-play-20261205-053659-276.log.part1of3 / part2of3 / part3of3 — the complete play log from that run (18:32:38–19:14:32, 55 MB, concatenated in order; split only to fit gist's per-file limit)
  • crashes.log — %LOCALAPPDATA%\victory\data\7952987A\crashes.log (covers today; note this run itself did not crash — it ended with a normal quit at 19:14, so there is no .crash.log from it. The three crashes in that file are the subject of #45, from earlier runs.)

GPU: NVIDIA GeForce RTX 5070 Ti, driver 620.73.0
"Windows": none — this runs under Proton (umu-launcher + GE-Proton11-14-viewtree on Linux). The title/victory see Proton's emulated Windows 10.0.19045 (the Streamline support line in the log confirms: OS 10.0.19045 (needs 10.0.0)). The loose-parts pipeline failures are deterministic across every run today, including runs before any mod DLL was in play.

The failing signatures for quick reference (all with make=false, malformed shader: unknown loose metadata version): 0x22f93080 ×8, 0x22f93230 ×7, 0x22f93110 ×6, 0x49692140 ×2, 0x499016a0, 0x49692170, 0x49692080, 0x22f931a0, 0x22f93170, 0x1a60c830 — full part bytes are in loose-parts-pipelines.log in the same gist.

**@⁠Tip-Tutaki** on GitHub · 2026-12-05 06:30 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47#issuecomment-7433395284) Both logs from the run are now in the [evidence gist](https://gist.github.com/Tip-Tutaki/19a72f004b3142f417b25c6b2b4d2349): - `victory-nvidia-play-20261205-053659-276.log.part1of3` / `part2of3` / `part3of3` — the complete play log from that run (18:32:38–19:14:32, 55 MB, concatenated in order; split only to fit gist's per-file limit) - `crashes.log` — `%LOCALAPPDATA%\victory\data\7952987A\crashes.log` (covers today; note this run itself did **not** crash — it ended with a normal quit at 19:14, so there is no `.crash.log` from it. The three crashes in that file are the subject of #45, from earlier runs.) **GPU:** NVIDIA GeForce RTX 5070 Ti, driver 620.73.0 **"Windows":** none — this runs under Proton (umu-launcher + GE-Proton11-14-viewtree on Linux). The title/victory see Proton's emulated Windows 10.0.19045 (the Streamline support line in the log confirms: `OS 10.0.19045 (needs 10.0.0)`). The loose-parts pipeline failures are deterministic across every run today, including runs before any mod DLL was in play. The failing signatures for quick reference (all with `make=false`, `malformed shader: unknown loose metadata version`): `0x22f93080` ×8, `0x22f93230` ×7, `0x22f93110` ×6, `0x49692140` ×2, `0x499016a0`, `0x49692170`, `0x49692080`, `0x22f931a0`, `0x22f93170`, `0x1a60c830` — full part bytes are in `loose-parts-pipelines.log` in the same gist.
Author
Owner

@⁠Tip-Tutaki on GitHub · 2026-12-05 21:28 UTC · original

Resolved: the parser (this issue's literal subject) — fixed and verified

The failing metadata was not a new version. Build 930.048.020 prepends a 4-byte per-pipeline hash cookie to the loose metadata (a different pseudo-random dword each time: a9f02247, c51aa663, fb724939, …), so the version sits at +4, the size field at +8, the code dwords at +12, and the head spans the cookie (size + head == len unchanged — the captured 20-byte v3 blobs carry 0 there and are exactly 0x14 long). The records offset shifts by 4 as well. Additionally, the version word may carry a 0x400 flag bit (0x403 = v3 + flag; all ten failing sizes had size field = len − 0x14, the bare-v3 formula).

Fixed in crates/victory-shader/src/native.rs (loose_metadata): cookie detection (told from a bare header because the second dword is a version, which a size field never is), field shift, records shift, and the & !0x400 mask. Three new unit tests built from the captured bytes, including a regression test that bare headers still parse. 300/300 tests pass.

Verified in a live run: 43 metadata blobs parsed, 0 malformed (was 26 malformed per run). All three families now parse — cookie-prefixed v2/v3, the 0x1000 family, and 0x403.

What the remaining 29 warnings actually are (not this parser)

With parsing fixed, the same WARN lines split into two distinct, non-parser causes:

1. 13 compute pipelines parse and build their container (program=Some(Ok)) but are refused at creation. device.rs gates creation behind an opt-in:

let make = SLOT == 0x218
    && *MAKE.get_or_init(|| std::env::var("VICTORY_LOOSE_PIPELINES").as_deref() == Ok("1"));

Without VICTORY_LOOSE_PIPELINES=1 it returns E_NOTIMPL on purpose. Setting it should light up 13 compute dispatches that have never run on this title. (Testing next session.)

2. 16 graphics pipelines (DeserializeGraphicsPipelineStateX) are program=None because graphics loose pipelines are not implemented at all — the container build is (SLOT == 0x218).then(...), compute only. This is a feature to write, not a bug to fix. The scaffolding exists: VICTORY_DESERIALIZE_DUMP=<dir> captures every description's full parts (packet, metadata, per-stage code/meta) "so that the graphics layouts can be worked out from many of them". Plan: capture a session's worth, decode the graphics layout, implement loose_graphics, upstream.

Also still open (separate from this issue)

  • VICTORY_GPU_DETILE shader build failure and no stand-in for the indirect light — both Call failed. (0x80004005), both still present after the parser fix, so they were never downstream of it. Next to investigate.
  • Environment note for the earlier triage question: this rig runs under Proton on Linux (RTX 5070 Ti, driver 620.73.0, emulated Windows 10.0.19045).

Suggest retitling this issue to the graphics-pipelines follow-up, or closing it as fixed and tracking the two items above separately — happy to file the loose_graphics implementation plan as its own issue with captured dumps attached.

**@⁠Tip-Tutaki** on GitHub · 2026-12-05 21:28 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47#issuecomment-7445689931) ## Resolved: the parser (this issue's literal subject) — fixed and verified The failing metadata was **not a new version**. Build 930.048.020 prepends a **4-byte per-pipeline hash cookie** to the loose metadata (a different pseudo-random dword each time: `a9f02247`, `c51aa663`, `fb724939`, …), so the version sits at +4, the size field at +8, the code dwords at +12, and the head spans the cookie (`size + head == len` unchanged — the captured 20-byte v3 blobs carry 0 there and are exactly 0x14 long). The records offset shifts by 4 as well. Additionally, the version word may carry a **0x400 flag bit** (`0x403` = v3 + flag; all ten failing sizes had `size field = len − 0x14`, the bare-v3 formula). Fixed in `crates/victory-shader/src/native.rs` (`loose_metadata`): cookie detection (told from a bare header because the second dword is a version, which a size field never is), field shift, records shift, and the `& !0x400` mask. Three new unit tests built from the captured bytes, including a regression test that bare headers still parse. **300/300 tests pass.** **Verified in a live run:** `43 metadata blobs parsed, 0 malformed` (was 26 malformed per run). All three families now parse — cookie-prefixed v2/v3, the `0x1000` family, and `0x403`. ## What the remaining 29 warnings actually are (not this parser) With parsing fixed, the same WARN lines split into two distinct, non-parser causes: **1. 13 compute pipelines parse and build their container (`program=Some(Ok)`) but are refused at creation.** `device.rs` gates creation behind an opt-in: ```rust let make = SLOT == 0x218 && *MAKE.get_or_init(|| std::env::var("VICTORY_LOOSE_PIPELINES").as_deref() == Ok("1")); ``` Without `VICTORY_LOOSE_PIPELINES=1` it returns `E_NOTIMPL` on purpose. Setting it should light up 13 compute dispatches that have never run on this title. (Testing next session.) **2. 16 graphics pipelines (`DeserializeGraphicsPipelineStateX`) are `program=None` because graphics loose pipelines are not implemented at all** — the container build is `(SLOT == 0x218).then(...)`, compute only. This is a feature to write, not a bug to fix. The scaffolding exists: `VICTORY_DESERIALIZE_DUMP=<dir>` captures every description's full parts (`packet`, `metadata`, per-stage `code`/`meta`) "so that the graphics layouts can be worked out from many of them". Plan: capture a session's worth, decode the graphics layout, implement `loose_graphics`, upstream. ## Also still open (separate from this issue) - `VICTORY_GPU_DETILE` shader build failure and `no stand-in for the indirect light` — both `Call failed. (0x80004005)`, both still present after the parser fix, so they were never downstream of it. Next to investigate. - Environment note for the earlier triage question: this rig runs under Proton on Linux (RTX 5070 Ti, driver 620.73.0, emulated Windows 10.0.19045). Suggest retitling this issue to the graphics-pipelines follow-up, or closing it as fixed and tracking the two items above separately — happy to file the `loose_graphics` implementation plan as its own issue with captured dumps attached.
Author
Owner

@⁠Tip-Tutaki on GitHub · 2026-12-05 22:06 UTC · original

Follow-up: the parser fix works, but the revived pipelines render a black world — flag kept off

The fix described above is committed (39dc9c4) and verified: 43 metadata blobs parsed, 0 malformed in a live run (was 26 malformed per run), 300/300 tests pass. All three families parse — cookie-prefixed v2/v3, the 0x1000 family, and 0x403.

But: with VICTORY_LOOSE_PIPELINES=1, the world renders black

The 13 compute pipelines the fix revives (the 0x403 family — all compute, CS code 384 B to 129,472 B, the two largest almost certainly the GPU-driven culling/binning passes) now build and are accepted. The title runs them — and the GPU-driven rendering pipeline collapses:

indirect mesh dispatches, groups asked per frame:
  without the flag (world renders):  44,528
  with the flag (black world):          780

Symptoms with the flag on: the world plane renders black, the UI plane works (menu, minimap, text), cutscenes black, fps normal, no crash. Draws are asked and "drawn" (4,000–11,000 a frame) but the indirect draws carry no work — consistent with the culling passes running with wrong bindings and writing garbage/zero into the indirect-argument buffers the rest of the frame consumes.

Why the bindings are suspect

I read 0x403 as "v3 + a 0x400 flag bit" and parsed the records with the bare-v3 layout (records from +0x38, shifted +4 for the cookie). The parse succeeds and produces plausible-looking root parameters (v3 code dwords 0x5d80, 3 root parameters, 93 resources for the 5,848 B blob), but plausible is not correct: the 0x400 bit more likely means a different record layout (new record kinds, a different header, or per-resource flags), so the root parameters I extract are wrong and the passes bind garbage.

Before the fix these pipelines were refused outright (E_NOTIMPL), and the title evidently has a fallback path — the world rendered without them. Running them wrong is worse than not running them.

Current state

  • The launcher keeps VICTORY_LOOSE_PIPELINES off (commented, with the reason) — world renders again.
  • The parser fix itself stays: it is correct for the cookie and strictly better than refusing (the 0x1000 family and cookie-v3 blobs it revives are proven right by the working runs).
  • Next step to do this properly: capture the 0x403 descriptions with VICTORY_DESERIALIZE_DUMP=<dir> and decode the real record layout of the flag bit — then the 13 passes can run with correct bindings, which is where the real texture/lighting payoff likely is.

Environment: Proton on Linux, RTX 5070 Ti, driver 620.73.0, title 930.048.020.

**@⁠Tip-Tutaki** on GitHub · 2026-12-05 22:06 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47#issuecomment-7446338323) ## Follow-up: the parser fix works, but the revived pipelines render a black world — flag kept off The fix described above is committed (`39dc9c4`) and verified: **43 metadata blobs parsed, 0 malformed** in a live run (was 26 malformed per run), 300/300 tests pass. All three families parse — cookie-prefixed v2/v3, the `0x1000` family, and `0x403`. ## But: with `VICTORY_LOOSE_PIPELINES=1`, the world renders black The 13 compute pipelines the fix revives (the `0x403` family — all compute, CS code 384 B to 129,472 B, the two largest almost certainly the GPU-driven culling/binning passes) now build and are accepted. The title runs them — and the **GPU-driven rendering pipeline collapses**: ``` indirect mesh dispatches, groups asked per frame: without the flag (world renders): 44,528 with the flag (black world): 780 ``` Symptoms with the flag on: the world plane renders black, the UI plane works (menu, minimap, text), cutscenes black, fps normal, no crash. Draws are asked and "drawn" (4,000–11,000 a frame) but the indirect draws carry no work — consistent with the culling passes running with **wrong bindings and writing garbage/zero into the indirect-argument buffers** the rest of the frame consumes. ## Why the bindings are suspect I read `0x403` as "v3 + a 0x400 flag bit" and parsed the records with the bare-v3 layout (records from +0x38, shifted +4 for the cookie). The parse *succeeds* and produces plausible-looking root parameters (`v3 code dwords 0x5d80, 3 root parameters, 93 resources` for the 5,848 B blob), but plausible is not correct: the 0x400 bit more likely means a **different record layout** (new record kinds, a different header, or per-resource flags), so the root parameters I extract are wrong and the passes bind garbage. Before the fix these pipelines were refused outright (`E_NOTIMPL`), and the title evidently has a fallback path — the world rendered without them. Running them *wrong* is worse than not running them. ## Current state - The launcher keeps `VICTORY_LOOSE_PIPELINES` **off** (commented, with the reason) — world renders again. - The parser fix itself stays: it is correct for the cookie and strictly better than refusing (the `0x1000` family and cookie-v3 blobs it revives are proven right by the working runs). - Next step to do this properly: capture the `0x403` descriptions with `VICTORY_DESERIALIZE_DUMP=<dir>` and decode the real record layout of the flag bit — then the 13 passes can run with correct bindings, which is where the real texture/lighting payoff likely is. Environment: Proton on Linux, RTX 5070 Ti, driver 620.73.0, title 930.048.020.
Author
Owner

@⁠Tip-Tutaki on GitHub · 2026-12-05 22:08 UTC · original

The "835 shaders do not translate" — what they are and why they appeared only now

With the parser fixed, the 0x403-family containers reach the translator for the first time. The title creates 1,006 compute pipelines this run vs 830 before (+176), and 835 distinct compute shaders now fail translation (each a distinct hash, logged once at pipeline creation). Before the fix these shaders were never seen — their containers died at metadata parse and were refused whole.

Full taxonomy of the 835 refusals (victory-shader resource tracking):

327  a descriptor changed after loading is not supported
189  an address not from a root parameter is not supported
110  a descriptor outside the heaps is not supported
 73  an image store of some channels is not supported
 34  a typed buffer store of some channels or at an offset is not supported
 21  a structured buffer of unknown stride is not supported
 16  a lane mask exchanged where not every lane runs is not supported
 12  a lane mask whose lanes depend on its own value is not supported
 10  the thread-group info SGPR is not supported
  8  a whole-wave section step the simulation does not follow is not supported
  7  a lane mask holding lanes elsewhere read as data is not supported
  6  v_mad_u32_u16 is not supported
  3  an LDS address is not supported
  3  a constant buffer's descriptor read as data is not supported
  2  a hardware SGPR input is not supported
  2  a descriptor's address or format read as data is not supported
  2  a descriptor joined in several blocks is not supported
  2  a constant operand of v_pk_fmac_f16 is not supported
  1  v_ldexp_f32 / s_sext_i32_i16 / s_absdiff_i32 / an opaque lane mask /
     a lane mask read as data / a first-lane read where not every lane runs /
     a descriptor read only as data / a descriptor neither loaded nor built

These are the title's GPU-driven rendering compute shaders (culling, binning, indirect-argument building). With them untranslated, the indirect draw pipeline collapses (groups asked per frame: 44,528 without the flag vs ~780 with it) and the world plane renders black under a working UI — the mechanism from the previous comment, now with the complete failure list.

Reading of the top items

  • "a descriptor changed after loading" (327) — resource.rs refuses when a descriptor register is re-written after an s_load_ (the loaded check at ~line 1247). The console compiler evidently reuses descriptor SGPRs across phases in these shaders. Supporting this properly needs either a descriptor PHI/join model or per-phase re-tracking.
  • "an address not from a root parameter" (189) — addresses computed rather than loaded straight from a root parameter (pointer arithmetic on descriptor bases).
  • "a descriptor outside the heaps" (110) — descriptor slots beyond the tracked heap windows.

All three are the same theme: the title's newer compute shaders use descriptor patterns the tracker's model doesn't cover. This is now the concrete work list for making the GPU-driven path (and the world) render with the loose pipelines on.

Interim state (unchanged)

VICTORY_LOOSE_PIPELINES stays off in the launcher — the title's fallback renders the world, and running the 13 passes with wrong bindings is worse than not running them. The 835 refusals are invisible with the flag off (their containers still parse now, but creation is refused before translation), so nothing regresses while these are worked through.

**@⁠Tip-Tutaki** on GitHub · 2026-12-05 22:08 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47#issuecomment-7446371772) ## The "835 shaders do not translate" — what they are and why they appeared only now With the parser fixed, the `0x403`-family containers reach the translator for the first time. The title creates **1,006 compute pipelines this run vs 830 before** (+176), and **835 distinct compute shaders now fail translation** (each a distinct hash, logged once at pipeline creation). Before the fix these shaders were never seen — their containers died at metadata parse and were refused whole. Full taxonomy of the 835 refusals (victory-shader resource tracking): ``` 327 a descriptor changed after loading is not supported 189 an address not from a root parameter is not supported 110 a descriptor outside the heaps is not supported 73 an image store of some channels is not supported 34 a typed buffer store of some channels or at an offset is not supported 21 a structured buffer of unknown stride is not supported 16 a lane mask exchanged where not every lane runs is not supported 12 a lane mask whose lanes depend on its own value is not supported 10 the thread-group info SGPR is not supported 8 a whole-wave section step the simulation does not follow is not supported 7 a lane mask holding lanes elsewhere read as data is not supported 6 v_mad_u32_u16 is not supported 3 an LDS address is not supported 3 a constant buffer's descriptor read as data is not supported 2 a hardware SGPR input is not supported 2 a descriptor's address or format read as data is not supported 2 a descriptor joined in several blocks is not supported 2 a constant operand of v_pk_fmac_f16 is not supported 1 v_ldexp_f32 / s_sext_i32_i16 / s_absdiff_i32 / an opaque lane mask / a lane mask read as data / a first-lane read where not every lane runs / a descriptor read only as data / a descriptor neither loaded nor built ``` These are the title's GPU-driven rendering compute shaders (culling, binning, indirect-argument building). With them untranslated, the indirect draw pipeline collapses (groups asked per frame: 44,528 without the flag vs ~780 with it) and the world plane renders black under a working UI — the mechanism from the previous comment, now with the complete failure list. ## Reading of the top items - **"a descriptor changed after loading" (327)** — `resource.rs` refuses when a descriptor register is re-written after an `s_load_` (the `loaded` check at ~line 1247). The console compiler evidently reuses descriptor SGPRs across phases in these shaders. Supporting this properly needs either a descriptor PHI/join model or per-phase re-tracking. - **"an address not from a root parameter" (189)** — addresses computed rather than loaded straight from a root parameter (pointer arithmetic on descriptor bases). - **"a descriptor outside the heaps" (110)** — descriptor slots beyond the tracked heap windows. All three are the same theme: the title's newer compute shaders use descriptor patterns the tracker's model doesn't cover. This is now the concrete work list for making the GPU-driven path (and the world) render with the loose pipelines on. ## Interim state (unchanged) `VICTORY_LOOSE_PIPELINES` stays off in the launcher — the title's fallback renders the world, and running the 13 passes with wrong bindings is worse than not running them. The 835 refusals are invisible with the flag off (their containers still parse now, but creation is refused before translation), so nothing regresses while these are worked through.
Author
Owner

@⁠Tip-Tutaki on GitHub · 2026-12-05 22:20 UTC · original

The "bad textures" mechanism identified: HERO LEAD — a placed view over a host-written texture of a different size/format

The remaining bad textures trace to a specific, now-understood case in texture.rs. The title places a new texture at an address where the host GPU had copied a different, smaller texture (a GPU-written one — e.g. a render target or a resolve). The new view's host copy would be filled from title memory, but the texels there are stale — the real contents live on the card in the other texture, where no shader reading this view finds them:

HERO LEAD: a placed texture view lies in the memory of a texture the host copied into:
it is filled from title memory, which the copy never reached
  view:   512x512, layers/levels 0x80001, format 71
  copied: 256x256, layers/levels 0x70001, format 99, 90,112 B

12 occurrences this run (formats 71/72/98/99 — block-compressed families; sizes 256x128 to 1024x1024).

The code already has the fix path — it just doesn't fire for this case

resource.rs:5230 seeds a placed view from the host-written texture when host_written_block_like() matches — but that requires exactly equal width/height, the same low 16 bits of layers/levels, and the same block size. The failing case is precisely the one it rejects: the view is bigger (512x512 over a 256x256 copy) with a different format (71 over 99). So the view falls through to placed_in_host_written(), which only warns.

The fix

When a placed view lies over a host-written texture but doesn't match block-like, the view's host copy must be seeded from the source texture anyway — through a buffer, rescaling/reformatting as seed_pending() already does for the matching case (COPY_DEST/COPY_SOURCE through a staging buffer, "a BC3 texture's blocks read as BC7"). The machinery exists (seed_later → seed_pending); the gate (host_written_block_like) is just too strict for the mismatched-size case. Options, in order of safety:

  1. Same-address, any-size seeding: relax the width/height equality to "the view fits within the copied texture's memory extent" and seed through the buffer path with the copy scaled per-level. The bytes are on the card; only the transfer shape differs.
  2. A neutral fill fallback: where the sizes are incompatible, fill the view's host copy with the neutral texture instead of stale title memory (the KEEP_SHOWN mechanism's neutral), so the artifact becomes a clean placeholder rather than garbage.

This is self-contained work in texture.rs/resource.rs with a clear reproduction (the 12 warnings carry full view/copy descriptions), and it's the last identified source of wrong textures outside the 835 untranslated compute shaders.

Run state (capture run, ~45 min)

  • World renders, FG working, HERO LEAD down to 12 (from 200), stalls 138, VRAM 12,860 MB near budget
  • 10,585 shaders captured including all 835 failing ones — the 0x400-layout decode and the translator work continue from these
  • Lighting improved per the player; remaining bad textures match the HERO LEAD signatures above
**@⁠Tip-Tutaki** on GitHub · 2026-12-05 22:20 UTC · [original](https://github.com/ToLIManl/VIctory-Hydra/issues/47#issuecomment-7446597436) ## The "bad textures" mechanism identified: HERO LEAD — a placed view over a host-written texture of a *different* size/format The remaining bad textures trace to a specific, now-understood case in `texture.rs`. The title places a new texture at an address where the **host GPU had copied a different, smaller texture** (a GPU-written one — e.g. a render target or a resolve). The new view's host copy would be filled from title memory, but the texels there are stale — the real contents live on the card in the *other* texture, where no shader reading this view finds them: ``` HERO LEAD: a placed texture view lies in the memory of a texture the host copied into: it is filled from title memory, which the copy never reached view: 512x512, layers/levels 0x80001, format 71 copied: 256x256, layers/levels 0x70001, format 99, 90,112 B ``` 12 occurrences this run (formats 71/72/98/99 — block-compressed families; sizes 256x128 to 1024x1024). ## The code already has the fix path — it just doesn't fire for this case `resource.rs:5230` seeds a placed view from the host-written texture when `host_written_block_like()` matches — but that requires **exactly equal width/height, the same low 16 bits of layers/levels, and the same block size**. The failing case is precisely the one it rejects: the view is *bigger* (512x512 over a 256x256 copy) with a *different* format (71 over 99). So the view falls through to `placed_in_host_written()`, which only *warns*. ## The fix When a placed view lies over a host-written texture but doesn't match block-like, the view's host copy must be **seeded from the source texture anyway** — through a buffer, rescaling/reformatting as `seed_pending()` already does for the matching case (`COPY_DEST`/`COPY_SOURCE` through a staging buffer, "a BC3 texture's blocks read as BC7"). The machinery exists (`seed_later` → `seed_pending`); the gate (`host_written_block_like`) is just too strict for the mismatched-size case. Options, in order of safety: 1. **Same-address, any-size seeding**: relax the width/height equality to "the view fits within the copied texture's memory extent" and seed through the buffer path with the copy scaled per-level. The bytes are on the card; only the transfer shape differs. 2. **A neutral fill fallback**: where the sizes are incompatible, fill the view's host copy with the neutral texture instead of stale title memory (the KEEP_SHOWN mechanism's neutral), so the artifact becomes a clean placeholder rather than garbage. This is self-contained work in `texture.rs`/`resource.rs` with a clear reproduction (the 12 warnings carry full view/copy descriptions), and it's the last identified source of wrong textures outside the 835 untranslated compute shaders. ## Run state (capture run, ~45 min) - World renders, FG working, HERO LEAD down to 12 (from 200), stalls 138, VRAM 12,860 MB near budget - 10,585 shaders captured including all 835 failing ones — the `0x400`-layout decode and the translator work continue from these - Lighting improved per the player; remaining bad textures match the HERO LEAD signatures above
This discussion has been locked. Commenting is limited to contributors.
No description provided.