docs/design: cite the tests of the Wave size and Typed buffer loads rows (DOC-DESIGN-ROW-CITES) #925

Open
github-bot wants to merge 1 commit from github-bot/gh-925 into main AGit
Owner

@⁠TuroYT on GitHub · 2026-11-24 15:13 UTC · original
TuroYT:docs/design-row-cites → main · +2 −2 · 1 files · 1 commits · open

Claimed in the coordination issue as: DOC-DESIGN-ROW-CITES (#14)

What was wrong

  • docs/design.md:338, the Wave size row, explains fssm_header.wave_size() (FSSM flags word u32[0xD4] bit 5) and cites no test. tests/test_fssm_wave_size.py checks that bit rule on synthetic blobs (7 tests).
  • docs/design.md:298, the Typed buffer loads row, names the file as tools\gfx10_formats.json with a backslash. The file is tools/gfx10_formats.json.

Reproduction on a28927849:

$ sed -n 338p docs/design.md | grep -c test_fssm_wave_size
0
$ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json'
tools\gfx10_formats.json
$ ls tools/gfx10_formats.json
tools/gfx10_formats.json

What changed

Two rows, no other text:

  • Wave size: one sentence naming tests/test_fssm_wave_size.py as the check of the bit rule on synthetic blobs. It says the test does not check the corpus counts in the row.
  • Typed buffer loads: the path is now tools/gfx10_formats.json. The row also names tests/test_gfx10_descriptors.py, which checks the format rows of runtime/src/gfx10_descriptors.h against that file.

Other open pull requests touch other rows of docs/design.md. None changes these two rows.

Tested

$ sed -n 338p docs/design.md | grep -c test_fssm_wave_size
1
$ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json'
tools/gfx10_formats.json
$ sed -n 298p docs/design.md | grep -c 'tools\\gfx10'
0
$ python3 -I tests/test_fssm_wave_size.py 2>&1 | tail -3
Ran 7 tests in 0.156s
OK
$ python3 -I tests/test_gfx10_descriptors.py 2>&1 | tail -3
Ran 5 tests in 0.039s
OK
$ python3 -I tests/test_text_write_line_endings.py 2>&1 | tail -3
Ran 3 tests in 5.261s
OK
$ python3 -I scripts/check_no_game_data.py docs/design.md
(exit 0)
$ git diff --check
(exit 0)
$ git diff --stat
 docs/design.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
$ python3 -I tests/test_docs_design_rows.py    -> Ran 5 tests OK
$ python3 -I tests/test_design_contract_rows.py -> Ran 5 tests OK
$ python3 -I tests/test_docs_encoding.py       -> Ran 1 test OK
$ python3 -I tests/test_docs_table_rows.py     -> Ran 2 tests OK

Also run, all OK: test_d16_format_probe.py (1 skipped), test_desc_cache.py, test_f16misc_diff.py, test_fma_mix_probe.py, test_hashdict.py, test_sad_diff.py, test_shader_meta.py.

Not tested

  • The pytest-based files that read docs/design.md (test_shader_index.py, test_values.py, test_valu_fuzz.py, and others) were not run.
  • The rendered Markdown table was not viewed in a browser.
  • No GPU, no game files. Docs only.

AI-assisted (Claude Code).

**@⁠TuroYT** on GitHub · 2026-11-24 15:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/925) `TuroYT:docs/design-row-cites` → `main` · +2 −2 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-DESIGN-ROW-CITES (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ## What was wrong - `docs/design.md:338`, the Wave size row, explains `fssm_header.wave_size()` (FSSM flags word `u32[0xD4]` bit 5) and cites no test. `tests/test_fssm_wave_size.py` checks that bit rule on synthetic blobs (7 tests). - `docs/design.md:298`, the Typed buffer loads row, names the file as `tools\gfx10_formats.json` with a backslash. The file is `tools/gfx10_formats.json`. Reproduction on `a28927849`: ``` $ sed -n 338p docs/design.md | grep -c test_fssm_wave_size 0 $ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json' tools\gfx10_formats.json $ ls tools/gfx10_formats.json tools/gfx10_formats.json ``` ## What changed Two rows, no other text: - Wave size: one sentence naming `tests/test_fssm_wave_size.py` as the check of the bit rule on synthetic blobs. It says the test does not check the corpus counts in the row. - Typed buffer loads: the path is now `tools/gfx10_formats.json`. The row also names `tests/test_gfx10_descriptors.py`, which checks the format rows of `runtime/src/gfx10_descriptors.h` against that file. Other open pull requests touch other rows of `docs/design.md`. None changes these two rows. ## Tested ``` $ sed -n 338p docs/design.md | grep -c test_fssm_wave_size 1 $ sed -n 298p docs/design.md | grep -o 'tools.gfx10_formats.json' tools/gfx10_formats.json $ sed -n 298p docs/design.md | grep -c 'tools\\gfx10' 0 $ python3 -I tests/test_fssm_wave_size.py 2>&1 | tail -3 Ran 7 tests in 0.156s OK $ python3 -I tests/test_gfx10_descriptors.py 2>&1 | tail -3 Ran 5 tests in 0.039s OK $ python3 -I tests/test_text_write_line_endings.py 2>&1 | tail -3 Ran 3 tests in 5.261s OK $ python3 -I scripts/check_no_game_data.py docs/design.md (exit 0) $ git diff --check (exit 0) $ git diff --stat docs/design.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) $ python3 -I tests/test_docs_design_rows.py -> Ran 5 tests OK $ python3 -I tests/test_design_contract_rows.py -> Ran 5 tests OK $ python3 -I tests/test_docs_encoding.py -> Ran 1 test OK $ python3 -I tests/test_docs_table_rows.py -> Ran 2 tests OK ``` Also run, all OK: `test_d16_format_probe.py` (1 skipped), `test_desc_cache.py`, `test_f16misc_diff.py`, `test_fma_mix_probe.py`, `test_hashdict.py`, `test_sad_diff.py`, `test_shader_meta.py`. ## Not tested - The pytest-based files that read `docs/design.md` (`test_shader_index.py`, `test_values.py`, `test_valu_fuzz.py`, and others) were not run. - The rendered Markdown table was not viewed in a browser. - No GPU, no game files. Docs only. AI-assisted (Claude Code).
The Wave size row explains fssm_header.wave_size() but cites no test.
Add tests/test_fssm_wave_size.py, which checks the bit rule on synthetic blobs.

The Typed buffer loads row spelled tools\gfx10_formats.json with a backslash.
Use tools/gfx10_formats.json and cite tests/test_gfx10_descriptors.py.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:28:34 +00:00
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-24 17:39 UTC · original · approved these changes

LGTM. Checked on Windows 11, Python 3.14, main cf4c00cba:

  • tools/gfx10_formats.json exists with a forward slash; the backslash in the Typed buffer loads row was a typo.
  • tests/test_gfx10_descriptors.py loads that file (line 18) and checks the format rows of runtime/src/gfx10_descriptors.h against it: 5 tests OK.
  • tests/test_fssm_wave_size.py: 7 tests OK. It builds synthetic FSSM blobs with u32[0xD4] bit 5 (make_fssm, line 53), matching fssm_header.wave_size() (tools/fssm_header.py:155).
  • The new sentence says it does not check the corpus counts in the row, which is accurate: the test uses synthetic blobs only.

AI-assisted: yes (Claude Code ran the checks; I read them).

**@⁠MoonEyes** on GitHub · 2026-11-24 17:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/925#pullrequestreview-6044344701) · **approved these changes** LGTM. Checked on Windows 11, Python 3.14, main cf4c00cba: - `tools/gfx10_formats.json` exists with a forward slash; the backslash in the Typed buffer loads row was a typo. - `tests/test_gfx10_descriptors.py` loads that file (line 18) and checks the format rows of `runtime/src/gfx10_descriptors.h` against it: 5 tests OK. - `tests/test_fssm_wave_size.py`: 7 tests OK. It builds synthetic FSSM blobs with `u32[0xD4]` bit 5 (`make_fssm`, line 53), matching `fssm_header.wave_size()` (`tools/fssm_header.py:155`). - The new sentence says it does not check the corpus counts in the row, which is accurate: the test uses synthetic blobs only. AI-assisted: yes (Claude Code ran the checks; I read them).
This pull request has changes conflicting with the target branch.
  • docs/design.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/925/head:github-bot/gh-925'
git switch 'github-bot/gh-925'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-925'
git switch 'github-bot/gh-925'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-925'
git switch 'github-bot/gh-925'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-925'
git switch 'main'
git merge --squash 'github-bot/gh-925'
git switch 'main'
git merge --ff-only 'github-bot/gh-925'
git switch 'main'
git merge 'github-bot/gh-925'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.