Load the D3D12 Agility SDK runtime so Windows 10 gets shader model 6.6 #401

Closed
github-bot wants to merge 1 commit from gh-pr/401/head into gh-pr/401/base
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 00:25 UTC · original
HAL9000RELOADED:agility-sdk → main · +306 −3 · 14 files · 1 commits · closed without merging

Every translated shader is SM 6.6, but Windows 10's own D3D12 runtime reports 6.5 at most whatever the GPU supports, so on Windows 10 every pipeline was refused and the GPU tests failed with "no SM 6.6 device".

  • victory-shader agility: SDK_VERSION 620 (Microsoft.Direct3D.D3D12 1.620.2), the agility_exports! macro defining D3D12SDKVersion and D3D12SDKPath (".\D3D12"), and helpers naming the runtime loaded.
  • build.rs in apps/victory, victory-shader and victory-gpu pass /EXPORT:...,DATA (plus /NOIMPLIB /NOEXP) so the victory binary and the two GPU unit-test harnesses export the symbols the system loader reads.
  • cargo xtask agility downloads the package (BLAKE3 pinned) into the cache folder and copies D3D12Core.dll and d3d12SDKLayers.dll into target<profile>[\deps]\D3D12. Nothing from it enters the repository.
  • victory-gpu logs "host D3D12 runtime" (path, SDK or system, shader model) and warns below 6.6; Host::new's refusal names the runtime too.

Tried on Windows 10 22H2 (19045) with an RX 7900 XTX: SM 6.9 and mesh shader tier 1 with the SDK, 6.5 without. victory-shader's tests go from 188 passed / 22 failed to 210 passed on the card (WARP, which keeps the system runtime, still skips). The victory-loader unwind test that fails in release and in the full run is unrelated and unchanged.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 00:25 UTC · [original](https://github.com/fxceless/victory-fork/pull/401) `HAL9000RELOADED:agility-sdk` → `main` · +306 −3 · 14 files · 1 commits · closed without merging Every translated shader is SM 6.6, but Windows 10's own D3D12 runtime reports 6.5 at most whatever the GPU supports, so on Windows 10 every pipeline was refused and the GPU tests failed with "no SM 6.6 device". - victory-shader `agility`: SDK_VERSION 620 (Microsoft.Direct3D.D3D12 1.620.2), the `agility_exports!` macro defining D3D12SDKVersion and D3D12SDKPath (".\D3D12\"), and helpers naming the runtime loaded. - build.rs in apps/victory, victory-shader and victory-gpu pass /EXPORT:...,DATA (plus /NOIMPLIB /NOEXP) so the victory binary and the two GPU unit-test harnesses export the symbols the system loader reads. - `cargo xtask agility` downloads the package (BLAKE3 pinned) into the cache folder and copies D3D12Core.dll and d3d12SDKLayers.dll into target\<profile>[\deps]\D3D12\. Nothing from it enters the repository. - victory-gpu logs "host D3D12 runtime" (path, SDK or system, shader model) and warns below 6.6; Host::new's refusal names the runtime too. Tried on Windows 10 22H2 (19045) with an RX 7900 XTX: SM 6.9 and mesh shader tier 1 with the SDK, 6.5 without. victory-shader's tests go from 188 passed / 22 failed to 210 passed on the card (WARP, which keeps the system runtime, still skips). The victory-loader unwind test that fails in release and in the full run is unrelated and unchanged.
Every translated shader is SM 6.6, but Windows 10's own D3D12 runtime
reports 6.5 at most whatever the GPU supports, so on Windows 10 every
pipeline was refused and the GPU tests failed with "no SM 6.6 device".

- victory-shader `agility`: SDK_VERSION 620 (Microsoft.Direct3D.D3D12
  1.620.2), the `agility_exports!` macro defining D3D12SDKVersion and
  D3D12SDKPath (".\D3D12\"), and helpers naming the runtime loaded.
- build.rs in apps/victory, victory-shader and victory-gpu pass
  /EXPORT:...,DATA (plus /NOIMPLIB /NOEXP) so the victory binary and the
  two GPU unit-test harnesses export the symbols the system loader reads.
- `cargo xtask agility` downloads the package (BLAKE3 pinned) into the
  cache folder and copies D3D12Core.dll and d3d12SDKLayers.dll into
  target\<profile>[\deps]\D3D12\. Nothing from it enters the repository.
- victory-gpu logs "host D3D12 runtime" (path, SDK or system, shader
  model) and warns below 6.6; Host::new's refusal names the runtime too.

Tried on Windows 10 22H2 (19045) with an RX 7900 XTX: SM 6.9 and mesh
shader tier 1 with the SDK, 6.5 without. victory-shader's tests go from
188 passed / 22 failed to 210 passed on the card (WARP, which keeps the
system runtime, still skips). The victory-loader unwind test that fails
in release and in the full run is unrelated and unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:38 +00:00
github-bot closed this pull request 2026-11-26 03:42:38 +00:00
Author
Owner

@⁠kaayzouee on GitHub · 2026-11-25 01:41 UTC · original

Is this a duplicate of #69?

Both enable shader model 6.6 on Windows 10 using the D3D12 Agility SDK. Please clarify any materially distinct functionality.

This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.

**@⁠kaayzouee** on GitHub · 2026-11-25 01:41 UTC · [original](https://github.com/fxceless/victory-fork/pull/401#issuecomment-7149842716) Is this a duplicate of #69? Both enable shader model 6.6 on Windows 10 using the D3D12 Agility SDK. Please clarify any materially distinct functionality. This is an automated message. If you believe it is incorrect, please reply with the relevant technical differences.
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 01:52 UTC · original

Yes, this duplicates #69. Sorry for the noise: it was opened without checking the open pull requests first. Closing it in favour of #69.

One correction to this PR's description and README, which said the in-box runtime is used when the folder is missing. That is wrong. With the two exports present and no D3D12\D3D12Core.dll beside the executable, D3D12CreateDevice fails with 0x887E0003 (D3D12_ERROR_INVALID_REDIST) on Windows 10 19045, so there is no device at all. Because this PR exported unconditionally from the victory-shader and victory-gpu test harnesses, anyone who had not run cargo xtask agility would have seen the GPU tests fail on hardware and WARP alike (checked: a test that passes with the runtime fails without it). #69's conditional export for the test harnesses avoids that. An AMD data point and two notes for #69 are in a comment there.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 01:52 UTC · [original](https://github.com/fxceless/victory-fork/pull/401#issuecomment-7150051510) Yes, this duplicates #69. Sorry for the noise: it was opened without checking the open pull requests first. Closing it in favour of #69. One correction to this PR's description and README, which said the in-box runtime is used when the folder is missing. That is wrong. With the two exports present and no `D3D12\D3D12Core.dll` beside the executable, `D3D12CreateDevice` fails with `0x887E0003` (`D3D12_ERROR_INVALID_REDIST`) on Windows 10 19045, so there is no device at all. Because this PR exported unconditionally from the victory-shader and victory-gpu test harnesses, anyone who had not run `cargo xtask agility` would have seen the GPU tests fail on hardware and WARP alike (checked: a test that passes with the runtime fails without it). #69's conditional export for the test harnesses avoids that. An AMD data point and two notes for #69 are in a comment there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.