Tests on Windows 10: the test programs export the Agility SDK's symbols too (#74) #77

Closed
github-bot wants to merge 0 commits from github-bot/gh-77 into main AGit
Owner

@⁠Hasusmogus on GitHub · 2026-11-27 08:41 UTC · original
Hasusmogus:fix-74-test-agility → main · +204 −0 · 13 files · 4 commits · closed without merging

Fixes #74. Builds on #73 (the Agility SDK exports for victory.exe); the first commit here is #73's.

On Windows 10 the shader and GPU tests found no shader model 6.6 device, only WARP: Windows 10's own D3D12 has none, and only victory.exe tells the runtime about the Agility SDK.

  • With a new agility-sdk feature of victory-shader and victory-gpu (opt-in, as in #73: without the DLL beside them D3D12 does not start, 0x887E0003), their unit and integration test programs export D3D12SDKVersion and D3D12SDKPath too (src/agility_tests.rs, #[cfg(all(test, windows))]; the integration tests include it as a #[path] module). The linker is told by a .drectve directive in the object, as dllexport does it, so no build-script link flag reaches the crates' other programs (rustc-link-arg-tests is refused for a package without integration tests).
  • scripts/get-agility-sdk.ps1 also puts D3D12Core.dll in target\debug\deps\D3D12\, beside the test programs. The README says so, and that it needs running again after the first cargo test builds them.

Checked

  • llvm-readobj --coff-exports: without the feature the test programs export nothing; with it the victory_shader and victory_gpu unit-test programs and the replay and replay_big integration tests (diagnostics build) export both symbols.
  • The shader tests' valu_tests (34) still pass on an RTX A3000 through vkd3d-proton with the exports in place.
  • cargo clippy --workspace --all-targets [--all-features] -- -D warnings clean; asset policy passes.
  • Not run on Windows 10 here: the reporter of #74 is the one to try scripts\get-agility-sdk.ps1 and then the three commands in the README's Windows 10 section.

🤖 Generated with Claude Code

**@⁠Hasusmogus** on GitHub · 2026-11-27 08:41 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/77) `Hasusmogus:fix-74-test-agility` → `main` · +204 −0 · 13 files · 4 commits · closed without merging Fixes #74. **Builds on #73** (the Agility SDK exports for `victory.exe`); the first commit here is #73's. On Windows 10 the shader and GPU tests found no shader model 6.6 device, only WARP: Windows 10's own D3D12 has none, and only `victory.exe` tells the runtime about the Agility SDK. - With a new `agility-sdk` feature of `victory-shader` and `victory-gpu` (opt-in, as in #73: without the DLL beside them D3D12 does not start, `0x887E0003`), their unit and integration test programs export `D3D12SDKVersion` and `D3D12SDKPath` too (`src/agility_tests.rs`, `#[cfg(all(test, windows))]`; the integration tests include it as a `#[path]` module). The linker is told by a `.drectve` directive in the object, as `dllexport` does it, so no build-script link flag reaches the crates' other programs (`rustc-link-arg-tests` is refused for a package without integration tests). - `scripts/get-agility-sdk.ps1` also puts `D3D12Core.dll` in `target\debug\deps\D3D12\`, beside the test programs. The README says so, and that it needs running again after the first `cargo test` builds them. ## Checked - `llvm-readobj --coff-exports`: without the feature the test programs export nothing; with it the `victory_shader` and `victory_gpu` unit-test programs and the `replay` and `replay_big` integration tests (diagnostics build) export both symbols. - The shader tests' `valu_tests` (34) still pass on an RTX A3000 through vkd3d-proton with the exports in place. - `cargo clippy --workspace --all-targets [--all-features] -- -D warnings` clean; asset policy passes. - Not run on Windows 10 here: the reporter of #74 is the one to try `scripts\get-agility-sdk.ps1` and then the three commands in the README's Windows 10 section. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Windows 10's own D3D12 has no shader model 6.6 bindless heaps: root
signatures with CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED failed with E_INVALIDARG.
victory.exe now exports the Agility SDK's two symbols (version 619, path
.\\D3D12\\; build.rs has the linker export them), and
scripts/get-agility-sdk.ps1 puts D3D12Core.dll 1.619.6 from NuGet there.
Without the DLL, or where the system's is newer, the runtime uses its
own, as before. The DLLs are fetched, never committed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shader and GPU tests found no shader model 6.6 device on Windows 10
(only WARP): its own D3D12 has none, and only victory.exe told the runtime
of the Agility SDK (#69). The unit and integration test programs of
victory-shader and victory-gpu now export D3D12SDKVersion and
D3D12SDKPath too (agility_tests.rs; the linker is told by a .drectve
directive in the object, so no build script flag reaches other programs),
and scripts/get-agility-sdk.ps1 also puts D3D12Core.dll in
target\\debug\\deps\\D3D12.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 08:45:39 +00:00
With D3D12SDKVersion exported and no D3D12Core.dll in D3D12\\, D3D12 does
not fall back to the system's runtime: every call fails with
D3D12_ERROR_INVALID_REDIST (0x887E0003), as Windows CI's GPU tests did
with the same exports. So a default build exports nothing, as before,
and Windows 10 builds with --features agility-sdk and runs the script.
The exports are now told to the linker by a .drectve directive in the
module, and build.rs is gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
victory-shader and victory-gpu get an agility-sdk feature: their test
programs export D3D12SDKVersion/D3D12SDKPath only with it, for the same
reason as victory.exe (no DLL beside them: D3D12_ERROR_INVALID_REDIST,
which is what failed Windows CI). README: the Windows 10 test steps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠DoubleGhosty on GitHub · 2026-11-27 08:54 UTC · original

Note: exporting D3D12SDKVersion/D3D12SDKPath unconditionally in test binaries causes D3D12_ERROR_INVALID_REDIST (0x887E0003) on Windows CI when D3D12Core.dll is not present in D3D12\ (same issue fixed in PR #73). If gated behind --features agility-sdk (like #73), we can merge it!

**@⁠DoubleGhosty** on GitHub · 2026-11-27 08:54 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/77#issuecomment-7214050741) Note: exporting D3D12SDKVersion/D3D12SDKPath unconditionally in test binaries causes D3D12_ERROR_INVALID_REDIST (0x887E0003) on Windows CI when D3D12Core.dll is not present in D3D12\ (same issue fixed in PR #73). If gated behind --features agility-sdk (like #73), we can merge it!
github-bot closed this pull request 2026-11-27 09:01:55 +00:00
Author
Owner

@⁠DoubleGhosty on GitHub · 2026-11-27 09:01 UTC · original

Integrated into main as 14bff938, gated behind --features agility-sdk so default Windows builds/CI without D3D12Core.dll don't hit D3D12_ERROR_INVALID_REDIST. Thanks!

**@⁠DoubleGhosty** on GitHub · 2026-11-27 09:01 UTC · [original](https://github.com/DoubleGhosty/cool_fox/pull/77#issuecomment-7214185224) Integrated into main as 14bff938, gated behind --features agility-sdk so default Windows builds/CI without D3D12Core.dll don't hit D3D12_ERROR_INVALID_REDIST. Thanks!

Pull request closed

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