Skip to content

docs/design.md: one copy of the Mesa llvmpipe out[5] sentence in the Float controls row (EGEN-DESIGN-FLOAT-DUP) - #6852

Merged
shayderrr merged 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/10-design-float-dup
Nov 23, 2026
Merged

shayderrr merged 1 commit into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/10-design-float-dup

Conversation

@evilclanker9000

Copy link
Copy Markdown
Contributor

The contract-table row Float controls (NaN, ±inf, −0) (SHADER-99) in docs/design.md carried the same 225-character sentence twice:

Mesa's llvmpipe, where the CI runs these tests, returns 0 for the 0 × inf NaN check (out[5]) with or without the mode, while its other NaN checks give 1 (#664), so out[5] isn't judged there (UNJUDGED_WORDS in check.py).

A merge of two branches that both rewrote the row kept both sides, and each copy was followed by a different f64 tail ("f64 has its own row below (SHADER-597)" and "f64 (SignedZeroInfNanPreserve 64) isn't declared yet"), so the row read as two versions of itself and a reader could not tell which copy is current. This keeps one copy of the sentence and both f64 facts.

Task: EGEN-DESIGN-FLOAT-DUP

Test

No GPU needed. The row is compared against upstream/main:

python -I -c "import subprocess; u=subprocess.run(['git','show','upstream/main:docs/design.md'],capture_output=True).stdout.decode('utf-8').split(chr(10))[357]; print('upstream copies:', u.count('Mesa')); a=open('docs/design.md',encoding='utf-8').read().split(chr(10))[357]; print('working tree copies:', a.count('Mesa'))"

Before the change (upstream/main on both sides): upstream copies: 2, working tree copies: 2.
After the change: upstream copies: 2, working tree copies: 1, with SHADER-597 and the undeclared f64 mode still named once each.

The docs checks that cover this table still pass:

python -I tests/test_docs_repeated_lines.py     Ran 2 tests in 0.067s  OK
python -I tests/test_docs_design_rows.py        Ran 4 tests in 0.037s  OK
python -I tests/test_design_contract_rows.py    Ran 4 tests in 0.002s  OK
python -I tests/test_docs_table_rows.py         Ran 2 tests in 0.039s  OK
python -I tests/test_docs_links.py              Ran 7 tests in 0.315s  OK

tests/test_docs_repeated_lines.py only compares neighbouring lines and tests/test_docs_table_rows.py whole rows, so a sentence repeated inside one table cell is what slipped through; the check above covers it for this row.

Notes

  • I kept the first copy in place and folded the two f64 tails into one sentence ("f64 has its own row below (SHADER-597); its SignedZeroInfNanPreserve 64 isn't declared yet") so no fact from either side is dropped. Every other claim in the row is untouched.
  • The topic d16 and f16 format narrowing (the row below) has the same kind of intra-cell duplication — the "Translator: pack d16 image sample/gather results with integer f32->f16 RTE #489's own narrower, f32_to_f16_int" sentence three times — but it is a bigger rewrite, so I left it out of this PR and posted it as a finding instead.
  • This row is the only one with this topic, so this is not one of the duplicate rows another PR cleans up in this table; it is duplicated text inside a single row.

AI-assisted.

…Float controls row

A merge kept both sides of the row: the same 225-character llvmpipe sentence twice, and each copy is followed by a different f64 tail (SHADER-597 and the undeclared f64 mode), so the row reads as two versions of itself. Keep one sentence and both f64 facts.

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

Summary

In docs/design.md, the Float controls (NaN, ±inf, ±0) (SHADER-99) contract row carried the same 225-character Mesa llvmpipe out[5] sentence twice, followed by two different f64 tails. This keeps one copy of the sentence and retains both f64 facts: that f64 has its own row (SHADER-597) and that SignedZeroInfNanPreserve 64 is not yet declared. Docs-only, one-line change.

Why merge

Removes a confusing merge artifact from the float-control contract table so readers can tell which f64 statement is current, with no behavior risk.

Verdict: Approve

@shayderrr

Copy link
Copy Markdown
Collaborator

Summary

In docs/design.md, the Float controls (NaN, ±inf, ±0) (SHADER-99) contract row carried the same 225-character Mesa llvmpipe out[5] sentence twice, followed by two different f64 tails. This keeps one copy of the sentence and retains both f64 facts: that f64 has its own row (SHADER-597) and that SignedZeroInfNanPreserve 64 is not yet declared. Docs-only, one-line change.

Why merge

Removes a confusing merge artifact from the float-control contract table so readers can tell which f64 statement is current, with no behavior risk.

Verdict: Approve

@shayderrr
shayderrr merged commit 399fa98 into ItsNotRexed:main Nov 23, 2026
0 of 2 checks passed
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