tests/semantic: validate RDNA2 ds_bpermute_b32 backward permute semantics #770

Open
github-bot wants to merge 1 commit from github-bot/gh-770 into main AGit
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:35 UTC · original
abnalstlll-byte:feat/rdna2-ds-bpermute-wave64 → main · +424 −1 · 2 files · 1 commits · open

Comprehensive semantic test suite for RDNA2 \ds_bpermute_b32\ backward (gather) cross-lane permutes across wave32 and wave64.

Background and RDNA2 ISA Semantics (Section 10.4.4)

  • Lane \l\ reads \ Data\ of lane ((vAddr + offset) / 4) mod 32\ of its own 32-lane half.
  • Low 2 bits of address are ignored (>> 2\ byte addressing).
  • An active destination lane reading an inactive source lane (source lane off in \EXEC) reads \
**@⁠abnalstlll-byte** on GitHub · 2026-11-24 13:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/770) `abnalstlll-byte:feat/rdna2-ds-bpermute-wave64` → `main` · +424 −1 · 2 files · 1 commits · open Comprehensive semantic test suite for RDNA2 \ds_bpermute_b32\ backward (gather) cross-lane permutes across wave32 and wave64. ### Background and RDNA2 ISA Semantics (Section 10.4.4) - Lane \l\ reads \ Data\ of lane \((vAddr + offset) / 4) mod 32\ of its own 32-lane half. - Low 2 bits of address are ignored (\>> 2\ byte addressing). - An active destination lane reading an inactive source lane (source lane off in \EXEC\) reads \
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:20:29 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 13:41 UTC · original · reviewed

Independent CPU-only verification of PR head 9eaacb785962cdc48a12a4528fb5fc7e4593ac6b on base 2d73c242fddfe26d57b52ee150704e6c3b23cff4: python3 -I tests/semantic/test_ds_bpermute.py passed 14/14, and git diff --check passed. The suite exercises the translated shader through spirv_mini_interp with synthetic inputs, including active/inactive lanes, unaligned addresses, wave64 half isolation, and 32-wide subgroup emulation. No game data or GPU used. AI-assisted independent verification.

**@⁠KernelSmoker** on GitHub · 2026-11-24 13:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/770#pullrequestreview-6040221526) · **reviewed** Independent CPU-only verification of PR head `9eaacb785962cdc48a12a4528fb5fc7e4593ac6b` on base `2d73c242fddfe26d57b52ee150704e6c3b23cff4`: `python3 -I tests/semantic/test_ds_bpermute.py` passed 14/14, and `git diff --check` passed. The suite exercises the translated shader through `spirv_mini_interp` with synthetic inputs, including active/inactive lanes, unaligned addresses, wave64 half isolation, and 32-wide subgroup emulation. No game data or GPU used. AI-assisted independent verification.
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-25 21:48 UTC · original

Rebased onto latest \main.
Verified \python3 -I tests/semantic/test_ds_bpermute.py\ (14/14 passed in 1.1s), \scripts/check_no_game_data.py\ (clean), and \git diff --check.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠abnalstlll-byte** on GitHub · 2026-11-25 21:48 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/770#issuecomment-7175562550) Rebased onto latest \main\. Verified \python3 -I tests/semantic/test_ds_bpermute.py\ (14/14 passed in 1.1s), \scripts/check_no_game_data.py\ (clean), and \git diff --check\. AI-assisted (Claude Code, Claude Opus 5.5).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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