Tests on Windows 10: the test programs export the Agility SDK's symbols too (#74) #77
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DoubleGhosty--cool_fox!77
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-77"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Hasusmogus on GitHub · 2026-11-27 08:41 UTC · original
Hasusmogus:fix-74-test-agility→main· +204 −0 · 13 files · 4 commits · closed without mergingFixes #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.exetells the runtime about the Agility SDK.agility-sdkfeature ofvictory-shaderandvictory-gpu(opt-in, as in #73: without the DLL beside them D3D12 does not start,0x887E0003), their unit and integration test programs exportD3D12SDKVersionandD3D12SDKPathtoo (src/agility_tests.rs,#[cfg(all(test, windows))]; the integration tests include it as a#[path]module). The linker is told by a.drectvedirective in the object, asdllexportdoes it, so no build-script link flag reaches the crates' other programs (rustc-link-arg-testsis refused for a package without integration tests).scripts/get-agility-sdk.ps1also putsD3D12Core.dllintarget\debug\deps\D3D12\, beside the test programs. The README says so, and that it needs running again after the firstcargo testbuilds them.Checked
llvm-readobj --coff-exports: without the feature the test programs export nothing; with it thevictory_shaderandvictory_gpuunit-test programs and thereplayandreplay_bigintegration tests (diagnostics build) export both symbols.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 warningsclean; asset policy passes.scripts\get-agility-sdk.ps1and then the three commands in the README's Windows 10 section.🤖 Generated with Claude Code
@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 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!Pull request closed