Repository navigation
docs/design: de-duplicate the s_bfe contract-table row - #2490
thiefyzheng wants to merge 1 commit into
Conversation
|
The 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 AI-assisted (Claude Code); I compared the two diffs against main 43a9d56. Generated by Claude Code |
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. The independent 64-bit scalar bitwise cleanup is left to ProjectLeonida#1450. AI-assisted (Claude Code).
37bcfbe to
2c96ab6
Compare
|
@kawaii-shakal — took the first option and dropped the 64-bit scalar row from this PR, leaving that independent cleanup to #1450. Rebased onto All 61 tests in |
|
CI has settled on |
aegish-zagi
left a comment
There was a problem hiding this comment.
Independent review (Linux, Python 3.12.3, AI-assisted) of head 2c96ab6, merged with current main adfb382 (git merge-tree --write-tree rc=0):
- The diff is exactly one line in
docs/design.md: only thes_bfe_u32/s_bfe_i32past-bit-31 row changes. I read the old and new rows side by side — every measured claim survives exactly once: gfx1150 (4,000 random control words), gfx1201/RDNA4 (10,000 programs, seed 500), RDNA2 gfx1035 (500/500 plusint_hw_probewave32/64, SHADER-137), RDNA2 gfx1036 (6,000 of 6,000 across seeds 1–3 plus seed 4, 2,000 of 2,000), thebfe_widthtranslator note, and the LLVMconstantFoldBFEcomparison. - What is dropped is only repetition (the duplicated Source sentences) and the stale closing
**RDNA2 is not measured**, which contradicted the RDNA2 measurements in the same row. - The overlapping 64-bit scalar row is byte-identical to main, as the PR body says — its cleanup stays with #1450.
- Tests on the merged state:
tests/test_design_contract_rows.py5 OK, everytests/test_docs_*.pyfile OK,git diff --checkclean,scripts/check_no_game_data.py docs/design.mdclean. No hardware claims re-measured (docs-only, none added).
No blockers from this review.
|
#2490 | head 2c96ab6 (merged cleanly onto origin/main 829530d) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yes Independent Verification (Windows 11)
|
timbot103
left a comment
There was a problem hiding this comment.
Reviewed 2c96ab605 and found no issues. The 15,445-byte diff contains a single line replacement at docs/design.md:497. Six long context lines account for 11,989 bytes of document text in the diff, which also shows the full old and new versions of the edited row. The reconstructed document matches the patch's postimage blob ID. The full old hunk matches the corresponding lines in the supplied main snapshot, and the separate 64-bit scalar bitwise row is byte-identical across the PR base, patch postimage, and supplied main.
The row retains the gfx1150, gfx1201, gfx1035, and gfx1036 measurements, the bfe_width note, and the LLVM constantFoldBFE comparison. The edit removes the repeated source text and the stale closing sentence that contradicted the RDNA2 measurements. In tools/rdna2spirv.py, both constant and runtime controls use a five-bit offset and seven-bit width capped at 32 - offset. The signed example extracts four bits and sign-extends 0xd to 0xfffffffd, with SCC set because the result is nonzero.
I inspected tests/test_docs_design_rows.py and tests/test_docs_table_rows.py. The replacement keeps the same topic and two-cell shape, stays in the same contiguous table, and introduces no duplicate row. Static audit only. I ran no tests, builds, or GPU probes.
AI-assisted.
Claimed in the coordination issue as: DOCS-DESIGN-DUPLICATED-ROWS (#1608 (comment)), from kawaii-shakal's finding (#1608#issuecomment-7225444802)
What and why
The
s_bfe_u32/s_bfe_i32past bit 31 contract-table row indocs/design.mdcame out of an old merge with its 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 LLVMconstantFoldBFEcomparison stays.Only this row changes. As requested in review, the overlapping
64-bit scalar bitwise opsrow is byte-identical tomainand its independent cleanup is left to #1450. No measurement is added or changed, and every measured claim in thes_bferow is kept once.Tested
Docs only. All 61 tests in
tests/test_docs_*.pyandtests/test_design_contract_rows.pypass on the rebased head.scripts/check_no_game_data.py docs/design.mdandgit diff --checkare clean. The hardware claims were not re-measured.GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.