Skip to content

Full-corpus counts from a second verified copy on native Linux: 25,032 of 26,503 shaders translate clean; the README line reads as all 26,503 #644

Open

Description

@gingertonik

Submission draft (supersedes worker drafts) — counts from a second verified copy, native Linux

Proposed venue: their bug-report issue form (PR #12 adds it). Counts and environment only;
no game data, no keys, no acquisition links, per CONTRIBUTING.

Proposed title

Full-corpus counts from a second verified copy on native Linux: 25,032 of 26,503 shaders
translate clean; the README line reads as all 26,503

Environment (say what you tested, per CONTRIBUTING)

  • Native Arch-family Linux (Arch-derived distro), not Windows, not WSL. No GPU stage run; CPU-only.
  • Python 3.14.9 (runs with -I, stdlib only), distro LLVM 23.1.5 (llvm-mc assembles gfx1013; the
    WSL route in the docs was not needed), native spirv-tools (spirv-as / spirv-val), native .NET,
    submodule fetched via git on Linux.

What was run

  1. The copy verified against game/xbox-1.0.2.1.json: 108/108 files SHA-256 match on a full read;
    the executable slot is the manifest's only unfilled entry. (The repo's own check stage confirms
    the same: "all files present" plus the exe note.)
  2. Current main (793b06f, post PR make_game: keep disasm/ inside the carve folder so the translator finds each shader's stage #5 and PR make_game: translate shaders on --jobs processes with rdna2spirv's --shard/--merge #6): shaders stage, carve -> unpack -> disassemble ->
    translate -> merge, run as two shards as the tool intends.
  3. A second full run on the commit immediately before PR make_game: keep disasm/ inside the carve folder so the translator finds each shader's stage #5 produced identical translator numbers.

Counts (tool-reported, this copy)

Stage Result
Carve (shaders.rpf) 26,503 index rows; 25,734 distinct files; 1,377 names occur more than once; 17,734 files carry the collision suffix; 767 rows share a file (exact-duplicate names overwrite)
Unpack 25,734 outputs; 2 exceptions counted by the tool
Disassemble (gfx1013) 26,503 shaders -> clean 25,030; invalid words 1,473
Models (archives with entries) 155,598 exported, 0 fail, 0 skip; no layout rejections on this copy (README: "not all layouts are decoded yet")
Textures (in-archive entries) 6,738 exported, 0 fail, 0 skip

All counts are tool-reported from this machine; intermediate files are prunable and every stage reruns from
the copy, so any row here can be re-derived on request.
| Translate (2 shards, current main) | shard 0: 13,251 -> 12,527 translated, 12,527 pass spirv-val, 724 "reachable instruction with normalized encoding"; shard 1: 13,252 -> 12,505 / 12,505, 747 same category; merged index 25,032 entries |
| Second run (pre-PR-5 commit, 2 shards total) | 26,503 -> 25,032 translated, 25,032 pass spirv-val, 1,471 same category |

The one-line gap

The README claims all 26,503 carve/unpack/disassemble and all 26,503 translate and pass spirv-val
with the per-stage split 2,236 VS / 12,101 PS / 2,689 CS / 9,282 mesh / 195 geometry. On this copy
the translator leaves 1,471 shaders in the "reachable instruction with normalized encoding" bucket
(the tool's own LLVM-skip re-anchor path) and disassembly flags 1,473 as invalid words. Since this
copy is hash-identical to the manifest, the difference is presumably between this run and the
maintainer's, and the obvious suspects are the name layer (1,377 duplicated names, 767 shared
files, truncation at the fssm layer) and the case-insensitive filesystem the documented layout
runs on. Offered as observation, not diagnosis.

Also true from this machine (optional second comment, or fold into #7 if reopened)

Native distro LLVM 23.1.5 on Arch-family Linux assembles gfx1013 fine and the native carve/unpack/
disassembly pipeline completes on it end to end; the docs' WSL note is Windows-side only.

What this is NOT

Activity

  1. ItsNotRexed commented on Nov 22, 2026

    @ItsNotRexed
    Owner

    Thanks. These rejections are expected for now. LLVM 23's disassembler normalizes more encodings than LLVM 21 does, for example by dropping default modifiers or choosing a shorter form. The translator re-assembles every instruction and rejects any reachable one whose bytes don't round-trip, so it doesn't silently lose a bit.

    To widen same_encoding safely I need examples. Could you post, for a few of the 1,471 shaders, the first normalized instruction, i.e. the original dword(s) next to what LLVM 23 prints? The full list of rejected shader names would also help. Until then the README says the full-corpus result applies to LLVM 21.

  2. gingertonik commented on Nov 22, 2026

    @gingertonik
    Author

    Update: full rerun on current main (c432cdc), per the coordinator's request on #634

    Same copy, full SHA-256 re-verified before the run via the tool's own check stage: 108/108 match, the exe slot is still the manifest's only unfilled entry.

    Environment, per CONTRIBUTING: native Arch-family Linux (CachyOS), not Windows, not WSL; distro LLVM 23.1.5 (llvm-mc, gfx1013); Python 3.14.9 with -I; native spirv-tools; NVIDIA RTX 4080, driver 620.73.04. The tool probed this GPU, saw the smallest maximum subgroup size is 32, and ran translate with wave64 emulation on. No GPU stage was run; everything below is the CPU pipeline.

    Stage Result
    Check (full) 108/108 SHA-256 match
    Carve (shaders.rpf) 26,503 shaders carved, 1 candidate rejected
    Unpack 26,503 FSSM blobs, problems: none
    Disassemble (gfx1013) 26,503 shaders -> clean 25,030; invalid words 1,473, identical to the rows above
    Translate (--wave64-emulate, 10 shards, 2,650-2,651 per shard) every shard 100%: 26,503 translated, 26,503 pass spirv-val; merged index 26,503 entries

    The README's line reads as true on this machine on current main: the 1,471 gap reported above is exactly the LLVM 23 source-field fix (#223) the coordinator pointed at. Link to the ask: #634 (comment)

    AI-assisted (Hermes); every number above is direct tool output from this run.

  3. rafaelpssz commented on Nov 22, 2026

    @rafaelpssz
    Contributor

    A Windows data point on a later main (43d0015, the same commit for every step): my own 1.0.2.1 copy, LLVM 23.1.3 llvm-mc (gfx1013), SPIRV-Tools v2026.4, Windows 11, --wave64-emulate (RTX 3060, 32-wide), 8 shards + --merge.

    So with LLVM 23 the README line can read like LLVM 21's once #900 lands; until then both toolchains give 26,501 on current main.

  4. YaBulochka commented on Nov 22, 2026

    @YaBulochka
    Contributor

    Independent count on native Linux, for comparison with the 25,032/26,503 in the draft: on the same 26,503-entry corpus we get 26,503 translated, 26,503 pass spirv-val, 0 failures, so the gap is not inherent to Linux.

    Environment: CachyOS (Arch-family), kernel 7.3.3, Python 3.14, distro LLVM 23.1.5 (llvm-mc assembles gfx1013), native spirv-tools, no WSL. Corpus built from shaders.rpf of the 1.0.2.1 package; 6 shards via tools/rdna2spirv.py --shard i/6, then --merge.

    Commits: 426023a5 (plain emulated corpus) and ed290f9f (#1882's translator) both give 26,503/26,503; the second run also reports 0 refusals from the new shared-memory cap. A full pipeline pass over the first corpus created 25,703 pipelines before two shaders hit the RADV SIGFPE (#1721), and with the fix the whole set builds (the two specific shaders were rechecked individually).

    So if the second copy only translated 25,032, the 1,471 difference is likely in the copy/index or the translator revision used, not in the Linux environment. Happy to compare per-shader lists if you can share the failing names (counts only, no data).

  5. aaronson2012 commented on Nov 22, 2026

    @aaronson2012

    Native Linux full-corpus run of the shaders stage on my own copy of the Xbox package (1.0.2.1, 108 files, make_game.py --check clean), commit aa2988cc (current main):

    OS:      Fedora 45 (container), kernel 7.2.15, 16 cores, --jobs 12
    Tools:   llvm-mc 23.1.5 (gfx1013 disassembly), SPIRV-Tools v2026.2, Python 3.15.2
    carve:   26,503 shaders carved, 1 candidate rejected; 26,503 FSSM blobs, no problems
    translate: 26,503 / 26,503 translated
    spirv-val: 26,473 / 26,503 pass, 30 invalid (all one error class)
               "Operand '%N' requires a previous definition" (an id used before its definition)
    FSPX (upscaler): 29 programs, 26 translated, 26 pass spirv-val
    time:    18 min for the whole stage
    

    So on this commit not every shader passes spirv-val, which is what throny's finding in #3918 reports after aa2988cc; the README's "all 26,503 passed" line holds for the earlier commits it links, not this one. The 30 failures are spread across the shards (0 to 5 per 2,208-shader shard). #3921 (closed) and #3902 (open) address it. I did not touch the translator for this.

    Only counts and error classes here, no shader content. AI-assisted (Claude Code): it ran the stage and wrote this comment.

  6. bielfreedom commented on Nov 22, 2026

    @bielfreedom

    Full-corpus run of the shaders stage on current main aa2988cc, on Windows with an AMD GPU (wave64 emulation off). That's a different translator path from the Linux runs above. My own 1.0.2.1 copy; counts only.

    OS:      Windows 11 Pro build 26200, Python 3.12.10, --jobs 8 (8 shards + --merge)
    GPU:     AMD Radeon RX 9070 XT (RDNA4), subgroup 32..64
             -> make_game: "smallest maximum subgroup size is 64: wave64 emulation off"
    Tools:   llvm-mc 23.1.6 (conda-forge, gfx1013), SPIRV-Tools 2026.4 (Vulkan SDK 1.4.363)
    carve:   26,503 shaders carved, 1 candidate rejected; 26,503 FSSM blobs, no problems
    disasm:  clean 25,030, invalid words 1,473 (the known LLVM 23 count)
    translate: 26,503 / 26,503 translated
    spirv-val: 26,422 / 26,503 pass, 81 invalid
               every error line printed (74 of the 81) is the same class:
               "Operand '%N' requires a previous definition"
    FSPX (upscaler): 29 programs, 26 translated, 26 pass
    wave64 VS/PS/GS tiers (summed over shards): A 4,033, B 85, C 9,287
    time:    49 min
    

    So on the same commit as @aaronson2012's 30, this run gives 81, same error class. I haven't confirmed which wave64 setting that run used. If it had emulation on, the use-before-definition regression is larger on the native-wave64 path that AMD RDNA GPUs get, and a bisect should also run with emulation off. That's a hypothesis from the two counts, not tested.

    AI-assisted (Claude Code).

  7. gingertonik commented on Nov 23, 2026

    @gingertonik
    Author

    Full-corpus run of the shaders stage on current main aa2988cc, on native Linux (CachyOS) with wave64 emulation on (NVIDIA, 32-wide). This is the second copy from the draft above; fresh full SHA-256 re-verify before the run: 108/108 match, the exe slot still the manifest's only unfilled entry. Counts only.

    Tools:   LLVM 23.1.5 (distro llvm-mc, gfx1013), SPIRV-Tools v2026.4, Python 3.14.9 (-I), native spirv-tools
    GPU:     NVIDIA RTX 4080, driver 620.73.04; --wave64-emulate on
             (the tool could not read the subgroup size from vulkaninfo on this box, so it defaults on)
    carve:   26,503 shaders carved, 1 candidate rejected; 26,503 FSSM blobs, 0 problems
    disasm:  clean 25,030, invalid words 1,473 (the known LLVM 23 count; third toolchain, same split)
    translate: 26,503 / 26,503 translated (10 shards, --jobs 10)
    spirv-val: 26,473 / 26,503 pass, 30 invalid
               every failure is the same class as aaronson2012 reports on this commit:
               "Operand '%N' requires a previous definition"
               per-shard (completion order): 2,5,5,4,3,2,1,1,4,3; the 1,473 invalid-words shaders all translated
    wave64 tiers on 32-wide subgroups (summed over shards): A 4,033, B 85, C 9,287
    FSPX (upscaler): 29 programs, 26 translated, 26 pass; 2 normalized-encoding lines
    time:    49 min for the stage (10 jobs; disasm ~8 min, translate ~40 min)
    

    So the 30 reproduces on a second independent 108/108-verified copy, same commit, same count, same single class, and the wave64 tier totals match bielfreedom's run exactly. That is two copies agreeing on the emulated path and a third (AMD native, emulation off) at 81, which keeps the hypothesis from the two counts standing: the class is bigger on the native-wave64 path, and the bisect should run it emulation-off.

    No GPU stage was run here beyond what the tool itself does; nothing on this box can test the native-wave64 path (32-wide).

    AI-assisted (Hermes); every number above is direct tool output from this run.

  8. 0xmp3 commented on Nov 23, 2026

    @0xmp3

    Why the two runs above disagree: it is --wave64-emulate, not the toolchain.

    Full-corpus shaders stage on my own 1.0.2.1 copy at aa2988cc (main has moved 6 commits since), Windows, AMD RDNA4. Counts only.

    OS:      Windows 11 Pro 26300, Ryzen 5 5600 (6 cores), --jobs 5 (5 shards + --merge)
    GPU:     AMD Radeon RX 9070 XT (RDNA4, gfx1201), subgroup 32..64, AMD 26.10.1 (LLPC)
             -> make_game: "smallest maximum subgroup size is 64: wave64 emulation off"
    Tools:   llvm-mc 21.1.8 / 23.1.3 / 23.1.5 (built from source with the AMDGPU target),
             SPIRV-Tools v2026.4 (Vulkan SDK 1.4.363.1), Python 3.12.13, MSVC 14.51
    carve:   26,503 shaders carved, 1 candidate rejected; 26,503 FSSM blobs, problems {}
    disasm:  clean 25,030, invalid words 1,473
    translate: 26,503 / 26,503
    spirv-val: 26,422 / 26,503 pass, 81 invalid (77 compute, 4 pixel)
    FSPX:    29 programs, 22 translated, 22 pass spirv-val
    time:    78 min for check + shaders + runtime, 5 shards
    

    The 81 and the 30 reported above are the same corpus at the same commit, separated by one flag. Re-running the 81 in isolation:

    --wave64-emulate modules produced from the 81
    off (native 64-wide, this GPU) 0 / 81
    on 51 / 81 (30 still fail)

    So 51 of the 81 fail only on the non-emulated path, and the remaining 30 fail either way. Rebuilding llvm-mc at 21.1.8, 23.1.3 and 23.1.5 recovers 0 of 81 at each version, so the disassembler version is not the variable here.

    Error class, all 81: Operand 'N[%id]' requires a previous definition, at an OpTypeArray whose length operand is a constant id the module never defines. In the modules I inspected, the OpConstantComposite immediately after that type has the real element count, so the length constant looks unemitted rather than misnamed. spirv-as --target-env vulkan1.2 assembles those modules; spirv-val --target-env vulkan1.2 --allow-offset-texture-operand rejects them, so they are invalid rather than merely unvalidated.

    Reproduce in seconds: filter fssm_index.json to the names with no .spv, run shader_disasm.py --unpack-index on that list, then rdna2spirv.py on the folder, with and without --wave64-emulate.

    No game data, no shader text. AI-assisted.

  9. bielfreedom commented on Nov 23, 2026

    @bielfreedom

    The 81 (and the emulated 30) are fixed on current main, by 06b47de1. Same 1.0.2.1 copy as my run above; Windows 11, RX 9070 XT; llvm-mc 23.1.6, SPIRV-Tools 2026.4. Counts only.

    I isolated the 81 shaders that fail spirv-val at aa2988cc (77 CS, 4 PS) together with their DXBC/FSSM metadata, then translated just those with --no-asm:

    translator --wave64-emulate off on
    aa2988cc 0 / 81 pass 51 / 81 pass
    main 98fa503f 81 / 81 81 / 81

    The aa2988cc row reproduces @0xmp3's 0/81 and 51/81 exactly. That pins the 30-vs-81 split to the flag, on a second RDNA4 machine.

    Fixing commit: testing the candidates directly, be8570ac (main merged into triage-r43) is 0/81, and its child 06b47de1 "Fix what merging main into the round-43 branch broke" is 81/81.

    • The fix: %fmt_size_tab's length (%c128) and entry constants were registered only at assembly. That put %c128 after the OpTypeArray that names it, which matches @0xmp3's diagnosis: an array length constant used before its definition.
    • The emulation dependence: the commit now registers them when the first typed load uses the table. The 51 that passed with --wave64-emulate are presumably modules where the emulation path had already created %c128 earlier. I haven't verified that per module.

    A note for anyone else bisecting this: git bisect --first-parent lands on unrelated merges here (#367's pipeline-cache commits). The PR branches were cut before the regression, so they test "fixed". Checking be8570ac vs 06b47de1 directly is what isolates it.

    Not done: a fresh full-corpus run on 98fa503f. The other 26,422 shaders were not re-translated here, so the full count on current main is still open.

    AI-assisted (Claude Code). No game data, no shader names or text.

  10. Mulkku commented on Nov 23, 2026

    @Mulkku
    Contributor

    Superseded: the README now reports 26,503/26,503 translated and validated, measured after the commit this was run on (793b06f). Full-corpus reruns can go in #166.

    Checked against main ec34b54 (AI-assisted triage). Can be closed.

  11. seanblampey commented on Nov 23, 2026

    @seanblampey

    Full-corpus shaders stage on my own 1.0.2.1 copy (--check clean, 108 files), at d0835dd9 (main), on native Linux with wave64 emulation off (RADV). The two previous 81-count runs were Windows on AMD's LLPC driver; this adds the Linux side of the --wave64-emulate split. Counts only.

    OS:      CachyOS (Arch-derived), Ryzen 7 7700X, --jobs 8 (8 shards + --merge)
    GPU:     AMD Radeon RX 9070 XT (RADV GFX1201, Mesa 26.3.1-arch3.4), subgroup 32..64
             -> make_game: "smallest maximum subgroup size is 64: wave64 emulation off"
    Tools:   llvm-mc 23.1.5 (distro, gfx1013), SPIRV-Tools v2026.4 (rc2), Python 3.14.10 (-I)
    carve:   26,503 shaders carved, 1 candidate rejected
    disasm:  clean 25,030, invalid words 1,473 (same LLVM 23 split)
    translate: 26,503 / 26,503 translated
    spirv-val: 26,422 / 26,503 pass, 81 invalid, all one class:
               "Operand '%N' requires a previous definition" (per shard: 11, 8, 20, 7, 14, 5, 8, 8)
    FSPX:    29 programs, 26 translated, 26 pass spirv-val
    time:    22 min for check + shaders
    

    Same 81 as the two Windows AMD native-wave64 runs. AI-assisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions