Skip to content

Docs: remove duplicate No-op SOPP/SMEM contract rows (SHADER-921) - #5260

Draft
x2Tweek wants to merge 1 commit into
ItsNotRexed:mainfrom
x2Tweek:fix/shader-921-duplicate-noop-rows
Draft

x2Tweek wants to merge 1 commit into
ItsNotRexed:mainfrom
x2Tweek:fix/shader-921-duplicate-noop-rows

Conversation

@x2Tweek

@x2Tweek x2Tweek commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Docs: remove duplicate No-op SOPP/SMEM contract rows (SHADER-921)

docs/design.md had three identical-but-growing "No-op SOPP/SMEM" contract
rows after #2945's merge regressed duplicates (#5222 added a GPU note to
the line 315 copy). Keep the superset row (s_incperflevel, s_decperflevel,
s_wakeup included) that matches tools/rdna2spirv.py NOOPS set at line 193,
and drop the two shorter copies.

Changes:

  • Removed the line 315 copy (no s_atc_probe/s_atc_probe_buffer/s_incperflevel/s_decperflevel/s_wakeup)
  • Removed the line 317 copy (has s_atc_probe/s_atc_probe_buffer but no s_incperflevel/s_decperflevel/s_wakeup)
  • Kept the line 318 row, matching tools/rdna2spirv.py NOOPS

Coordinated as SHADER-921 in issue #5156. Docs only; no game files; S size.

Tests: tests/semantic/test_sopp_noops.py passes (3/3), confirming the remaining row matches the translator's NOOPS handling (values, SCC and VCC survive; data-cache invalidations still rejected).

AI-assisted. Tested: CPU translator unit tests only (no GPU, no game data).

🤖 Generated with Claude Code

docs/design.md had three identical-but-growing 'No-op SOPP/SMEM' contract
rows (lines 315, 317, 318) after ItsNotRexed#2945's merge regressed duplicates.
Keep line 318 (the superset matching tools/rdna2spirv.py NOOPS set at
line 193: s_incperflevel, s_decperflevel, s_wakeup included) and drop
the shorter copies at 315 and 317.

Docs only; no game files; S size. No GPU needed.

Tests: tests/semantic/test_sopp_noops.py passes (3/3), confirming the
remaining row matches the translator's NOOPS handling.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@shdann

shdann commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

AI-assisted. Tested ffaf257 on Windows 11, CPU only. All seven tests pass.

py -3.14 -I tests/semantic/test_sopp_noops.py passes all three tests. The tests check the 12 listed instructions and the four data-cache instructions.
py -3.14 -I tests/test_design_contract_rows.py passes all four tests.

git grep -c -F '| No-op SOPP/SMEM (' HEAD HEAD^ -- docs/design.md gives one row on this head and three on its parent.

#5254 makes the same change. Both heads have the same Git blob for docs/design.md (abce77a2491693194e4c1ee8d1cca3cca8f4ed0c).

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

Head ffaf257 (SHADER-921). Docs-only delete of the two shorter No-op SOPP/SMEM rows; the kept row lists all 12 ops, which match NOOPS in tools/rdna2spirv.py:190-193.

Commands and results:

python -I -m pytest tests/semantic/test_sopp_noops.py -q   # 3 passed, 16 subtests passed
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_links.py -q   # 16 passed
git diff --check                                            # clean

Overlap with #5254: git merge-tree --write-tree --name-only refs/remotes/pr/5254 refs/remotes/pr/5260 exits 0 with no conflicted file names, and the two patches have the same git patch-id (8c43470c5e52…), i.e. identical deletions, so they cannot textually conflict. #5254 is the earlier claim: createdAt 2026-11-23T09:52:31Z vs #5260 09:56:28Z. This is a duplicate of #5254; land one and close the other (also note #5222's GPU note sits on the row this PR deletes).

Verdict: content correct, tests pass; blocked only on the duplicate decision.

@abnalstlll-byte abnalstlll-byte 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.

Verified line-by-line that both removed No-op SOPP/SMEM rows (7-op and 9-op subsets) are strict subsets of the retained 12-op row (s_icache_inv through s_wakeup) with zero lost details. Tested locally: tests/test_docs_design_rows.py 4/4 passed, git diff --check clean. No game files. AI-assisted review (Gemini).

@skorex

skorex commented Nov 23, 2026

Copy link
Copy Markdown

Duplicate of #5254

#5254 makes the same change and was opened earlier. Topic: SHADER-921 docs: one No-op SOPP/SMEM contract row.

Suggest closing this PR in favour of #5254, and porting anything this one adds that #5254 lacks there.

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.

5 participants