Skip to content

reprend #1906: wave64_emulate_opt: model s_bitset0/1_b32/b64 as read-modify-write and SCC-less (SHADER-W64-EMU-BITSET-RMW) - #2722

Merged
MoonEyes merged 3 commits into
ProjectLeonida:mainfrom
OreoFR:carry/pr-1906
Nov 30, 2026

Conversation

@OreoFR

@OreoFR OreoFR commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Carries #1906 by @JordanWebDev, because it conflicts with main after #2566 and the reminder to merge main (#1906 (comment)) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.

Item: SHADER-W64-EMU-BITSET-RMW-CARRY (claimed in #2570 (comment); original item SHADER-W64-EMU-BITSET-RMW).

What this branch is

What conflicted and how it was resolved

  • docs/design.md (wave64 emulation row): main's barrier text plus the PR's s_bitset sentence.

Tests

  • On this branch (main f9f3ec4c6 merged), Windows 11, Python 3.12, no GPU used: tests/semantic/test_wave64_emulate_opt.py: 35 OK; tests/test_design_contract_rows.py and tests/test_docs_design_rows.py: OK.
  • Earlier merge: green 35 OK; red: 1 failure; full semantic suite 529 files / 6526 tests (+1), same failures as main.
  • python -I scripts/check_no_game_data.py on every file this PR changes: clean.
  • CI on this PR covers the rest (C++ build and ctest, the full translator suite).

Depends on: none.

Needs an independent verifier before merge (red/green on another machine), as for any carry.

AI-assisted (Claude Code, oreofr-agent).

🤖 Generated with Claude Code

JordanWebDev and others added 3 commits November 25, 2026 09:21
docs/design.md: wave64 emulation row keeps main's barrier text and the PR's s_bitset sentence.

Co-authored-by: Jordan <44410206+JordanWebDev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Current main after ProjectLeonida#2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: Jordan <44410206+JordanWebDev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OreoFR

OreoFR commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest), main f9f3ec4, PR head c06660c. MEASURED, tests/semantic/test_wave64_emulate_opt.py :

  • red (main + only this PR's test file, pytest -x, so it stops at the first failure): 1 failed, 4 passed, 4 subtests passed in 0.23s
  • green (main + this PR, merge --no-ff): 35 passed, 38 subtests passed in 1.98s
  • Merges cleanly with main.

Not independent: this takeover and this check both belong to OreoFR (different agents, same owner). A verifier with another owner is still wanted before merge.

AI-assisted: Claude Code

@MoonEyes

Copy link
Copy Markdown
Collaborator

Verified by MoonEyes (another owner than OreoFR) on head c06660c31: Windows 11, Python 3.14, CPU only, without numpy.

  • Red/green on main 20fe0c754: tests/semantic/test_wave64_emulate_opt.py 35 OK; with tools/wave64_emulate_opt.py of main, 1 failure.
  • Corpus slice, tools/rdna2spirv.py with --wave64-emulate, shards 0, 12, 24 and 36 of 48 (2,209 shaders, about 9 % of the corpus), main 20fe0c754 against main + this pull request: the translated and spirv-val-valid counts are equal and the SPIR-V is identical byte for byte. So no regression there, and this slice holds no shader that shows the change. No GPU run.

AI-assisted (Claude Code).

@MoonEyes

Copy link
Copy Markdown
Collaborator

Merging. Head c06660c31 merges cleanly with main 5399c667e and does not force a rebase of #2566. Translated and spirv-val-valid counts equal and SPIR-V byte-identical on the slice in the verification comment; red/green on Windows 11 by another owner. Merged by MoonEyes.

AI-assisted (Claude Code).

@MoonEyes
MoonEyes merged commit be76908 into ProjectLeonida:main Nov 30, 2026
9 checks passed
@KelboLive

Copy link
Copy Markdown

Independent check on Windows (not the author), at c06660c31.

  • tests/semantic/test_wave64_emulate_opt.py: 35 tests passed.
  • Full translator suite: 549 files, 6,676 tests, 0 files failed in 564 s with -j 12 (run alongside another suite on the same machine).

Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711, Python 3.12.10, llvm-mc 21.1.8.

This is a second independent pass beyond MoonEyes' red/green and byte-identical SPIR-V check. Based on f9f3ec4c6; a rebase on current main before merge would keep history linear.

AI-assisted: yes (opencode).

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.

4 participants