shader: admit remaining lowered VOP1/VOP2 SDWA profiles #3339

Merged
romn4rch merged 1 commit from upstream-pr/3339 into main 2026-11-28 19:30:04 +00:00
romn4rch commented 2026-11-28 11:18:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-28T11:18:39Z.


Change

Admit exactly the nine integer/bit and three floating-point SDWA profiles already lowered for direct compute, while preserving graphics SDWA refusals. Fixes #3303.

Verification

  • ctest --preset dev --no-tests=error -R '^native_sdwa_profiles_(ir|dxil|hardware)$' -V -j 1 — passed, 3/3 tests.
  • IR: 12 profiles admitted; three malformed/unsupported controls and all graphics profiles refused.
  • DXIL: 12 profiles compiled; three invalid/unsupported controls rejected.
  • Hardware: all 12 results and guard words matched on NVIDIA GeForce RTX 3050 6GB Laptop GPU, driver 32.0.16.2140 (D3D12); no capability skip.
  • git diff --check — passed.

Evidence and follow-up

The fixture generates synthetic SDWA instruction encodings using existing repository test helpers; no external samples or third-party assets are included. The experiment note records the scope and reproduction command: docs/experiments/native-sdwa-lowered-vop1-vop2.md. Hardware evidence is limited to this adapter and fixture.

AI-assisted change.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5539568319 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3339). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-28T11:18:39Z. --- ## Change Admit exactly the nine integer/bit and three floating-point SDWA profiles already lowered for direct compute, while preserving graphics SDWA refusals. `Fixes #3303`. ## Verification - `ctest --preset dev --no-tests=error -R '^native_sdwa_profiles_(ir|dxil|hardware)$' -V -j 1` — passed, 3/3 tests. - IR: 12 profiles admitted; three malformed/unsupported controls and all graphics profiles refused. - DXIL: 12 profiles compiled; three invalid/unsupported controls rejected. - Hardware: all 12 results and guard words matched on NVIDIA GeForce RTX 3050 6GB Laptop GPU, driver 32.0.16.2140 (D3D12); no capability skip. - `git diff --check` — passed. ## Evidence and follow-up The fixture generates synthetic SDWA instruction encodings using existing repository test helpers; no external samples or third-party assets are included. The experiment note records the scope and reproduction command: `docs/experiments/native-sdwa-lowered-vop1-vop2.md`. Hardware evidence is limited to this adapter and fixture. AI-assisted change. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
Leyukaka commented 2026-11-28 19:30:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T19:30:01Z.

Review: APPROVED


GPU review of af399162.

  • Each of the 12 newly admitted ops applies the SDWA source selection (with sign extension on the integer ops) and destination placement; none ignores the selected word or byte.
  • Run here in Windows Sandbox, network off, vGPU, Windows 11 build 26300 host, release build of main f2972840 with this PR and 17 other open PRs merged locally: native_sdwa_profiles_ir, _dxil and _hardware pass, with the hardware leg running (no skip). Removing v_sin_f32 from the compute float profiles makes all three fail.

Not covered: sub-dword selects on mul_hi_*, sat_pk and sin; clamp/omod on the three float ops; sub_co_ci with carry-in 1 and its VCC carry-out.

Approve.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6099759368 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3339#pullrequestreview-6099759368). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T19:30:01Z. **Review:** APPROVED --- GPU review of `af399162`. - Each of the 12 newly admitted ops applies the SDWA source selection (with sign extension on the integer ops) and destination placement; none ignores the selected word or byte. - Run here in Windows Sandbox, network off, vGPU, Windows 11 build 26300 host, release build of `main` `f2972840` with this PR and 17 other open PRs merged locally: `native_sdwa_profiles_ir`, `_dxil` and `_hardware` pass, with the hardware leg running (no skip). Removing `v_sin_f32` from the compute float profiles makes all three fail. Not covered: sub-dword selects on `mul_hi_*`, `sat_pk` and `sin`; clamp/omod on the three float ops; `sub_co_ci` with carry-in 1 and its VCC carry-out. Approve.
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!3339
No description provided.