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

Closed
Andretuta wants to merge 2 commits from upstream-pr/159 into main
Andretuta commented 2026-11-24 02:31:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:31:56Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464977919 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/159). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:31:56Z. --- > 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.
MoonEyes commented 2026-11-28 10:38:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T10:38:36Z.


Thanks for this change. Both commits of this PR are already in main with identical patches (be64e8c7a and b7fb698e5, merged via #30), so I am closing this one as already merged. If you think this is a mistake, please reopen.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238028168 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/159#issuecomment-7238028168). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T10:38:36Z. --- Thanks for this change. Both commits of this PR are already in main with identical patches (be64e8c7a and b7fb698e5, merged via #30), so I am closing this one as already merged. If you think this is a mistake, please reopen. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!159
No description provided.