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

Open
opened 2026-11-26 20:21:51 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1595
Author: @GTAVIB4GTAVI
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: docs/testing-fma-dedup


📝 Commits (1)

  • fbbf6ab docs/testing: de-duplicate the fused multiply-add section (DOC-TESTING-FMA-DEDUP)

📊 Changes

1 file changed (+8 additions, -21 deletions)

View changed files

📝 docs/testing.md (+8 -21)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1595 **Author:** [@GTAVIB4GTAVI](https://github.com/GTAVIB4GTAVI) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/testing-fma-dedup` --- ### 📝 Commits (1) - [`fbbf6ab`](https://github.com/ubiquitarianism/leonida/commit/fbbf6abeeb3888621c402890e282058fe6ccb552) docs/testing: de-duplicate the fused multiply-add section (DOC-TESTING-FMA-DEDUP) ### 📊 Changes **1 file changed** (+8 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+8 -21) </details> ### 📄 Description 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1613
No description provided.