Skip to content

Docs: the wave64 count is 23,841 (FSSM flag); untangle the Wave size row - #3066

Merged
ItsNotRexed merged 2 commits into
ItsNotRexed:mainfrom
465d6a0eac:docs-wave64-count
Nov 23, 2026
Merged

ItsNotRexed merged 2 commits into
ItsNotRexed:mainfrom
465d6a0eac:docs-wave64-count

Conversation

@465d6a0eac

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: new item, claim

What and why

Since the FSSM wave-size flag (#1900) landed, the docs give two wave64 counts:

  • docs/design.md's "Wave size" row kept both versions after a merge. It opened with the old instruction-marker figure in bold ("Most of the game's shaders are wave64: 21,545 of 26,503."), then gave the FSSM figure as "23,841 of 26,503**" with a stray closing **, and repeated the old marker breakdown twice, before and after the new counts.
  • README.md's status table still said "⚠️ 21,545 are wave64".

The row now states the FSSM u32[0xD4] bit 5 counts once and keeps the code markers as the superseded estimate. Their numbers are now measured, not left over from the merge. The README says 23,841 and points to the row. The rest of the row (what wave64 means on 32-wide subgroups) is unchanged.

#2925 edits the neighbouring "Wave64 handling" row (docs/design.md:299) only, so the two don't overlap.

Tested

Counts from full-corpus translations of my own 1.0.2.1 copy (counts only; WSL Ubuntu, Python 3.14.4, llvm-mc 21.1.8, SPIRV-Tools v2026.1, rdna2spirv.py --shard i/N --no-asm + --merge), read from the translated index.json (wave64, subgroup_size, stage):

  • main ec8ec4c: 26,503 translated and spirv-val valid. 23,841 wave64: PS 10,974, mesh 9,282, VS 2,236, CS 1,154, GS 195. 2,662 wave32: CS 1,535, PS 1,127. subgroup_size == 64 exactly where wave64 is set. These are the row's FSSM numbers.
  • main 6a6704d (code markers, before rdna2spirv, fssm_header: read authoritative wave size from FSSM 0xD4 bit 5 #1900): 21,538 of the 26,487 shaders translated then are wave64. The 16 it didn't translate were SHADER-348's gathers, all wave64 by the flag. Shader by shader against ec8ec4c, the markers call 2,287 wave64 shaders wave32 (943 PS, 1,057 VS, 287 CS) and none the other way. That is the row's 2,287. The 21,545 the docs quoted came from an earlier marker version; the row now says so.
  • python -I tests/test_docs_design_rows.py, test_docs_links.py, test_docs_list_items.py, test_docs_repo_paths.py, test_i18n_index.py, test_hashdict.py: OK. Docs only, no GPU needed.

Checklist

  • 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. (No new rule: a count and wording fix.)

AI-assisted (Claude Code).

🤖 Generated with Claude Code

docs/design.md's "Wave size" row kept both versions after the FSSM wave-size
flag (ItsNotRexed#1900) landed: it opened with the old marker figure in bold (21,545),
gave the FSSM figure with a stray closing "**", and repeated the old marker
breakdown twice. README.md's status table still said 21,545.

The row now states the FSSM u32[0xD4] bit 5 counts once and keeps the code
markers as the superseded estimate. The README says 23,841.

Checked on a full-corpus translation (own 1.0.2.1 copy, counts only): at
ec8ec4c the index marks exactly 23,841 wave64 (PS 10,974, mesh 9,282,
VS 2,236, CS 1,154, GS 195) and 2,662 wave32 (CS 1,535, PS 1,127). At
6a6704d the code markers made 21,538 of 26,487 translated shaders wave64,
and they call exactly the row's 2,287 (943 PS, 1,057 VS, 287 CS) wave32.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tupacfan04

Copy link
Copy Markdown
Contributor

Tested at the head on Windows 11 / Python 3.13.0: docs suites all pass (design_rows 2, links 5, list_items 2, repo_paths 2, i18n_index 5, hashdict 32 with 1 skip, line endings 2, resource hygiene 2), git diff --check clean, files LF-only, merge clean against main and the other open docs PRs.

The main numbers are right: 23,841 / 26,503 matches docs/design.md:299 and the stage split at :461-462, and the README totals agree. The duplicated sentence groups and stray ** are gone, and there is one bold pair per row.

Two wording nits:

  1. docs/design.md:256 says "21,538 of the 26,487 shaders translated then", but this file's own record at :209 says all 26,503 translate, and the 16 are SHADER-348's gathers (:271). The arithmetic reconciles (21,538 + 16 + 2,287 = 23,841), so just name the 16 or drop the denominator.
  2. The kept older-scan clause (9,930 PS, 8,666 MS, 1,115 VS, 923 CS) sums to 20,634, not the 21,545 it follows; 21,545 has no recorded source in the repo (it arrived with that same 20,634 breakdown). Consider dropping that clause.

Approve with those two. AI-assisted review, docs only.

@kapitche

Copy link
Copy Markdown
Contributor

Read 2546446 against main f847748: 1 issue

  1. docs/design.md:261 (Wave size row): the older-scan figures that stay (9,930 PS, 8,666 mesh, 1,115 VS, 923 CS) add up to 20,634, not to the 21,545 / 21,538 the sentence next to it attributes to the markers. They are also not the per-class counts the new text implies (flag counts minus the 2,287 wave32-by-marker: 10,031 PS, 9,282 mesh, 1,179 VS, 867 CS). Drop the breakdown or say which snapshot it is from.

Checked and fine: README and design.md now both say 23,841; the flag description matches tools/fssm_header.py:83-84,155-164 (u32[0xD4] bit 5, 0x20 = wave32); 10,974 + 9,282 + 2,236 + 1,154 + 195 = 23,841 and 1,535 + 1,127 = 2,662 with 23,841 + 2,662 = 26,503; 943 + 1,057 + 287 = 2,287; ec8ec4c9 and 6a6704df exist; the four tests/test_docs_*.py pass on a clean test merge. Corpus counts were not recomputed.

… breakdown

The breakdown kept from the first marker scan (9,930 PS, 8,666 mesh,
1,115 VS, 923 CS) adds up to 20,634, not to the 21,545 or 21,538 the
row attributes to the markers (review by @kapitche). The row now gives
the per-stage split of the 21,538 measured at 6a6704d (10,031 PS,
9,282 mesh, 1,179 VS, 851 CS, 195 GS; the 16 refused then are wave64
CS by the flag) and says where the older figures came from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@465d6a0eac

Copy link
Copy Markdown
Contributor Author

@kapitche thanks, you're right: 9,930 + 8,666 + 1,115 + 923 = 20,634, so that breakdown never matched the 21,545 / 21,538 totals. Fixed in b8fb76c:

  • The row now gives the per-stage split of the 21,538 measured at 6a6704df, from my own translated index there (wave64 field, counts only): 10,031 PS, 9,282 mesh, 1,179 VS, 851 CS, 195 GS. Your derived CS figure of 867 includes the 16 shaders 6a6704df refused (the image_gather4_l border ones); by the flag at ec8ec4c9 all 16 are wave64 CS, so 851 + 16 + 287 = 1,154.
  • The old figures stay as what they were: the first marker scan, written into the row at 0082ad53, with their sum (20,634, no GS) so nobody reads them as a split of 21,545.

tests/test_docs_design_rows.py and tests/test_docs_links.py pass at the new head; git diff --check clean. Docs only. AI-assisted (Claude Code).

@Marukooh

Copy link
Copy Markdown
Contributor

Independently checked the FSSM side of b8fb76c against my local 1.0.2.1 package. On CachyOS Linux 7.3.5 with the parser at aa2988c, read the wave-size flag of every one of the 26,503 carved FSSMs. Exact match: 23,841 wave64 (10,974 PS, 9,282 MS, 2,236 VS, 1,154 CS, 195 GS) and 2,662 wave32 (1,535 CS, 1,127 PS). No missing headers. This used the current header reader; I did not re-evaluate the older marker-based baseline. CPU-only, counts only.

@ItsNotRexed
ItsNotRexed merged commit a1cf3ac into ItsNotRexed:main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants