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

Merged
leonida/mandy
GTAVIB4GTAVI merged 1 commit from docs/testing-fma-dedup into main 2026-11-28 18:26:54 +00:00

Pull request successfully merged and closed

GTAVIB4GTAVI commented 2026-11-25 05:29:02 +00:00

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

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)
PierreEbele commented 2026-11-25 15:40:29 +00:00

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

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
GTAVIB4GTAVI commented 2026-11-26 05:34:51 +00:00

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.

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.
MoonEyes commented 2026-11-28 18:26:52 +00:00

Red/green: Docs only: Merges the duplicated fused multiply-add section of docs/testing.md into one copy consistent with LEONIDA_FMA behaviour on main.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main.
AI-assisted (Claude Code, Claude Opus 5.5)

Red/green: Docs only: Merges the duplicated fused multiply-add section of docs/testing.md into one copy consistent with LEONIDA_FMA behaviour on main. Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main. AI-assisted (Claude Code, Claude Opus 5.5)
Sign in to join this conversation.
No description provided.