docs/design.md: drop older copies that a newer sentence in the same row extends word for word (OLD-9934) #1224

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

@⁠wetw0rks-c0ding on GitHub · 2026-11-24 20:35 UTC · original
wetw0rks-c0ding:old-pr/9934 → main · +8 −8 · 1 files · 1 commits · open

Claimed in the coordination issue as: OLD-9934

What and why

Several docs/design.md contract rows repeat a measurement sentence word for word under two different hardware citations. The duplicate copies are removed so each row states its confirmation once, and the newer sentence's wording wins.

Tested

  • python3 -m pytest tests/test_docs_repeated_lines.py tests/test_docs_table_rows.py -q -> 4 passed in 0.19s (exit 0)
  • python -I scripts/check_no_game_data.py docs/design.md -> clean (exit 0)
  • Environment: Linux (CachyOS), CPU-only tests, no GPU required

AI-assisted: Yes. This work was done with OpenCode agents.

**@⁠wetw0rks-c0ding** on GitHub · 2026-11-24 20:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1224) `wetw0rks-c0ding:old-pr/9934` → `main` · +8 −8 · 1 files · 1 commits · open Claimed in the coordination issue as: OLD-9934 ### What and why Several `docs/design.md` contract rows repeat a measurement sentence word for word under two different hardware citations. The duplicate copies are removed so each row states its confirmation once, and the newer sentence's wording wins. ### Tested - `python3 -m pytest tests/test_docs_repeated_lines.py tests/test_docs_table_rows.py -q` -> 4 passed in 0.19s (exit 0) - `python -I scripts/check_no_game_data.py docs/design.md` -> clean (exit 0) - Environment: Linux (CachyOS), CPU-only tests, no GPU required AI-assisted: Yes. This work was done with OpenCode agents.
Seven rows kept an older, shorter copy of a sentence next to the newer one that
starts with it word for word and adds to it (Buffer format stores, Other
additions, Floating-point operations, Output modifiers on hardware (gfx1150),
Scalar select and pack, v_min3_f16..., Swizzled buffer addressing); the
shorter copy goes. Integer clamp also had 'CPU-checked ..., **not
GPU-verified**' next to the same sentence with its gfx1035 hardware
verification, and an 'Open divergence: the translator currently ignores clamp
on the carry-out ops' next to the sentence saying that was fixed on
2026-11-22; the code saturates there (the v_add_co_u32 branch), so both stale
sentences go. No behaviour change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:43:31 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 07:13 UTC · original

Reviewed 03f7fa0f6: docs-only cleanup of 8 docs/design.md rows. The Integer clamp removal is verified against the translator (test_alu_add_co_clamp.py 4 OK, test_alu_u16_clamp.py 3 OK, test_alu_add_nc_clamp.py 24 OK, and v_add_co_u32 ... clamp saturates 0xffffffff+1 to 0xffffffff with carry=1), and the removals in Floating-point operations, Scalar select and pack, v_min3_f16..., and Swizzled buffer addressing preserve the kept text cleanly. Three issues to fix before merging:

  1. Other additions row: removing . GPU-checked with runtime/test/shaders/ps_gather_wrap.asm (...) on AMD (Radeon 880M, wave64) and NVIDIA RTX 5070 deletes the verb GPU-checked (leaving ...so they were not guessed; the border modes with runtime/test/shaders/ps_gather_border.asm ...) and drops distinct modes 0–3 GPU coverage on Radeon 880M / RTX 5070 that ps_gather_border.asm (modes 6–7 on RTX 4070 SUPER) does not cover. Restore that sentence; if you meant to dedupe this row, the actual word-for-word duplicate is the repeated opening image_gather4_l(_o) sentence.
  2. Buffer format stores row: dropping only the first sentence leaves Native gfx1036 confirmed both channel orders at all four instruction widths for packed and ordinary stores in wave32 and wave64. dangling after the NaN-sweep sentence with no antecedent while still repeated verbatim later in the row — drop that orphaned sentence too. (In Output modifiers on hardware (gfx1150), dropping the first denorm_mode_32 = 0 sentence also leaves too in `v_fma_mix*` f32 operands read as zero when denormal too without its prior antecedent.)
  3. Rebase needed: docs/design.md conflicts with main around Buffer format stores and Other additions (adjacent rows changed on main; all 8 target rows still need cleanup on main).
    AI-assisted review.

Recommendation: Fix first

**@⁠PierreEbele** on GitHub · 2026-11-25 07:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1224#issuecomment-7155616788) Reviewed 03f7fa0f6: docs-only cleanup of 8 `docs/design.md` rows. The `Integer clamp` removal is verified against the translator (`test_alu_add_co_clamp.py` 4 OK, `test_alu_u16_clamp.py` 3 OK, `test_alu_add_nc_clamp.py` 24 OK, and `v_add_co_u32 ... clamp` saturates `0xffffffff+1` to `0xffffffff` with `carry=1`), and the removals in `Floating-point operations`, `Scalar select and pack`, `v_min3_f16...`, and `Swizzled buffer addressing` preserve the kept text cleanly. Three issues to fix before merging: 1. **`Other additions` row**: removing `. GPU-checked with runtime/test/shaders/ps_gather_wrap.asm (...) on AMD (Radeon 880M, wave64) and NVIDIA RTX 5070` deletes the verb `GPU-checked` (leaving `...so they were not guessed; the border modes with runtime/test/shaders/ps_gather_border.asm ...`) and drops distinct modes 0–3 GPU coverage on Radeon 880M / RTX 5070 that `ps_gather_border.asm` (modes 6–7 on RTX 4070 SUPER) does not cover. Restore that sentence; if you meant to dedupe this row, the actual word-for-word duplicate is the repeated opening `image_gather4_l(_o)` sentence. 2. **`Buffer format stores` row**: dropping only the first sentence leaves `Native gfx1036 confirmed both channel orders at all four instruction widths for packed and ordinary stores in wave32 and wave64.` dangling after the NaN-sweep sentence with no antecedent while still repeated verbatim later in the row — drop that orphaned sentence too. (In `Output modifiers on hardware (gfx1150)`, dropping the first `denorm_mode_32 = 0` sentence also leaves `too` in `` `v_fma_mix*` f32 operands read as zero when denormal too `` without its prior antecedent.) 3. **Rebase needed**: `docs/design.md` conflicts with `main` around `Buffer format stores` and `Other additions` (adjacent rows changed on `main`; all 8 target rows still need cleanup on `main`). AI-assisted review. **Recommendation:** Fix first
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/1224/head:github-bot/gh-1224'
git switch 'github-bot/gh-1224'

Merge

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