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

Closed
abnalstlll-byte wants to merge 1 commit from upstream-pr/770 into main
abnalstlll-byte commented 2026-11-24 13:35:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:35:45Z.


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 \
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473178471 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/770). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:35:45Z. --- 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 \
KernelSmoker commented 2026-11-24 13:41:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T13:41:03Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6040221526 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/770#pullrequestreview-6040221526). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T13:41:03Z. **Review:** COMMENTED --- 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.
abnalstlll-byte commented 2026-11-25 21:48:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-25T21:48:24Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175562550 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/770#issuecomment-7175562550). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-25T21:48:24Z. --- 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).
MoonEyes commented 2026-11-28 18:00:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:00:58Z.


Hi @abnalstlll-byte, thanks for this pull request. It currently conflicts with main (conflicting file(s): docs/design.md), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243462818 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/770#issuecomment-7243462818). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T18:00:58Z. --- Hi @abnalstlll-byte, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `docs/design.md`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 11:35:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:35:12Z.

Review: CHANGES_REQUESTED


Conflicts with main in docs/design.md, and CI is failing on stale checks. Please rebase onto current main to resolve the docs/design.md conflict and trigger a fresh green CI pass.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6130412526 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/770#pullrequestreview-6130412526). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T11:35:12Z. **Review:** CHANGES_REQUESTED --- Conflicts with `main` in `docs/design.md`, and CI is failing on stale checks. Please rebase onto current `main` to resolve the `docs/design.md` conflict and trigger a fresh green CI pass. *(AI-assisted review.)*
aslan2142 commented 2026-12-01 16:31:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:31:55Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317761270 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/770#issuecomment-7317761270). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:31:55Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

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!770
No description provided.