docs/shader_validation: one copy of the SHADER-302 and ps_oracle sections (DOC-SHADER-VALIDATION-DEDUP) #1605

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

@⁠GTAVIB4GTAVI on GitHub · 2026-11-25 05:43 UTC · original
GTAVIB4GTAVI:docs/shader-validation-dedup → main · +0 −61 · 1 files · 1 commits · open

Claimed in the coordination issue as: DOC-SHADER-VALIDATION-DEDUP (#1604; #14 is at GitHub's 2,500-comment cap)

What and why

docs/shader_validation.md on main has "### Packed 16-bit integer operations on RDNA2 (SHADER-302)" four times and "### Pixel-shader ISA on the hardware (tools/ps_oracle.py, EGEN-TOOL-PS-ORACLE)" twice. Following the file's history on main:

  • a66a71ffd (22 Nov): one copy of each, with the RADV (Linux) part of the ps_oracle section.
  • 2d3369a4c, a merge of origin/main into main: SHADER-302 three times, as SHADER-681's helper-lanes subsection (58bc80c33) came in.
  • af1b3c96d merged #3061 a second time: the fourth SHADER-302 copy and a second ps_oracle copy.
  • #3499 (0d58747e0, --format and the export-format table) then landed in only one of the two ps_oracle copies, while the RADV part and the helper lanes are in the other.

One SHADER-302 copy went in as a bare heading plus its three bullets in the middle of the RADV paragraphs, so the RADV text is split by an unrelated heading.

This keeps one SHADER-302 section and one ps_oracle section in a66a71ffd's order: the ps_oracle copy that has #3499's --format paragraph and table, then the RADV paragraphs, then the helper-lanes subsection. Deletions only (61 lines). The only line removed that is in no remaining copy is the old "Limits: one draw of one triangle, mrt0 as RGBA32F only" line, which 0d58747e0 itself replaced with "mrt0 only" after the table. Checked by script: the kept region equals a66a71ffd's region with 0d58747e0's and 58bc80c33's added lines applied, blank lines and table rule rows aside.

Open pull requests that also edit this file: #1037, #1039, #1040, #1478 and #630 each merge cleanly with this one (git merge-tree); #1037 and #1039 insert after the first SHADER-302 copy, which is the one kept. #159 and #1366 already conflict with main without this change.

Tested

On main 42537e7b6:

  • python -I tests/test_docs_*.py: all 12 OK (test_docs_repeated_lines.py also passes before this change; it only catches neighbouring repeats).
  • python -I scripts/check_no_game_data.py docs/shader_validation.md: clean.
  • git diff --check: clean.
  • Repeated 60+-character sentences in the file: 17 before, 2 after (each a single sentence in two different sections); repeated headings: 2 before, 0 after.

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:43 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1605) `GTAVIB4GTAVI:docs/shader-validation-dedup` → `main` · +0 −61 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-SHADER-VALIDATION-DEDUP (#1604; #14 is at GitHub's 2,500-comment cap) ### What and why `docs/shader_validation.md` on `main` has "### Packed 16-bit integer operations on RDNA2 (SHADER-302)" four times and "### Pixel-shader ISA on the hardware (`tools/ps_oracle.py`, EGEN-TOOL-PS-ORACLE)" twice. Following the file's history on `main`: - a66a71ffd (22 Nov): one copy of each, with the RADV (Linux) part of the ps_oracle section. - 2d3369a4c, a merge of `origin/main` into `main`: SHADER-302 three times, as SHADER-681's helper-lanes subsection (58bc80c33) came in. - af1b3c96d merged #3061 a second time: the fourth SHADER-302 copy and a second ps_oracle copy. - #3499 (0d58747e0, `--format` and the export-format table) then landed in only one of the two ps_oracle copies, while the RADV part and the helper lanes are in the other. One SHADER-302 copy went in as a bare heading plus its three bullets in the middle of the RADV paragraphs, so the RADV text is split by an unrelated heading. This keeps one SHADER-302 section and one ps_oracle section in a66a71ffd's order: the ps_oracle copy that has #3499's `--format` paragraph and table, then the RADV paragraphs, then the helper-lanes subsection. **Deletions only** (61 lines). The only line removed that is in no remaining copy is the old "Limits: one draw of one triangle, mrt0 as RGBA32F only" line, which 0d58747e0 itself replaced with "mrt0 only" after the table. Checked by script: the kept region equals a66a71ffd's region with 0d58747e0's and 58bc80c33's added lines applied, blank lines and table rule rows aside. Open pull requests that also edit this file: #1037, #1039, #1040, #1478 and #630 each merge cleanly with this one (`git merge-tree`); #1037 and #1039 insert after the first SHADER-302 copy, which is the one kept. #159 and #1366 already conflict with `main` without this change. ### Tested On `main` 42537e7b6: - `python -I tests/test_docs_*.py`: all 12 OK (`test_docs_repeated_lines.py` also passes before this change; it only catches neighbouring repeats). - `python -I scripts/check_no_game_data.py docs/shader_validation.md`: clean. - `git diff --check`: clean. - Repeated 60+-character sentences in the file: 17 before, 2 after (each a single sentence in two different sections); repeated headings: 2 before, 0 after. 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)
Repeated merges left "Packed 16-bit integer operations on RDNA2 (SHADER-302)" in the file four
times and "Pixel-shader ISA on the hardware" twice: 2d3369a4c (a merge of origin/main into
main) tripled SHADER-302 as SHADER-681's helper-lanes subsection came in, af1b3c96d merged
#3061 a second time, and #3499's --format table then landed in only one ps_oracle copy. One
SHADER-302 copy went in as a bare heading and its bullets in the middle of the RADV paragraphs.

Keep one of each, in the order a66a71ffd had them before the repeats, with the two real
additions in place: #3499's --format paragraph and table (0d58747e0) and SHADER-681's helper
lanes (58bc80c33). Every kept line is main's own text; the only line dropped that is in no
remaining copy is the "Limits: ... mrt0 as RGBA32F only" line that 0d58747e0 itself replaced.
Deletions only, so #1037 and #1039 (which insert after the first SHADER-302 copy) still merge.

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:50 +00:00
Author
Owner

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

Reviewed 45d18d2: docs-only dedup of docs/shader_validation.md. On the PR tree and on main I ran
the 11 tests/test_docs_*.py checks and scripts/check_no_game_data.py on the file (all pass on
both), plus a structural probe: exactly one SHADER-302 and one ps_oracle remain; every deleted line
survives elsewhere except the pre-#3499 limits line ("mrt0 as RGBA32F only") that 0d58747e0 itself
replaced; --format paragraph, helper-lanes section and order match a66a71ffd. Could not check that
#1037/#1039 still merge (no such branches in this clone). No finding. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 15:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1605#issuecomment-7167254995) Reviewed 45d18d2: docs-only dedup of docs/shader_validation.md. On the PR tree and on main I ran the 11 tests/test_docs_*.py checks and scripts/check_no_game_data.py on the file (all pass on both), plus a structural probe: exactly one SHADER-302 and one ps_oracle remain; every deleted line survives elsewhere except the pre-#3499 limits line ("mrt0 as RGBA32F only") that 0d58747e0 itself replaced; --format paragraph, helper-lanes section and order match a66a71ffd. Could not check that #1037/#1039 still merge (no such branches in this clone). No finding. AI-assisted review. **Recommendation:** Merge
Author
Owner

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

Rebased onto main a73a57e13 (was 45d18d229), no conflicts, still the same -61 deletions and nothing else. The duplication is still there on a73a57e13: the SHADER-302 block appears four times and the pixel-shader-ISA heading twice, so this still has something to remove.

**@⁠GTAVIB4GTAVI** on GitHub · 2026-11-26 05:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1605#issuecomment-7183615565) Rebased onto `main` `a73a57e13` (was `45d18d229`), no conflicts, still the same -61 deletions and nothing else. The duplication is still there on `a73a57e13`: the SHADER-302 block appears four times and the pixel-shader-ISA heading twice, so this still has something to remove.
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/1605/head:github-bot/gh-1605'
git switch 'github-bot/gh-1605'

Merge

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