Skip to content

docs/design.md: one copy of each rule in the EXEC, v_cvt_pknorm and Wave64 mask ballot rows - #4899

Open
LouisRiverstone wants to merge 1 commit into
ItsNotRexed:mainfrom
LouisRiverstone:docs-three-rows
Open

LouisRiverstone wants to merge 1 commit into
ItsNotRexed:mainfrom
LouisRiverstone:docs-three-rows

Conversation

@LouisRiverstone

Copy link
Copy Markdown
Contributor

Three more stitched docs/design.md rows, not covered by #3637, #4879 or #4891. Each now keeps one copy of each rule, always the newest wording already in the row. Nothing is reworded.

EXEC (3,383 → 2,582 characters):

  • The gfx1100 measurement sentence appeared twice. The longer copy, with the AMD clang 20 note, is kept.
  • The pixel-discard rule appeared in its old form ("a pixel lane still inactive at the end is discarded") and its newer exp … vm form. The newer one is kept.
  • The verification said "not yet GPU-verified" next to the gfx1036 and RX 7600 verifications, and one copy was spliced as "… measured separately.; also GPU-verified …". Now one sentence names the CPU test, the gfx1036 run and the RX 7600 run.

v_cvt_pknorm_i16_f32 / _u16_f32 (4,067 → 3,118; this row is mine, from #1496). Superseded claims sat next to the measurements that replaced them:

  • "The rounding differs: … one off … Not fixed here": the tie correction is in the code (Fma residual, SHADER-363), and the row's measured sentence says the translator matches all 134 probe words.
  • "NaN gives 0 … not measured on hardware": 74 of 74 NaN halves were measured.
  • "clamp raises Unsupported": the code accepts clamp as the hardware no-op, as the row says just before.
  • "Not checked through Vulkan on a GPU." and "Not GPU-verified.": the row has a Vulkan run on an RX 9070 XT and gfx1036.

The older, shorter "CPU-checked by" list is dropped for the newer one, which names three test files.

Wave64 mask ballot (3,132 → 2,438): older, shorter copies of three sentences (the lane_masks.py tracking list, the s_bcnt/s_ff reconstruction list, and the GPU-checked/test-coverage sentence) are dropped. The longer current ones stay.

Not touched: "16-bit interpolation without PerVertexKHR" also has two versions, but they disagree on a number (params 0..(28 − P) / 2 vs (29 − P) / 2). That needs the code rather than a dedupe, so I left it.

Checked:

  • the kept v_cvt_pknorm claims against tools/rdna2spirv.py (tie correction, clamp accepted)
  • every row has the same column count as its neighbours
  • the tests/test_docs_*.py checks pass

Docs only, no game files. Claimed on #4816 before starting.

AI-assisted (Claude Code): I reviewed and ran the checks.

…ave64 mask ballot rows

Three more stitched rows. EXEC: the gfx1100 measurement sentence twice, the
pixel-discard rule in its old and new form, and '**not yet GPU-verified**' next
to the gfx1036 and RX 7600 verifications (one of them spliced as '.; also
GPU-verified'). v_cvt_pknorm_i16/u16_f32: superseded claims next to the
measured ones ('The rounding differs ... Not fixed here', NaN 'not measured
on hardware', 'clamp raises Unsupported', 'Not checked through Vulkan', 'Not
GPU-verified') and two CPU-checked lists; the code has the tie correction and
accepts clamp as a no-op. Wave64 mask ballot: older shorter copies of three
sentences. Each row keeps one copy of each rule, the newest wording already
in it. No behaviour change.
@tupacfan04

Copy link
Copy Markdown
Contributor

PASS. Single commit on current main d974c88a; git merge-tree --write-tree origin/main HEAD gives the head tree with no conflicts. Docs tests 30 passed / 6 subtests, compileall and git diff --check clean. A word-diff of each of the three rows proves every deletion is a duplicate or superseded claim; all evidence survives (74 of 74, 28 of 28, 134 probe words, gfx1035/SHADER-137, gfx1036 + RX 7600, clang-20 note, clamp no-op, tie floor(p)+1, matching tools/rdna2spirv.py:9426-9439 with clamp accepted at :9414). Row lengths match the body (3,383 -> 2,582; 4,067 -> 3,118; 3,132 -> 2,438).

Three minor notes, none blocking:

  • docs/design.md:424 still states the NaN result twice: "74 of 74 NaN halves" appears twice, both SHADER-339 / tools/pknorm_probe.py.
  • The cross-reference to docs/shader_validation.md ("v_cvt_pknorm_* NaN and rounding") is dropped from the row; that section still exists at docs/shader_validation.md:1497.
  • docs/design.md:253 ("...on a path without one, a lane inactive at the end (EXEC is kept...)") has no main predicate; verbatim pre-existing wording, not introduced here.

Approve. AI-assisted review, docs only.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 31a58e7 merged with main 3faac55 on Linux, Python 3.12.16: pass

All 10 tests/test_docs_.py pass (exit 0). Docs-only (3 rows of docs/design.md: EXEC, v_cvt_pknorm_, Wave64 mask ballot); no negative control applies.

Content check, comparing every sentence of the old rows with the new ones: each dropped sentence is a duplicate or contradicts text that stays. Dropped: the duplicated "Measured on native gfx1100" sentence and the old "A pixel lane still inactive at the end is discarded" (replaced by the kept exp ... vm rule); the "not yet GPU-verified" copy of the carry-mask sentence (the kept version says GPU-verified on gfx1036 and hardware-verified on the RX 7600); in v_cvt_pknorm, the "The rounding differs ... one off ... Not fixed here", "NaN ... not measured on hardware", "clamp raises Unsupported" and "Not GPU-verified" sentences, which are contradicted by the SHADER-363 single-rounding fix, the measured NaN result, the clamp-is-a-no-op sentence and the GPU-verified-through-Vulkan sentence that all stay; in Wave64 mask ballot, the older shorter copies of the lane_masks and s_bcnt/bitcmp sentences and of the GPU-checked/test-coverage sentence, whose longer versions (with v_mbcnt, test_loop_ballot_barrier, test_lane_masks) stay. One dropped reference: the pointer to docs/shader_validation.md "v_cvt_pknorm_* NaN and rounding on RDNA2", which belonged to the removed "rounding differs" claim. No issues found.

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