Repository navigation
docs/shader_validation: one copy of the packed 16-bit section - #5358
evilclanker9000 wants to merge 2 commits into
Conversation
|
Fact-checked On
The PR:
AI-assisted. |
|
Verified on the merged tree (main 3faac55): I confirmed the triplication independently — SHADER-302 content appears three times in shader_validation.md, the middle one an orphan heading spliced into the pixel-shader interp2 subsection and the third a verbatim copy; your 15 deleted lines are exactly that spliced heading with its three bullets plus the third copy, the complete section at line 1658 survives verbatim, and the pixel-shader prose is intact. All ten docs guards pass under python -I. The missing blank line before the Pixel-shader ISA heading is main's own, not introduced here. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head 482cee3a99f4a7cc1c9f3cbd48011a9c48b2639c (base 3faac557b).
What main had: three ### Packed 16-bit integer operations on RDNA2 (SHADER-302) headers (L1658, L1717, L1769), three identical clamp/Silicon vs Translator parity bullet pairs, and two intros. The middle copy was a mis-merge: its header sat on the Mesa/varyings ps_oracle prose.
After the PR: one header, one intro, one bullet set, and it is the complete L1658 block, followed by ### Pixel-shader ISA on the hardware. Nothing unique was deleted; the three copies' bullet text is identical.
Commands: python -I on tests/test_docs_links.py, test_docs_list_items.py, test_docs_table_rows.py, test_docs_design_rows.py, test_docs_python_deps.py, test_i18n_index.py, test_text_encoding.py -> all OK. git diff --check clean.
Verdict: good to merge.
…sections A merge kept 'Packed 16-bit integer operations on RDNA2 (SHADER-302)' four times: two 9-line copies before the first ps_oracle section and after it, the same text again inside what is now the helper-lane area, and once more before ps_sweep. Keep the copies identical to the first, so removing the two middle ones loses nothing.
…ps_oracle section The same merge kept 'Pixel-shader ISA on the hardware' twice and left the second copy's unique text elsewhere: the On Linux (RADV) paragraph, the Mesa varyings example and the helper-lane subsection ended up after headings of their own, one of them labelled 'Packed 16-bit integer operations on RDNA2' with the packed bullets repeated under it. Keep the first copy (the one with the export-format table), put those three blocks after it in reading order, and drop the mislabelled heading and its duplicate bullets.
482cee3 to
69a3262
Compare
|
Checked The two removed blocks are the same text (same heading, same gfx1036 measurement line, same 380-kernel and clamp bullets), so nothing unique went with the second copy: on the head Ran on the head:
AI-assisted (OpenCode). |
|
Tested 69a3262 merged with main 3ae0654 on Linux/Python 3.12.16: pass |
docs/shader_validation.mdshowed the same two sections several times:### Packed 16-bit integer operations on RDNA2 (SHADER-302)appeared four times and### Pixel-shader ISA on the hardware (tools/ps_oracle.py)twice, with a third packed heading carrying the RADV/Mesa text and a copy of the packed bullets. A reader could not tell which copy is current, and the helper-lane table sat under a heading that names the wrong probe.What changed
Two commits, both in
docs/shader_validation.md:Pixel-shader ISAcopy, which is the one with the export-format table and its "Limits" sentence, and put the text the second copy and the mislabelled heading held under it in reading order: the**On Linux (RADV).**paragraph, the Mesa varyings example, then#### Helper lanes at a triangle edge. The mislabelled packed heading and the packed bullets repeated under it go; the single remaining packed section (with theop_selconstant-operands bullet) follows the helper lanes.Nothing was rewritten: every paragraph of the two copies is kept once.
Evidence
Counts in the file before and after (
Select-String -Path docs/shader_validation.md -Pattern ...):^### Packed 16-bit integer operations on RDNA2^### Pixel-shader ISA on the hardwarecol_0_export_format(export-format table)Mesa optimises varyings across stages#### Helper lanes at a triangle edge- **Constant operands under(packed bullets)A line-by-line accounting of what disappeared (
collections.Counterover the old and new file) lists only the duplicated headings, the duplicated bullets and the second copy's wording of the "Limits" sentence ("mrt0 as RGBA32F only"); no other line is lost.Docs tests on the branch (
python -I tests/test_...py, all on Windows 11, no GPU, no game files):Notes
upstream/main561b65a83: the earlier version of this branch had drifted and would have removed text that landed after it; this one only removes duplicated lines.ps_oracle's numbers are unchanged; theint_hw_probecounts belong to docs/shader_validation: int_hw_probe runs 186 cases across 26 groups, not 87 across 19 #6015, which edits another paragraph of the same file.--formattargets.docs/animation.mdstill has one duplicated## MoVEheading; docs/animation.md: drop the first of two identical MoVE state-machine sections #5755 removes it, so I left it alone.No GPU needed.
AI-assisted.