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

Manually merged
github merged 1 commit from github-bot/gh-3339 into main 2026-11-28 19:35:06 +00:00 AGit
Owner

@⁠romn4rch on GitHub · 2026-11-28 11:18 UTC · original
romn4rch:issue-3303-admit-lowered-sdwa-profiles → main · +349 −3 · 5 files · 1 commits · merged 2026-11-28 19:30 UTC

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.
**@⁠romn4rch** on GitHub · 2026-11-28 11:18 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3339) `romn4rch:issue-3303-admit-lowered-sdwa-profiles` → `main` · +349 −3 · 5 files · 1 commits · merged 2026-11-28 19:30 UTC ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 11:26:55 +00:00
github manually merged commit 01232666ca into main 2026-11-28 19:35:06 +00:00
github-bot changed target branch from main to gh-pr/3339/base 2026-11-28 19:35:06 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-11-28 19:30 UTC · original · approved these changes

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.

**@⁠Leyukaka** on GitHub · 2026-11-28 19:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3339#pullrequestreview-6099759368) · **approved these changes** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.