Skip to content

docs/design.md: drop older copies that a newer sentence in the same row extends word for word (OLD-9934) - #1224

Open
wetw0rks-c0ding wants to merge 3 commits into
ProjectLeonida:mainfrom
wetw0rks-c0ding:old-pr/9934
Open

wetw0rks-c0ding wants to merge 3 commits into
ProjectLeonida:mainfrom
wetw0rks-c0ding:old-pr/9934

Conversation

@wetw0rks-c0ding

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: OLD-9934

What and why

Several docs/design.md contract rows repeat a measurement sentence word for word under two different hardware citations. The duplicate copies are removed so each row states its confirmation once, and the newer sentence's wording wins.

Tested

  • python3 -m pytest tests/test_docs_repeated_lines.py tests/test_docs_table_rows.py -q -> 4 passed in 0.19s (exit 0)
  • python -I scripts/check_no_game_data.py docs/design.md -> clean (exit 0)
  • Environment: Linux (CachyOS), CPU-only tests, no GPU required

AI-assisted: Yes. This work was done with OpenCode agents.

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 24, 2026
@github-actions github-actions Bot added needs rebase Conflicts with the base branch: rebase it on main and removed needs rebase Conflicts with the base branch: rebase it on main labels Nov 25, 2026
@PierreEbele

Copy link
Copy Markdown
Contributor

Reviewed 03f7fa0: docs-only cleanup of 8 docs/design.md rows. The Integer clamp removal is verified against the translator (test_alu_add_co_clamp.py 4 OK, test_alu_u16_clamp.py 3 OK, test_alu_add_nc_clamp.py 24 OK, and v_add_co_u32 ... clamp saturates 0xffffffff+1 to 0xffffffff with carry=1), and the removals in Floating-point operations, Scalar select and pack, v_min3_f16..., and Swizzled buffer addressing preserve the kept text cleanly. Three issues to fix before merging:

  1. Other additions row: removing . GPU-checked with runtime/test/shaders/ps_gather_wrap.asm (...) on AMD (Radeon 880M, wave64) and NVIDIA RTX 5070 deletes the verb GPU-checked (leaving ...so they were not guessed; the border modes with runtime/test/shaders/ps_gather_border.asm ...) and drops distinct modes 0–3 GPU coverage on Radeon 880M / RTX 5070 that ps_gather_border.asm (modes 6–7 on RTX 4070 SUPER) does not cover. Restore that sentence; if you meant to dedupe this row, the actual word-for-word duplicate is the repeated opening image_gather4_l(_o) sentence.
  2. Buffer format stores row: dropping only the first sentence leaves Native gfx1036 confirmed both channel orders at all four instruction widths for packed and ordinary stores in wave32 and wave64. dangling after the NaN-sweep sentence with no antecedent while still repeated verbatim later in the row — drop that orphaned sentence too. (In Output modifiers on hardware (gfx1150), dropping the first denorm_mode_32 = 0 sentence also leaves too in `v_fma_mix*` f32 operands read as zero when denormal too without its prior antecedent.)
  3. Rebase needed: docs/design.md conflicts with main around Buffer format stores and Other additions (adjacent rows changed on main; all 8 target rows still need cleanup on main).
    AI-assisted review.

Recommendation: Fix first

@kawaii-shakal

Copy link
Copy Markdown
Contributor

Checked against main 43a9d56: merges cleanly (also with #1450 and #665). In the 8 changed rows each dropped sentence has a longer copy kept in the same row (e.g. Integer clamp keeps the test_alu_u16_clamp.py sentence that adds the RDNA2 hardware check; Output modifiers keeps the denorm_mode_32 sentence with the NaN results). Doc tests pass with the three merged.

AI-assisted (Claude Code); I ran the checks and read the diff.


Generated by Claude Code

@aslan2142 aslan2142 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.

The deduplication cleanup across docs/design.md (and the fixes on head 71395a81 for Other additions and Buffer format stores) looks solid, but requesting changes for merge readiness:

  1. Merge conflict: docs/design.md currently conflicts with main.
  2. No CI runs: No CI checks have run on head 71395a81.

Please rebase onto current main and ensure change-scope and no-game-data pass cleanly.

(AI-assisted review.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants