docs/shader_validation: one copy of the SHADER-302 and ps_oracle sections (DOC-SHADER-VALIDATION-DEDUP) #1605
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1605"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-25T05:43:40Z.
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.mdonmainhas "### 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 onmain:a66a71ffd(22 Nov): one copy of each, with the RADV (Linux) part of the ps_oracle section.2d3369a4c, a merge oforigin/mainintomain: SHADER-302 three times, as SHADER-681's helper-lanes subsection (58bc80c33) came in.af1b3c96dmerged #3061 a second time: the fourth SHADER-302 copy and a second ps_oracle copy.0d58747e0,--formatand 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
--formatparagraph 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, which0d58747e0itself 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 withmainwithout this change.Tested
On
main42537e7b6:python -I tests/test_docs_*.py: all 12 OK (test_docs_repeated_lines.pyalso 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.GPUs tested: n/a (docs only)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: docs only)🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T15:42:23Z.
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
0d58747e0itselfreplaced; --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
Imported from ubiquitarianism/leonida. Originally posted by GTAVIB4GTAVI on 2026-11-26T05:34:50Z.
Rebased onto
maina73a57e13(was45d18d229), no conflicts, still the same -61 deletions and nothing else. The duplication is still there ona73a57e13: the SHADER-302 block appears four times and the pixel-shader-ISA heading twice, so this still has something to remove.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:27:14Z.
Red/green: Docs only: Removes the duplicated SHADER-302 and ps_oracle sections from docs/shader_validation.md and keeps the newer copy that matches main.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main.AI-assisted (Claude Code, Claude Opus 5.5)