Skip to content

docs/design.md: three stale spots (swizzle row, gather mip clamp, manifest verify) - #3005

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
LouisRiverstone:docs-design-stale-spots
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
LouisRiverstone:docs-design-stale-spots

Conversation

@LouisRiverstone

Copy link
Copy Markdown
Contributor

Fixes the three spots in @tupacfan04's docs/design.md finding on #2891. Docs only.

  1. Swizzled buffer addressing row (line 368). It ended with "Unmeasured: the swizzled layout on RDNA2 hardware, …", while docs/shader_validation.md ("RDNA2 swizzled buffer addressing", SHADER-343) records the layout measured on gfx1036 with tools/buffer_swizzle_probe.py: 22 cases, 22 bit-exact. The "Unmeasured" list now says the layout is measured, with that reference, and keeps only what is still unmeasured: offsets that aren't dword-aligned, the 32-bit offset wrap, and GFX11's two-bit SWIZZLE_ENABLE.
  2. "Other additions" (line 271) restated the image_gather4_l(_o) mip choice Floor(clamp(LOD, S# MIN_LOD, MAX_LOD) + 0.5), which the "Gather sampler LOD" row (line 262) already gives with its measurements. It now says the four fetches are at the mip that row chooses. Nothing else in that row changes, and Translator: gather wrap/mirror modulo without OpSMod, independent of the driver's sign (SHADER-369) #2144/Translator: gather wrap/mirror use OpSRem + fix-up, not OpSMod (AMD Windows driver reads zeros) #2105's wrap sentence is untouched.
  3. Tools list (line 31) said manifest.py has "a --verify mode". It has create and verify subcommands, and manifest.py --verify exits 2 with "invalid choice". Line 492 already uses manifest.py verify <game>. This line is in a plain code listing, so no backticks.

tests/test_docs_design_rows.py, test_docs_links.py, test_docs_list_items.py and test_docs_repo_paths.py all pass.

AI-assisted (Claude Code): I reviewed the change and ran the docs tests.

…ifest verify)

From @tupacfan04's finding on ItsNotRexed#2891:
- the swizzled-buffer row ended with 'Unmeasured: the swizzled layout on
  RDNA2 hardware', though docs/shader_validation.md records it measured
  on gfx1036 (SHADER-343, 22 of 22 bit-exact); the tail keeps only what is
  still unmeasured;
- 'Other additions' restated the image_gather4_l(_o) mip clamp the
  'Gather sampler LOD' row already gives; it now refers to that row;
- the tools list said manifest.py has a --verify mode; it has create and
  verify subcommands (manifest.py --verify exits 2).
@tupacfan04

Copy link
Copy Markdown
Contributor

Docs match the code at the head (92e8573e): docs/design.md:31 says create plus a verify subcommand, which is what tools/manifest.py:258-260 exposes (--verify is not a flag); the swizzle row now says the layout itself is measured, which matches docs/shader_validation.md:308-312 (gfx1036, 22 cases, 22 bit-exact); and the gather row cross-references the Gather sampler LOD row rather than repeating the clamp. Docs tests 11 passed, merge clean against main and the open docs PRs.

Approve. AI-assisted review, docs only.

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.

3 participants