OLD-7783: restore old upstream PR 7783 - docs/design.md: whole-corpus disassembly and translation counts (ASSET-374) #790

Merged
aslan2142 merged 1 commit from upstream-pr/790 into main 2026-11-24 16:39:07 +00:00
aslan2142 commented 2026-11-24 13:51:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T13:51:10Z.


Claimed in the coordination issue as: OLD-7783 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133388922

Restoration of my original pull request, old upstream PR 7783 in ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at d0da7dade; the commit cherry-picks cleanly and is unchanged. Its counts match the README's current whole-corpus figures (26,503 / 26,503 translated and passing spirv-val, same per-stage split), so no count needed updating.

#649 and #653 also touch docs/design.md, but in other places; this merges cleanly with both.

What and why

  • The disassembly note in docs/design.md ("Use --mcpu gfx1013") still cited a sample of 300 random shaders. It now gives counts over the whole 26,503-blob 1.0.2.1 corpus (shader_disasm.py at d90444f2, llvm-mc 23.1.5, data blocks excluded).
  • gfx1013 decodes all 26,503 blobs with no invalid word.
  • gfx1010, gfx1011 and gfx1012 decode 26,439 cleanly. The other 64 blobs have 2,481, 2,438 and 2,438 invalid words.
  • gfx1030 decodes 17,875 cleanly. The other 8,628 blobs have 440,225 invalid words.
  • Translating those listings at the same commit (16 shards, then --merge, default options) gives 26,503 translated and 26,503 passing spirv-val: 2,236 VS, 12,101 PS, 195 GS, 2,689 CS and 9,282 mesh.
  • The resulting index matches the 4beffda8 run in every field except src_sha256. That field differs only for the 1,473 listings that the data-block cut shortened.
  • The 300-shader figures stay in the note as the earlier sample.

Tested

  • tests/test_docs_*.py: all 12 pass on the rebased branch.
  • git diff --check: clean.
  • python -I scripts/check_no_game_data.py docs/design.md: passes.
  • The counts come from the original whole-corpus run; this rebase changes no text. The note gives counts only: no shader names, disassembly or bytes.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: docs only, no new rule)

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473433693 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/790). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T13:51:10Z. --- Claimed in the coordination issue as: OLD-7783 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133388922 Restoration of my original pull request, old upstream PR 7783 in `ItsNotRexed/Leonida`, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at `d0da7dade`; the commit cherry-picks cleanly and is unchanged. Its counts match the README's current whole-corpus figures (26,503 / 26,503 translated and passing `spirv-val`, same per-stage split), so no count needed updating. #649 and #653 also touch `docs/design.md`, but in other places; this merges cleanly with both. ### What and why - The disassembly note in `docs/design.md` ("Use `--mcpu gfx1013`") still cited a sample of 300 random shaders. It now gives counts over the whole 26,503-blob 1.0.2.1 corpus (`shader_disasm.py` at `d90444f2`, llvm-mc 23.1.5, data blocks excluded). - gfx1013 decodes all 26,503 blobs with no invalid word. - gfx1010, gfx1011 and gfx1012 decode 26,439 cleanly. The other 64 blobs have 2,481, 2,438 and 2,438 invalid words. - gfx1030 decodes 17,875 cleanly. The other 8,628 blobs have 440,225 invalid words. - Translating those listings at the same commit (16 shards, then `--merge`, default options) gives 26,503 translated and 26,503 passing `spirv-val`: 2,236 VS, 12,101 PS, 195 GS, 2,689 CS and 9,282 mesh. - The resulting index matches the `4beffda8` run in every field except `src_sha256`. That field differs only for the 1,473 listings that the data-block cut shortened. - The 300-shader figures stay in the note as the earlier sample. ### Tested - `tests/test_docs_*.py`: all 12 pass on the rebased branch. - `git diff --check`: clean. - `python -I scripts/check_no_game_data.py docs/design.md`: passes. - The counts come from the original whole-corpus run; this rebase changes no text. The note gives counts only: no shader names, disassembly or bytes. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: docs only, no new rule) AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!790
No description provided.