docs: salu_diff generates 99 opcodes by default; v_pack_b32_f16 abs is implemented (fixes #5519, fixes #5517) #159

Open
github-bot wants to merge 2 commits from github-bot/gh-159 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:31 UTC · original
ubiquitarianism:old-pr/9891 → main · +7 −6 · 2 files · 2 commits · draft

Carried over from old PR 9891 by AlejoReyna in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9891, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
AlejoReyna: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Fixes #5519, fixes #5517. Docs only; no game data.

  • docs/shader_validation.md: tools/salu_diff.py is described as a reference for 87 opcodes. At current main OPS has 112 entries, 13 of them in LANE_MASK_OPS, so the default run generates 99 (checked: len(OPS), len(LANE_MASK_OPS), len(set(OPS)-set(LANE_MASK_OPS)) -> 112 13 99). The sentence now says 99 by default, 112 in OPS (--list-ops).
  • docs/design.md row v_pack_b32_f16 input neg: said abs is still refused as unmeasured. The translator applies abs (clear bit 15 of the selected half, before neg) in tools/rdna2spirv.py, it is measured on gfx1036 (1,088 raw kernels, 0 mismatches; SHADER-260), and the neighbouring v_pack_b32_f16 source modifiers row already says so. The row now agrees with it.

Earlier PRs for these two issues (#5546, #5574, #7978 and others) were closed unmerged; none is open now and neither item was claimed in #9677.

Verification

  • python3 -I scripts/check_no_game_data.py: pass
  • python3 -I tests/test_text_write_line_endings.py: pass
  • opcode counts above checked on current main

AI-assisted: yes (Claude). Tested on macOS, CPU only, no GPU.

**@⁠Andretuta** on GitHub · 2026-11-24 02:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/159) `ubiquitarianism:old-pr/9891` → `main` · +7 −6 · 2 files · 2 commits · draft > Carried over from **old PR 9891** by `AlejoReyna` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9891`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `AlejoReyna`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Fixes `#5519`, fixes `#5517`. Docs only; no game data. - `docs/shader_validation.md`: `tools/salu_diff.py` is described as a reference for 87 opcodes. At current main `OPS` has 112 entries, 13 of them in `LANE_MASK_OPS`, so the default run generates 99 (checked: `len(OPS), len(LANE_MASK_OPS), len(set(OPS)-set(LANE_MASK_OPS))` -> `112 13 99`). The sentence now says 99 by default, 112 in `OPS` (`--list-ops`). - `docs/design.md` row `v_pack_b32_f16` input `neg`: said `abs` is still refused as unmeasured. The translator applies `abs` (clear bit 15 of the selected half, before `neg`) in `tools/rdna2spirv.py`, it is measured on gfx1036 (1,088 raw kernels, 0 mismatches; SHADER-260), and the neighbouring `v_pack_b32_f16` source modifiers row already says so. The row now agrees with it. Earlier PRs for these two issues (`#5546`, `#5574`, `#7978` and others) were closed unmerged; none is open now and neither item was claimed in `#9677`. ### Verification - `python3 -I scripts/check_no_game_data.py`: pass - `python3 -I tests/test_text_write_line_endings.py`: pass - opcode counts above checked on current main AI-assisted: yes (Claude). Tested on macOS, CPU only, no GPU.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:46:51 +00:00
This pull request has changes conflicting with the target branch.
  • docs/shader_validation.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/159/head:github-bot/gh-159'
git switch 'github-bot/gh-159'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-159'
git switch 'github-bot/gh-159'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-159'
git switch 'github-bot/gh-159'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-159'
git switch 'main'
git merge --squash 'github-bot/gh-159'
git switch 'main'
git merge --ff-only 'github-bot/gh-159'
git switch 'main'
git merge 'github-bot/gh-159'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.