docs/testing: one copy of the fused multiply-add section (DOC-TESTING-FMA-DEDUP) #1595

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

@⁠GTAVIB4GTAVI on GitHub · 2026-11-25 05:29 UTC · original
GTAVIB4GTAVI:docs/testing-fma-dedup → main · +8 −21 · 1 files · 1 commits · open

Claimed in the coordination issue as: DOC-TESTING-FMA-DEDUP (not yet posted there: #14 is at GitHub's 2,500-comment cap and rejects new comments)

What and why

The "Fused multiply-add: GLSL Fma or OpFmaKHR" section of docs/testing.md is two copies of one paragraph that a repeated merge interleaved:

  • the RADV sentence twice: an early draft ("splits 5 of the 7 f32 ops ... for each of", cut off mid-sentence) and its em-dash revision from the same series (2426df3d5, then 53bc2c494);
  • "operands taken from user SGPRs so the driver cannot fold them" twice, the second time as the start of a paragraph with no subject;
  • Intel UHD Graphics (Xe-LP, Windows 101.7088) described twice;
  • LEONIDA_FMA=exact explained twice.

This keeps one copy of each and nothing else: 8 lines added, 21 removed, and no number, driver version or device dropped or changed (every number and 0x word in the section is in both versions). Two wording points:

  • The older copy said the two splitting drivers end up "failing cs_fma_fused with glsl". judge_fma_fused in runtime/test/shaders/check.py (shared with run_gpu_tests.py) accepts the fused or the split word per f32 output under --fma glsl, so the kept text says they "give the split value" in words 0, 2, 3 and 5 instead.
  • The early draft's clause "(reusing the live a * a product in v3)" is dropped with that draft, as its own revision did.

This is a different block from the one DOC-DUP-SECTIONS (#1153) removed. #1399 also edits docs/testing.md (a Known-problems row); the two merge cleanly (git merge-tree).

Tested

On main c7e82e26e:

  • python -I tests/test_docs_*.py: all 12 OK (test_docs_repeated_lines.py also passes on main before this change: it only catches neighbouring repeated lines).
  • python -I scripts/check_no_game_data.py docs/testing.md: clean.
  • git diff --check: clean; no line over 119 columns.

GPUs tested: n/a (docs only)

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)

🤖 Generated with Claude Code

**@⁠GTAVIB4GTAVI** on GitHub · 2026-11-25 05:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1595) `GTAVIB4GTAVI:docs/testing-fma-dedup` → `main` · +8 −21 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-TESTING-FMA-DEDUP (not yet posted there: #14 is at GitHub's 2,500-comment cap and rejects new comments) ### What and why The "Fused multiply-add: GLSL Fma or OpFmaKHR" section of `docs/testing.md` is two copies of one paragraph that a repeated merge interleaved: - the RADV sentence twice: an early draft ("splits 5 of the 7 f32 ops ... for each of", cut off mid-sentence) and its em-dash revision from the same series (2426df3d5, then 53bc2c494); - "operands taken from user SGPRs so the driver cannot fold them" twice, the second time as the start of a paragraph with no subject; - Intel UHD Graphics (Xe-LP, Windows 101.7088) described twice; - `LEONIDA_FMA=exact` explained twice. This keeps one copy of each and nothing else: 8 lines added, 21 removed, and no number, driver version or device dropped or changed (every number and 0x word in the section is in both versions). Two wording points: - The older copy said the two splitting drivers end up "failing `cs_fma_fused` with `glsl`". `judge_fma_fused` in `runtime/test/shaders/check.py` (shared with `run_gpu_tests.py`) accepts the fused or the split word per f32 output under `--fma glsl`, so the kept text says they "give the split value" in words 0, 2, 3 and 5 instead. - The early draft's clause "(reusing the live `a * a` product in `v3`)" is dropped with that draft, as its own revision did. This is a different block from the one DOC-DUP-SECTIONS (#1153) removed. #1399 also edits `docs/testing.md` (a Known-problems row); the two merge cleanly (`git merge-tree`). ### Tested On `main` c7e82e26e: - `python -I tests/test_docs_*.py`: all 12 OK (`test_docs_repeated_lines.py` also passes on `main` before this change: it only catches neighbouring repeated lines). - `python -I scripts/check_no_game_data.py docs/testing.md`: clean. - `git diff --check`: clean; no line over 119 columns. GPUs tested: n/a (docs only) 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Two copies of the cs_fma_fused paragraph were interleaved by a repeated merge: the RADV
sentence twice (2426df3d5 and its em-dash revision 53bc2c494), "operands taken from user
SGPRs" twice, Intel UHD Xe-LP and LEONIDA_FMA=exact each described twice. Keep one of each.

No number, driver version or device changes. The kept wording matches check.py's
judge_fma_fused: under --fma glsl each f32 word may be fused or split, so the older copy's
"failing cs_fma_fused with glsl" is now "give the split value". Dropped only the superseded
draft clause "(reusing the live a * a product in v3)", which its own author revised away.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: coolpilot904 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:57:32 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 15:40 UTC · original

Reviewed fbbda0a: docs-only de-dup of docs/testing.md's fused multiply-add section. On both this branch and main: tests/test_docs_design_rows.py and scripts/check_no_game_data.py pass; a token-diff probe shows no GPU/driver/version/op/hex constant from main is lost, only the duplicates drop; the kept wording matches check.py's judge_fma_fused (glsl: per-word fused-or-split with the f16 word strict; khr/exact: all 8 strict), so replacing "failing cs_fma_fused" with "give the split value" is right. No findings.

AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 15:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1595#issuecomment-7167206314) Reviewed fbbda0a: docs-only de-dup of docs/testing.md's fused multiply-add section. On both this branch and main: tests/test_docs_design_rows.py and scripts/check_no_game_data.py pass; a token-diff probe shows no GPU/driver/version/op/hex constant from main is lost, only the duplicates drop; the kept wording matches check.py's judge_fma_fused (glsl: per-word fused-or-split with the f16 word strict; khr/exact: all 8 strict), so replacing "failing cs_fma_fused" with "give the split value" is right. No findings. AI-assisted review. **Recommendation:** Merge
Author
Owner

@⁠GTAVIB4GTAVI on GitHub · 2026-11-26 05:34 UTC · original

Rebased onto main a73a57e13 (was fbbda0a5d), no conflicts, still +8/-21. Still needed: "8/8 fused exact", "accept either the fused or the exact" and "operands taken from user SGPRs" each appear twice in docs/testing.md at a73a57e13, exactly as they did in the PR's own base.

**@⁠GTAVIB4GTAVI** on GitHub · 2026-11-26 05:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1595#issuecomment-7183615764) Rebased onto `main` `a73a57e13` (was `fbbda0a5d`), no conflicts, still +8/-21. Still needed: "8/8 fused exact", "accept either the fused or the exact" and "operands taken from user SGPRs" each appear twice in `docs/testing.md` at `a73a57e13`, exactly as they did in the PR's own base.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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