Repository navigation
Description
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
- 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.) - 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. - 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
- Not the disasm-path layout bug: current main's PR make_game: keep disasm/ inside the carve folder so the translator finds each shader's stage #5 already fixed that; an earlier draft
describing it is superseded. - Not an MIT-license point: that's their decision (issue Would you consider MIT License? #4).
- Not any claim about GPU results: the GPU stage was never run here (no Windows host, and the
harness tools load vulkan-1.dll; that harness port is the known gap).
Activity
README: the full translation count is with LLVM 21; LLVM 23 rejects 1…
ItsNotRexed commentedon Nov 22, 2026
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_encodingsafely 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.gingertonik commentedon Nov 22, 2026
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.
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.
rafaelpssz commentedon Nov 22, 2026
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.spirv-val. The two that fail are spirv-val: #539's two shaders exceed the SPIR-V id bound again since 178a4b4 (#755) #881's (The id bound is larger than the max id bound 4194303), not LLVM 23: Share exact typed-buffer normalization across large shaders #900 addresses them.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.
YaBulochka commentedon Nov 22, 2026
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-mcassembles gfx1013), native spirv-tools, no WSL. Corpus built fromshaders.rpfof the 1.0.2.1 package; 6 shards viatools/rdna2spirv.py --shard i/6, then--merge.Commits:
426023a5(plain emulated corpus) anded290f9f(#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 RADVSIGFPE(#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).
aaronson2012 commentedon Nov 22, 2026
Native Linux full-corpus run of the
shadersstage on my own copy of the Xbox package (1.0.2.1, 108 files,make_game.py --checkclean), commitaa2988cc(currentmain):So on this commit not every shader passes
spirv-val, which is what throny's finding in #3918 reports afteraa2988cc; 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.
bielfreedom commentedon Nov 22, 2026
Full-corpus run of the
shadersstage on currentmainaa2988cc, 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.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).
gingertonik commentedon Nov 23, 2026
Full-corpus run of the
shadersstage on current mainaa2988cc, 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.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.
0xmp3 commentedon Nov 23, 2026
Why the two runs above disagree: it is
--wave64-emulate, not the toolchain.Full-corpus
shadersstage on my own 1.0.2.1 copy ataa2988cc(main has moved 6 commits since), Windows, AMD RDNA4. Counts only.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-emulateSo 51 of the 81 fail only on the non-emulated path, and the remaining 30 fail either way. Rebuilding
llvm-mcat 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 anOpTypeArraywhose length operand is a constant id the module never defines. In the modules I inspected, theOpConstantCompositeimmediately after that type has the real element count, so the length constant looks unemitted rather than misnamed.spirv-as --target-env vulkan1.2assembles those modules;spirv-val --target-env vulkan1.2 --allow-offset-texture-operandrejects them, so they are invalid rather than merely unvalidated.Reproduce in seconds: filter
fssm_index.jsonto the names with no.spv, runshader_disasm.py --unpack-indexon that list, thenrdna2spirv.pyon the folder, with and without--wave64-emulate.No game data, no shader text. AI-assisted.
bielfreedom commentedon Nov 23, 2026
The 81 (and the emulated 30) are fixed on current
main, by06b47de1. 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-valataa2988cc(77 CS, 4 PS) together with their DXBC/FSSM metadata, then translated just those with--no-asm:--wave64-emulateoffaa2988ccmain98fa503fThe
aa2988ccrow 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 child06b47de1"Fix what merging main into the round-43 branch broke" is 81/81.%fmt_size_tab's length (%c128) and entry constants were registered only at assembly. That put%c128after theOpTypeArraythat names it, which matches @0xmp3's diagnosis: an array length constant used before its definition.--wave64-emulateare presumably modules where the emulation path had already created%c128earlier. I haven't verified that per module.A note for anyone else bisecting this:
git bisect --first-parentlands on unrelated merges here (#367's pipeline-cache commits). The PR branches were cut before the regression, so they test "fixed". Checkingbe8570acvs06b47de1directly 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.
Mulkku commentedon Nov 23, 2026
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.seanblampey commentedon Nov 23, 2026
Full-corpus
shadersstage on my own 1.0.2.1 copy (--checkclean, 108 files), atd0835dd9(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-emulatesplit. Counts only.Same 81 as the two Windows AMD native-wave64 runs. AI-assisted.