Skip to content

docs/design: de-duplicate two contract-table rows repeated by a bad merge - #2490

Open
thiefyzheng wants to merge 1 commit into
ProjectLeonida:mainfrom
thiefyzheng:fix/design-md-duplicated-rows
Open

thiefyzheng wants to merge 1 commit into
ProjectLeonida:mainfrom
thiefyzheng:fix/design-md-duplicated-rows

Conversation

@thiefyzheng

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: DOCS-DESIGN-DUPLICATED-ROWS (#1608 (comment)), from kawaii-shakal's finding (#1608#issuecomment-7225444802)

What and why

Two rows of the contract table in docs/design.md came out of an old merge with their own text repeated:

  • 64-bit scalar bitwise ops: 6,328 characters, the RX 7600 sentence 7 times, with cut-off fragments such as SCC = (D.lo The lane-mask path.... Now one copy of each sentence, the stitched complete RDNA3 sentence once.
  • s_bfe_u32 / s_bfe_i32 past bit 31: the Source sentences repeated, ending in **RDNA2 is not measured** directly after the RDNA2 measurements (gfx1035, gfx1036) in the same row. The repeats and that stale closing sentence are dropped; the LLVM constantFoldBFE comparison stays.

Two lines changed, nothing else. No measurement is added or changed, and every measured claim in each row is kept once.

Tested

Docs only. tests/test_shader_meta.py and tests/test_f16misc_diff.py pass with the change; tests/test_shader_index.py prints nothing on both this branch and unmodified main (43a9d562d). tests/test_f16_hw_words.py could not run here (no pytest). The hardware claims in the two rows were not re-measured.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table: n/a, no rule added.

…eated

The "64-bit scalar bitwise ops" row repeated its RX 7600 sentence 7 times with cut-off fragments; the s_bfe_u32/s_bfe_i32 past bit 31 row repeated its Source sentences and ended with a stale "RDNA2 is not measured" after its own RDNA2 measurements. Each measured claim is kept once; nothing new is measured.

AI-assisted (Claude Code).
@kawaii-shakal

Copy link
Copy Markdown
Contributor

The s_bfe_u32 / s_bfe_i32 part looks right to me: it drops the repeated Source sentences and the trailing "RDNA2 is not measured", which contradicted the RDNA2 measurements earlier in the same row.

The "64-bit scalar bitwise ops" part overlaps #1450 (open since Nov 26, same row) and conflicts with it. It also keeps "Hardware-verified on the same part through tools/hw_oracle" with no part named before it in the row (main has the same dangling reference after the bad merge), so the hw_oracle words are not tied to a GPU. #1450 names the part. Maybe drop the 64-bit row from this PR and leave it to #1450, or take its wording?

AI-assisted (Claude Code); I compared the two diffs against main 43a9d56.


Generated by Claude Code

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.

2 participants