shader: classify RDNA2 permlane operations as cross-lane #2628

Manually merged
github merged 2 commits from gh-pr/2628/head into gh-pr/2628/base 2026-11-27 01:08:55 +00:00
Owner

@⁠chadhyatt on GitHub · 2026-11-25 23:34 UTC · original
chadhyatt:backport/permlane-reporting → main · +67 −1 · 3 files · 2 commits · merged 2026-11-25 23:41 UTC

Refs #2125. Classify v_permlane16_b32 and v_permlanex16_b32 as lane-order-sensitive in unsupported shader reports while retaining ordinary VALU classification for v_perm_b32. The translator continues to refuse these forms. Authored decoder and dashboard controls cover both wave layouts.

Verification: Apple Silicon macOS, python -B tests/rdna2_tools_check.py TestRdna2Scanner passed 56 tests at 29514470f5, based on 66026a39; relevant source unchanged through d371ce46. No GPU or Windows execution.

AI-assisted backport patch from x2w-microlift.

**@⁠chadhyatt** on GitHub · 2026-11-25 23:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2628) `chadhyatt:backport/permlane-reporting` → `main` · +67 −1 · 3 files · 2 commits · merged 2026-11-25 23:41 UTC Refs #2125. Classify `v_permlane16_b32` and `v_permlanex16_b32` as lane-order-sensitive in unsupported shader reports while retaining ordinary VALU classification for `v_perm_b32`. The translator continues to refuse these forms. Authored decoder and dashboard controls cover both wave layouts. Verification: Apple Silicon macOS, `python -B tests/rdna2_tools_check.py TestRdna2Scanner` passed 56 tests at 29514470f5, based on 66026a39; relevant source unchanged through d371ce46. No GPU or Windows execution. AI-assisted backport patch from x2w-microlift.
- Preserve ordinary vector ALU classification and translator refusal.
- Exercise the authored encodings and dashboard categories.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:08:53 +00:00
github manually merged commit c2ac0b0b46 into gh-pr/2628/base 2026-11-27 01:08:55 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 23:36 UTC · original · reviewed

Review of head 29514470f5 (scan tooling only, no translator change; translator still refuses permlane forms).

Checked:

  • classify_isa_category / get_implementation_target / is_opcode_recognized change is small and consistent; the suffix regex is shared, so _e32/_e64/_sdwa/_dpp variants classify the same way. v_perm_b32 stays in ordinary VALU.
  • New test test_permlane_cross_lane_census_preserves_lowering_refusal covers both wave sizes, the decoder bytes, the translator rejection fields, and the dashboard totals. It is a fixture test; no GPU lowering is touched, so no WARP readback is needed.
  • No other open or merged PR covers this slice (#1322 only added the decoder).

Commands run (Linux, head checked out, 8 commits behind main):

  • python3 -B tests/rdna2_tools_check.py TestRdna2Scanner: 56 tests OK
  • python3 tests/docs_links_check.py: OK
  • python3 tests/bidi_controls_check.py: OK
  • git diff --check origin/main...HEAD: clean
  • Mutation 1 (drop v_permlanex16_b32 from the cross-lane set): 3 failures
  • Mutation 2 (category string changed to plain VALU): 4 failures, 1 error

No issues found.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 23:36 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2628#pullrequestreview-6066494524) · **reviewed** Review of head 29514470f5 (scan tooling only, no translator change; translator still refuses permlane forms). Checked: - `classify_isa_category` / `get_implementation_target` / `is_opcode_recognized` change is small and consistent; the suffix regex is shared, so `_e32/_e64/_sdwa/_dpp` variants classify the same way. `v_perm_b32` stays in ordinary VALU. - New test `test_permlane_cross_lane_census_preserves_lowering_refusal` covers both wave sizes, the decoder bytes, the translator rejection fields, and the dashboard totals. It is a fixture test; no GPU lowering is touched, so no WARP readback is needed. - No other open or merged PR covers this slice (#1322 only added the decoder). Commands run (Linux, head checked out, 8 commits behind main): - `python3 -B tests/rdna2_tools_check.py TestRdna2Scanner`: 56 tests OK - `python3 tests/docs_links_check.py`: OK - `python3 tests/bidi_controls_check.py`: OK - `git diff --check origin/main...HEAD`: clean - Mutation 1 (drop `v_permlanex16_b32` from the cross-lane set): 3 failures - Mutation 2 (category string changed to plain VALU): 4 failures, 1 error No issues found. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 23:40 UTC · original

Win2025 WARP receipt for head c2ac0b0b after updating with main.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit c2ac0b0b4699c7f78f02aab0533ffc6422b198eb:

  • Windows Python checks: tests/pso_readiness_check.py ok (0.8s), tests/rdna2_tools_check.py ok (2.1s), tests/startup_gfx2hlsl_fma_mix_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (5.0s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (3.7s), tests/startup_ngg_slice_check.py ok (0.2s)
  • sccache: 2/3 hits; wall 16.9s

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 23:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2628#issuecomment-7177900873) Win2025 WARP receipt for head c2ac0b0b after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `c2ac0b0b4699c7f78f02aab0533ffc6422b198eb`: - **Windows Python checks**: `tests/pso_readiness_check.py` ok (`0.8s`), `tests/rdna2_tools_check.py` ok (`2.1s`), `tests/startup_gfx2hlsl_fma_mix_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`5.0s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`3.7s`), `tests/startup_ngg_slice_check.py` ok (`0.2s`) - `sccache`: 2/3 hits; wall `16.9s` AI-assisted; commands listed were executed locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.