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

Closed
opened 2026-11-26 20:19:11 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/790
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: asset374-corpus-counts


📝 Commits (1)

  • ca0c243 docs/design.md: whole-corpus disassembly and translation counts (ASSET-374)

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 docs/design.md (+8 -2)

📄 Description

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).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/790 **Author:** [@aslan2142](https://github.com/aslan2142) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `asset374-corpus-counts` --- ### 📝 Commits (1) - [`ca0c243`](https://github.com/ubiquitarianism/leonida/commit/ca0c243471a1b7880ef88df7fddfb6dd06504edd) docs/design.md: whole-corpus disassembly and translation counts (ASSET-374) ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+8 -2) </details> ### 📄 Description 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:11 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#828
No description provided.