Skip to content

docs/design.md: one No-op SOPP/SMEM contract row again (SHADER-921) - #5254

Open
danosovsky wants to merge 2 commits into
ItsNotRexed:mainfrom
danosovsky:shader-921-noop-row
Open

danosovsky wants to merge 2 commits into
ItsNotRexed:mainfrom
danosovsky:shader-921-noop-row

Conversation

@danosovsky

Copy link
Copy Markdown

SHADER-921 (claim: #5156 (comment)), from @kormocicsaba's finding.

docs/design.md on main 3faac55 had three copies of the "No-op SOPP/SMEM" contract row, at lines 315, 317 and 318, after #2945's merge. This keeps line 318 and drops 315 and 317:

  • Line 318 lists 12 ops, and all of them are in NOOPS (tools/rdna2spirv.py:190). Line 315 lists 7 of those and line 317 lists 9.
  • I compared the rows sentence by sentence. Apart from the shorter op lists, 315 and 317 have nothing that isn't already in 318.

#5222 (still open) adds its GPU note to the 315 copy. Once this lands, that note belongs on the remaining row.

Docs only, no game files. Checked with python -I on Windows 11 (Python 3.14): tests/test_design_contract_rows.py, test_docs_design_rows.py, test_docs_table_rows.py, test_docs_table_ids.py, test_docs_links.py, test_docs_list_items.py, test_docs_repo_paths.py, test_docs_cli_flags.py, test_docs_env_vars.py, test_docs_python_deps.py and test_docs_pr_template.py all pass.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

The ItsNotRexed#2945 merge left three copies of the row (lines 315, 317 and 318 on
3faac55). Keep 318: it lists 12 of the ops, all in NOOPS in
tools/rdna2spirv.py. 315 lists 7 and 317 lists 9, and every other
sentence in both is already in 318, so nothing is lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SweatierKey

Copy link
Copy Markdown
Contributor

Independent CPU verification on Linux (Python 3.13.5, head 22ae54c0, base main 3faac557):

  • git diff --check main...HEAD — clean.
  • Verified against main: lines 315 (7 ops) and 317 (9 ops) are strictly subsumed sentence-for-sentence by the kept line 318 (now line 316, 12 ops), and all 12 listed mnemonics (s_icache_inv, s_ttracedata, s_ttracedata_imm, s_code_end, s_version, ds_nop, v_clrexcp, s_atc_probe, s_atc_probe_buffer, s_incperflevel, s_decperflevel, s_wakeup) are present in NOOPS in tools/rdna2spirv.py. Only 1 No-op SOPP/SMEM contract row remains.
  • Ran all doc-checker suites with python3 -I:
    • tests/test_design_contract_rows.py — 4/4 OK
    • tests/test_docs_table_rows.py — 2/2 OK
    • tests/test_docs_design_rows.py — 4/4 OK
    • tests/test_docs_cli_flags.py — 3/3 OK
    • tests/test_docs_env_vars.py, test_docs_links.py, test_docs_list_items.py, test_docs_pr_template.py, test_docs_python_deps.py, test_docs_repo_paths.py, test_docs_table_ids.py — all OK.

Looks clean and ready to merge.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 22ae54c (docs-only, 1 file, -2 lines).

Commands, all in review-5254 worktree:

  • python -I -m pytest tests/test_design_contract_rows.py tests/test_docs_design_rows.py tests/test_docs_table_rows.py tests/test_docs_table_ids.py tests/test_docs_links.py tests/test_docs_list_items.py tests/test_docs_repo_paths.py tests/test_docs_cli_flags.py tests/test_docs_env_vars.py test_docs_python_deps.py test_docs_pr_template.py -q -> 34 passed, 6 subtests passed.
  • git diff --check 3faac557b..HEAD -> clean.

Checked the claim independently: docs/design.md on 3faac557b has 3 | No-op SOPP/SMEM rows. After the patch one remains, byte-identical to main's 12-op row. Sentence-level diff of the two removed rows against it: the only unique text is each row's own header + first sentence with its shorter op list; every later sentence (v_clrexcp, atc probes, data-cache invalidations, source, test) is present in the kept row. All 12 ops named there (s_icache_inv, s_ttracedata, s_ttracedata_imm, s_code_end, s_version, ds_nop, v_clrexcp, s_atc_probe, s_atc_probe_buffer, s_incperflevel, s_decperflevel, s_wakeup) are in NOOPS (tools/rdna2spirv.py:190).

Verdict: merge.

Overlap: #5222 is open and edits exactly the 7-op copy this PR deletes (adds its GPU note there). It will conflict; that note belongs on the surviving row.

@King1565

Copy link
Copy Markdown

Read 22ae54c: pass with notes

Adding to @SweatierKey's read, the overlap with #5222:

AI-assisted (Claude Code).

Conflict in docs/design.md: main still has the three "No-op SOPP/SMEM"
rows (lines 321, 324 and 325 on 561b65a). Resolved to main's file minus
321 and 324; every sentence in those two is in the kept row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danosovsky

Copy link
Copy Markdown
Author

Merged main 561b65a8 to clear the conflict (c5dcaf1). main still had all three copies of the row, now at lines 321, 324 and 325. The PR is still two deleted lines: 321 and 324 go and the 12-op row stays. I compared them again, and every sentence of the two deleted rows is in the kept one. git diff --check is clean, and the 12 tests/test_docs_*.py and tests/test_design_contract_rows.py files pass (Windows 11, Python 3.14), including the new test_docs_repeated_lines.py.

AI-assisted (Claude Code).

@cynbun

cynbun commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Reviewed c5dcaf1 (claims checked against main 561b65a, docs tests on Linux, Python 3.14.8): pass

AI-assisted (Claude Code).

@kapitche

Copy link
Copy Markdown
Contributor

Tested c5dcaf1 merged with main 561b65a on Ubuntu (WSL2) / Python 3.12.16: pass

Docs-only, docs/design.md, two deleted lines. All 11 tests/test_docs_*.py pass on this head (and also on main, so the repeated-row duplication is not caught by them; negative control: not applicable). I checked the claim by script: main has 3 "No-op SOPP/SMEM" rows and the PR leaves 1. Each of the 2 removed rows is split into sentences (7 and 8); every sentence appears verbatim in the remaining 12-op row, and every op named in their headers is named in the kept row header. All 12 ops of the kept row appear in tools/rdna2spirv.py. No pipes are left unescaped in the kept row.

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.

6 participants