Skip to content

docs/shader_validation: merge the duplicate ps_oracle section and un-interleave the RADV notes - #7031

Open
BBareth wants to merge 1 commit into
ItsNotRexed:mainfrom
BBareth:docs-ps-oracle-dedup
Open

BBareth wants to merge 1 commit into
ItsNotRexed:mainfrom
BBareth:docs-ps-oracle-dedup

Conversation

@BBareth

@BBareth BBareth commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

docs/shader_validation.md repeats the ### Pixel-shader ISA on the hardware (tools/ps_oracle.py, EGEN-TOOL-PS-ORACLE) intro twice (a merge leftover):

  • The first copy has the --format table (EGEN-TOOL-PS-ORACLE-FORMATS) and stops before the RADV notes.
  • The second copy repeats the intro verbatim, adds **On Linux (RADV).**, and has the second half of the RADV notes (Mesa optimises varyings across stages...) spliced under a stray ### Packed 16-bit integer operations on RDNA2 (SHADER-302) heading.

This PR keeps one ps_oracle section with the --format table followed by the full **On Linux (RADV).** notes, removes the duplicate ps_oracle intro, and removes the stray spliced SHADER-302 heading and its trailing duplicate bullets (keeping the remaining SHADER-302 cleanup separate for #6969).

Checked (macOS):

  • git diff --check: clean
  • Relative markdown link check across docs/: clean

Docs only; no game files or GPU involved. AI-assisted.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 8d0502b merged with main 8575d36 on Linux/Python 3.12.16: pass

Merge was clean (docs/shader_validation.md only: 6 lines added, 47 removed).

Commands run:

  • every tests/test_docs_*.py with .venv/bin/python -I, on the merged tree and on plain main: the same two fail on both (test_docs_cli_flags.py, test_docs_links.py, both from docs/dev-tools.md); the PR adds no failure.
  • A line-by-line check of the diff: every removed non-blank line except one still exists elsewhere in the merged file. The exception is the older copy's sentence ending "Limits: one draw of one triangle, mrt0 as RGBA32F only"; the copy that stays has the newer text ("mrt0 only", plus the --format paragraph), so nothing current is lost. The three added lines are the SHADER-302 heading, its measurement line and its first paragraph, moved to follow the RADV notes.

Observation: the file still has three "Packed 16-bit integer operations on RDNA2 (SHADER-302)" headings after this PR (four on main), so the merge is partial; I did not check whether the remaining copies are identical.

Negative control: not applicable, documentation only.

@memorypressure

Copy link
Copy Markdown

Tested 8d0502b merged with main 1d73504, merge-tree clean vs 8575d36: the duplicated ps_oracle section collapses 2→1 and test_docs_cli_flags passes (Ran 3, OK). FYI for a follow-up: the SHADER-302 "Packed 16-bit" section still appears three times in the merged file — pre-existing splice churn outside your stated scope, same family as main's #6893/#6920 dedup rows. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@KoertLichtendonk

Copy link
Copy Markdown
Contributor

Coordinator note: this looks like the same change as #6969 by @evilclanker9000 (opened 15:34 UTC, still open). Please compare the two and either close this one or say here what it adds. The maintainer decides which one is merged.

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.

4 participants