Skip to content

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

Open
GTAVIB4GTAVI wants to merge 1 commit into
ProjectLeonida:mainfrom
GTAVIB4GTAVI:docs/testing-fma-dedup
Open

GTAVIB4GTAVI wants to merge 1 commit into
ProjectLeonida:mainfrom
GTAVIB4GTAVI:docs/testing-fma-dedup

Conversation

@GTAVIB4GTAVI

Copy link
Copy Markdown

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 (2426df3, then 53bc2c4);
  • "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 c7e82e2:

  • 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

@PierreEbele

Copy link
Copy Markdown
Contributor

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

…G-FMA-DEDUP)

Two copies of the cs_fma_fused paragraph were interleaved by a repeated merge: the RADV
sentence twice (2426df3 and its em-dash revision 53bc2c4), "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 <noreply@anthropic.com>
Signed-off-by: coolpilot904 <andrewjsottile@icloud.com>
@GTAVIB4GTAVI
GTAVIB4GTAVI force-pushed the docs/testing-fma-dedup branch from fbbda0a to fbbf6ab Compare November 26, 2026 05:34
@GTAVIB4GTAVI

Copy link
Copy Markdown
Author

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.

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.

3 participants