M1: native Shader Model 6 wave-ops GPU differential gate (WARP + hardware) #15

Open
opened 2026-11-26 21:01:03 +00:00 by github-bot · 1 comment
Owner

@⁠ProhorovIlja on GitHub · 2026-11-21 21:42 UTC · original

After source-built CPU wave64 oracle (PR #8) and real Windows D3D12 WARP SM5 compute/readback (PR #11), the next missing evidence is actual GPU execution of wave instructions.

Acceptance

  • Detect DXC / dxcompiler.dll availability from trusted Windows SDK, do not silently substitute D3DCompiler SM5
  • Build original HLSL SM6 WaveGetLaneCount, WaveReadLaneAt, WaveActiveSum, ballot tests with deterministic CPU reference
  • Query D3D12_FEATURE_D3D12_OPTIONS1.WaveOps and D3D12_FEATURE_SHADER_MODEL before dispatch; mark unsupported/skipped without claiming pass
  • Run on WARP where it supports SM6, then AMD (native 64 lanes), NVIDIA/Intel (typical 32 lanes) hardware when actually available; log driver/OS/adapter/lane sizes
  • Include sparse/inactive/non-uniform and partial last wave cases with well-defined semantics only; distinguish undefined HLSL lane reads from RDNA2 ds_bpermute fallback behavior
  • Use regular free public CI and/or user hardware, never paid GPU runners

Background: Leonida #94, Leonida PR #204, Xbox2Windows #145. No game-specific shader blobs.

2026-11-22 verified progress

  • PR #18: original SM6 HLSL WaveGetLaneCount, WaveGetLaneIndex, WaveReadLaneAt(lane0) and WaveActiveSum compiled by DXC and actually executed on desktop D3D12 WARP. Results checked against CPU reference; passed on public Windows runner (44953548531).
  • PR #19: optional hardware mode added with distinct DXGI enumeration and CPU differential. An initial Windows CI "hardware pass" actually used Microsoft vendor 0x1414, so this was correctly rejected as software/virtual; the amended test requires AMD 0x1002, NVIDIA 0x10DE or Intel 0x8086 and no software flag. Public runner subsequently SKIPPED the hardware test, while WARP passed (44954553642).
  • No verified real AMD/NVIDIA/Intel SM6 wave test, no RDNA2 native ISA execution, and no GTA VI binary testing yet.

Remaining: execute original test on real Windows hardware of each vendor with OS/driver/device IDs and saved logs; implement partial wave/ballot well-defined GPU fixtures; compare against RDNA2 opcode semantics separately.

**@⁠ProhorovIlja** on GitHub · 2026-11-21 21:42 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/15) After source-built CPU wave64 oracle (PR #8) and real Windows D3D12 WARP SM5 compute/readback (PR #11), the next missing evidence is **actual** GPU execution of wave instructions. ## Acceptance - [ ] Detect DXC / dxcompiler.dll availability from trusted Windows SDK, do not silently substitute D3DCompiler SM5 - [ ] Build original HLSL SM6 `WaveGetLaneCount`, `WaveReadLaneAt`, `WaveActiveSum`, ballot tests with deterministic CPU reference - [ ] Query `D3D12_FEATURE_D3D12_OPTIONS1.WaveOps` and `D3D12_FEATURE_SHADER_MODEL` before dispatch; mark unsupported/skipped without claiming pass - [ ] Run on WARP *where it supports SM6*, then AMD (native 64 lanes), NVIDIA/Intel (typical 32 lanes) hardware when actually available; log driver/OS/adapter/lane sizes - [ ] Include sparse/inactive/non-uniform and partial last wave cases with **well-defined semantics only**; distinguish undefined HLSL lane reads from RDNA2 `ds_bpermute` fallback behavior - [ ] Use regular free public CI and/or user hardware, never paid GPU runners Background: [Leonida #94](https://github.com/ItsNotRexed/Leonida/issues/94), [Leonida PR #204](https://github.com/ItsNotRexed/Leonida/pull/204), [Xbox2Windows #145](https://github.com/R0Y00/Xbox2Windows/issues/145). No game-specific shader blobs. ## 2026-11-22 verified progress - [PR #18](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/18): original SM6 HLSL `WaveGetLaneCount`, `WaveGetLaneIndex`, `WaveReadLaneAt(lane0)` and `WaveActiveSum` **compiled by DXC and actually executed on desktop D3D12 WARP**. Results checked against CPU reference; passed on public Windows runner ([44953548531](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44953548531)). - [PR #19](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/19): optional hardware mode added with distinct DXGI enumeration and CPU differential. An initial Windows CI "hardware pass" actually used Microsoft vendor `0x1414`, so this was correctly rejected as software/virtual; the amended test requires AMD `0x1002`, NVIDIA `0x10DE` or Intel `0x8086` and no software flag. Public runner subsequently **SKIPPED** the hardware test, while WARP passed ([44954553642](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44954553642)). - No verified real AMD/NVIDIA/Intel SM6 wave test, no RDNA2 native ISA execution, and no GTA VI binary testing yet. Remaining: execute original test on real Windows hardware of each vendor with OS/driver/device IDs and saved logs; implement partial wave/ballot well-defined GPU fixtures; compare against RDNA2 opcode semantics separately.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:01:03 +00:00
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-25 01:39 UTC · original

I can help test this on NVIDIA hardware. My current Linux machine has an entry-level GPU, and I’ve used it to verify Vulkan compute and raster readback. I also have a Windows PC at home with an RTX 4070 Ti SUPER.

I haven’t run the D3D12 Shader Model 6 wave-ops test yet. I can run it on the 4070 Ti SUPER and on WARP using the same commit, then post the driver version, the wave size reported by each adapter, and whether each run passed, failed, or was skipped. If I see a mismatch, I’ll include the expected and actual values so it’s easier to reproduce.

**@⁠Yoshi-233** on GitHub · 2026-11-25 01:39 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/15#issuecomment-7149812659) I can help test this on NVIDIA hardware. My current Linux machine has an entry-level GPU, and I’ve used it to verify Vulkan compute and raster readback. I also have a Windows PC at home with an RTX 4070 Ti SUPER. I haven’t run the D3D12 Shader Model 6 wave-ops test yet. I can run it on the 4070 Ti SUPER and on WARP using the same commit, then post the driver version, the wave size reported by each adapter, and whether each run passed, failed, or was skipped. If I see a mismatch, I’ll include the expected and actual values so it’s easier to reproduce.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/ProhorovIlja--NativeX-Runtime#15
No description provided.