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

Merged
chadhyatt merged 2 commits from upstream-pr/2628 into main 2026-11-25 23:41:05 +00:00
chadhyatt commented 2026-11-25 23:34:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chadhyatt on 2026-11-25T23:34:04Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6615967649 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2628). Originally posted by [chadhyatt](https://github.com/chadhyatt) on 2026-11-25T23:34:04Z. --- 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.
upstream-sync closed this pull request 2026-11-26 00:01:04 +00:00
tedin7 commented 2026-11-26 00:01:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:36:46Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066494524 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2628#pullrequestreview-6066494524). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:36:46Z. **Review:** COMMENTED --- 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 commented 2026-11-26 00:01:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:40:54Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177900873 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2628#issuecomment-7177900873). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:40:54Z. --- 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.
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
R0Y00/Xbox2Windows!2620
No description provided.