Skip to content

docs: map roles of refused shader programs - #72

Merged
simnJS merged 2 commits into
MiamiGame:mainfrom
PrivacyOnion:docs/shader-roles-refused
Nov 25, 2026
Merged

simnJS merged 2 commits into
MiamiGame:mainfrom
PrivacyOnion:docs/shader-roles-refused

Conversation

@PrivacyOnion

@PrivacyOnion PrivacyOnion commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Extend the shader role map from 272 to 388 hashes so a reader can identify
work from translator refusals, PSO refusals and dropped operations. The new
rows include wave64 shadows, voxelisation geometry, and programs for which
the sources establish only a stage or an output type.

New rows: 3 high, 37 medium and 76 low. Following the review of #70,
"high" needs a measured dispatch or a measured output or consumer.
Programs never seen dispatched, or whose consumer is open, are at most
"medium" and say so in the row. The 76 low rows record only what each
program's code reads and writes, so that every program hash the analysis
docs name is now in the map. Each section gives the program's status on main: the census rows date from 1c61fa1, and of these programs only 0ddab4b63b1394e0 is still documented as refused. Three 16-hex values in the docs are not
programs and are left out: a translator cache key in 30fps.md and the
before and after values of a token counter in l4-world.md.

Part of #59

Fixes: none

Depends on: none (#70 is merged)

Area

Documentation, docs/analysis/shader-roles.md.

Tests

  • cargo xtask pr-check passes on my machine with the documented skips.
  • New or changed behaviour has tests that need no game files, or I explain below why it cannot
  • Ran on a title: no

cargo xtask pr-check --base upstream/main --title "docs: map roles of refused shader programs" --skip test --skip clippy --skip clippy-diagnostics passed formatting, asset policy and conventions.
Verified that every added hash appears in existing documentation and that
every added heading link resolves. This change only updates documentation.

Provenance

  • I wrote all of this change myself for XTP, or it only moves code already in XTP.
  • Some of it comes from elsewhere. Each source, its licence and the files concerned are listed here, and every licence is compatible with GPL-3.0-or-later:

The descriptions draw on XTP's linked analysis and local inspection of
the matching shader programs. No XCL or AnyPS5 source was read.

AI assistance: AI coding tools wrote this change, mainly OpenAI Codex.

Checklist

  • No game data, keys, console SDK code or headers, and nothing that circumvents DRM (asset policy)
  • No code copied from xcl or AnyPS5 (references only: read them to understand, write your own)
  • I agree to license this contribution under GPL-3.0-or-later
  • Title and every commit follow <area>: <summary>; one topic; under 400 changed lines, or the reason is above
  • Docs updated where behaviour, commands or variables changed (README, docs/)

@github-actions github-actions Bot added area/docs docs/, Markdown size/M 100 to 399 changed lines labels Nov 25, 2026

@simnJS simnJS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is clean and well sourced. Two fixes before I merge:

  1. The "Refused and dropped programs" rows (around lines 414 and 423–425) should give the status on main. The 19 wave64 shadow programs translate since f992374 (docs/wave64-on-wave32.md, "World-session refusals on 32-lane hosts"), and the ES/GS halves since es-gs.md §7.2. Please also say that the census rows date from 1c61fa1. Of the new rows, only 0ddab4b6 is still documented as refused. (docs/analysis/refusals.md §7 is stale on this too; we'll fix it on our side.)
  2. Line 238: b2b1ea29bc3987db isn't named by its cited source (CPU image §4.1) and was never met in a session, so its confidence should be "low", not "medium".

@PrivacyOnion

Copy link
Copy Markdown
Contributor Author

Thanks. Both points are fixed in 8d2377f, a new commit on top:

  1. Status on main: the "Refused and dropped programs" intro now dates the census rows from 1c61fa1. It says the 19 wave64 shadow programs translate since f992374 (linking "World-session refusals on 32-lane hosts") and the ES/GS halves since es-gs.md §7.2. It also says that of this group's programs, only 0ddab4b63b1394e0 (BVH table) is still documented as refused. The wave64 and voxelisation subsections and the 19 shadow rows carry the same status: "Translates on main; no dispatch was observed in the earlier world sessions."
  2. b2b1ea29bc3987db: it is now low, and the CPU image §4.1 citation is gone. The row keeps PSO refusals §4.1 and its code.

The description's counts are updated: 3 high, 37 medium, 76 low.

@simnJS simnJS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, both points are fixed:

  • the refused rows now give their status on main, with census rows dated from 1c61fa1, the wave64 shadow programs translating since f992374 and only 0ddab4b6 still refused;
  • b2b1ea29 is now rated low.

CI is green, so I'm merging.

@simnJS
simnJS merged commit f4a54b8 into MiamiGame:main Nov 25, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs docs/, Markdown size/M 100 to 399 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants