Skip to content

docs/design.md: drop merge leftovers in two contract rows - #3145

Open
ray3242 wants to merge 2 commits into
ItsNotRexed:mainfrom
ray3242:devin/1795375558-design-merge-leftovers
Open

ray3242 wants to merge 2 commits into
ItsNotRexed:mainfrom
ray3242:devin/1795375558-design-merge-leftovers

Conversation

@ray3242

@ray3242 ray3242 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #3047 (comment)

What and why

ec8ec4c ("Fix what the round-40 merges broke") merged contract rows sentence by sentence, and two rows that no open PR touches still carry the older copy next to the newer one. This drops the older copy only:

  • Other additions: the old "a literal S# with a border mode (4-7) … is Unsupported" sentence, which contradicts the half-border/border-colour support described right after it, and the first of two ps_gather_wrap.asm GPU-check sentences (the kept one continues with the border-mode fixtures).
  • d16 and f16 format narrowing: the f32_to_f16_int → f16_bits folding sentence appeared twice, word for word.

A third row this PR first covered, buffer_atomic_{and,or,xor,swap}_x2, was fixed on main in dac28e6, so it has been dropped from this diff.

Deletions only; every number in each row is still there, and the table cell count is unchanged. Rows with the same kind of leftover that are already handled elsewhere are left alone: #3084, #2234, #2945/#3081, #2832, #2063.

Tested

Docs only, no GPU needed. python -m unittest tests/test_docs_design_rows.py passes; a script confirms each changed row now has no repeated 14-word run and keeps every numeric value. AI-assisted.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No new rule.)

…gn-merge-leftovers

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

# Conflicts:
#	docs/design.md
@kotorvr

kotorvr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Read 52aebe5 on Windows 11 (Python 3.13.7): pass

Character-level diff of the three rows against the merge base f847748: four contiguous deletions, nothing added, cell counts unchanged.

  • Other additions, first deletion (284 characters): "A literal S# with a border mode (4-7: half-border, border colour) or FORCE_UNNORMALIZED is Unsupported …". The row keeps the newer sentence, "A literal S# with a half-border mode (4, 5) or FORCE_UNNORMALIZED is Unsupported; … modes 4 and 5 act as clamp-to-edge there", and that is what the code does: tools/rdna2spirv.py:8976 raises for FORCE_UNNORMALIZED and :8979-8980 only for modes 4 and 5; modes 6 and 7 select the border colour (:8991, :9370). python -m pytest tests/test_translate.py -k "gather4_l and (border or unnormalized)": 25 passed.
  • Other additions, second deletion (231 characters): the first of two identical ps_gather_wrap.asm GPU-check sentences; the removed text is still present verbatim in the row.
  • d16 and f16 format narrowing (288 characters): the f32_to_f16_int → f16_bits sentence; it is still present verbatim once in the row, and agrees with tools/rdna2spirv.py:527.
  • buffer_atomic_{and,or,xor,swap}_x2 (297 characters): the older "a bitwise op or an exchange leaves the same memory …" pair. The kept text says a bitwise op leaves the same memory and an exchange can tear, and keeps the two-reads approximation.
  • test_docs_design_rows 2, test_docs_links 5, test_docs_list_items 2, test_docs_repo_paths 2, test_i18n_index 5, all OK; git diff --check clean.

Not checked: the exchange-tearing statement itself against a run (it is unchanged by this PR). AI-assisted check (Claude Code).

@kapitche

Copy link
Copy Markdown
Contributor

Read 52aebe5 against main f847748: accurate

Test merge into main is clean and the four tests/test_docs_*.py pass. The three rows lose only a stale first copy of text that main still repeats; I checked what stays against the code:

  • design.md:278: literal S# modes 4-5 (half-border) and FORCE_UNNORMALIZED are Unsupported, modes 6-7 give the border colour (tools/rdna2spirv.py:7694-7704, :7773-7823). The dropped sentence said 4-7 were all Unsupported.
  • design.md:356: f32_to_f16_int folded into f16_bits (rdna2spirv.py:437-469).
  • design.md:383: buffer_atomic_{and,or,xor,swap}_x2 is one 32-bit atomic per dword (rdna2spirv.py:1750); the kept text also has the exchange-tearing caveat.

dev-ewann pushed a commit to dev-ewann/Leonida that referenced this pull request Nov 22, 2026
…gn-merge-leftovers

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

# Conflicts:
#	docs/design.md
@ray3242 ray3242 changed the title docs/design.md: drop merge leftovers in three contract rows docs/design.md: drop merge leftovers in two contract rows Nov 22, 2026
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