Compute pipelines from loose parts fail: malformed shader: unknown loose metadata version (title 930.048.020) #47
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ToLIManl--VIctory-Hydra#47
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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=falseand the reasonmalformed 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):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 (signature0x22f93080, calls=64):[4005cf00, 6c090102, 0, 20020, 1, 402c034d, 3888c][a9f02247, 3, 0, 0, 0][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)
Environment
9dca5652)victory-image-b99f876b74d4a77f.dllRelated 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.prelude upload left out: the host wrote the texture after the list that samples it.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=262144rebalances 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 coderun-summary.txt,hero-lead-texture-warnings.log,misc-warnings.log(via gist)Gist: https://gist.github.com/Tip-Tutaki/19a72f004b3142f417b25c6b2b4d2349
@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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@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.logfrom 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 inloose-parts-pipelines.login the same gist.@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 == lenunchanged — 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 hadsize 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& !0x400mask. 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, the0x1000family, and0x403.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.rsgates creation behind an opt-in:Without
VICTORY_LOOSE_PIPELINES=1it returnsE_NOTIMPLon purpose. Setting it should light up 13 compute dispatches that have never run on this title. (Testing next session.)2. 16 graphics pipelines (
DeserializeGraphicsPipelineStateX) areprogram=Nonebecause 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-stagecode/meta) "so that the graphics layouts can be worked out from many of them". Plan: capture a session's worth, decode the graphics layout, implementloose_graphics, upstream.Also still open (separate from this issue)
VICTORY_GPU_DETILEshader build failure andno stand-in for the indirect light— bothCall failed. (0x80004005), both still present after the parser fix, so they were never downstream of it. Next to investigate.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_graphicsimplementation plan as its own issue with captured dumps attached.@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, the0x1000family, and0x403.But: with
VICTORY_LOOSE_PIPELINES=1, the world renders blackThe 13 compute pipelines the fix revives (the
0x403family — 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: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
0x403as "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 resourcesfor 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
VICTORY_LOOSE_PIPELINESoff (commented, with the reason) — world renders again.0x1000family and cookie-v3 blobs it revives are proven right by the working runs).0x403descriptions withVICTORY_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: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):
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
resource.rsrefuses when a descriptor register is re-written after ans_load_(theloadedcheck 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.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_PIPELINESstays 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: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: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:5230seeds a placed view from the host-written texture whenhost_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 toplaced_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_SOURCEthrough 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:This is self-contained work in
texture.rs/resource.rswith 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)
0x400-layout decode and the translator work continue from these