GPU: opt-in Agility SDK runtime for victory.exe #2381
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2383"
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?
Imported from Marvisak/VIctory. Originally posted by makmatvey on 2026-11-25T12:22:32Z.
Summary
Opts
victory.exeinto an app-local DirectX 12 Agility SDK runtime so Windows 10 can run builds that need a newer D3D12 feature level / SM 6.6 without relying on the OS-shipped runtime alone.Changes
xtask(agilitymodule) and victorybuild.rs/main.rsTest plan
D3D12Core.dllnext tovictory.exeand runs on Windows 10victory.exealone is still insufficient (as documented)Related: #84, #2360
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T12:31:10Z.
Review: APPROVED
Verified against
origin/main(940d32f):cargo xtask agility) andapps/victory/build.rsintegration build and pass allxtaskandvictorytests cleanly without affecting default builds when no app-localD3D12Core.dllis present.cargo test -p xtask: 8/8 passed (includingagility::tests::package_constants_agreeandsha256_of_known_bytes).cargo test -p victory: 12/12 passed.cargo clippy -p xtask -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 185 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T12:36:05Z.
Review: COMMENTED
Opt-in Agility SDK runtime: cargo xtask agility downloads Microsoft.Direct3D.D3D12 1.614.1 into target, build.rs exports D3D12SDKVersion/Path when D3D12Core.dll present (+382). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Legit mechanism for Windows 10 SM 6.6 support (#84); pairs with README #2360. Downloads an official Microsoft NuGet package — hash-pinning the package would harden the supply chain here.
DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1439Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T12:25:02Z.
Built and checked on the machine this is for: Windows 10 19045, MSVC 14.44.35207,
CARGO_TARGET_DIRseparate,cargo build --release -p victory,fa18d59.With
D3D12/D3D12Core.dllstaged (I used package 1.620.2, not 1.614.1, on purpose):With the folder removed and the crate rebuilt: no exports at all — so the build script really re-runs on the file's disappearance and a machine without the runtime keeps the in-box D3D12. Both test-plan boxes that do not need the title are ticked on Windows 10 here.
Two things worth keeping, and one to consider:
rustc-link-arg-binsis the right form. #486 needed.drectvebecausecargo:rustc-link-argapplies to every target of the package and/EXPORT:D3D12SDKVersion,DATAfails with LNK2001 in a target that does not link the object (guard_runs).-binsscopes it to the binaries, socargo build --benchesstays clean. With #486 for the test binaries and this for the app, both halves are covered.D3D12SDKPathas aconst char*static (yourSdkPathwrapper) is what the loader dereferences — an array would export its contents, not the pointer. Same shape as #486's.0x887e0003and the first device creation dies. Since the README's audience will happily copy whateverMicrosoft.Direct3D.D3D12version they already have, one line — "the stagedD3D12Core.dllmust be 1.614.1 or newer" — would save the next person that error. (Optional: acceptVICTORY_AGILITY_VERSIONinbuild.rsfor people who want to pin a newer announce.)check_runtimewarns but continues. A build made with the exports cannot start without the DLL —d3d12.dllfails the process at load. The warning is right, but its wording ("copy D3D12Core.dll … or rebuild") reads as advice for a soft problem; say that the process will exit and where the error will come from (0x887e0003), or exit right there with that message instead of letting the loader produce it.For the record, this is the piece Windows 10 users need that #2307 measures (0 → 26,641 pipelines) and that the guide in #1612 tracks; the same staging I used here is what let me validate today's shader work on the card.
Imported from Marvisak/VIctory. Originally posted by makmatvey on 2026-11-25T12:38:30Z.
Thanks @Calvix2k — addressed in
f40129a:D3D12Core.dll≥ 1.614.1 (older →0x887e0003).build.rsacceptsVICTORY_AGILITY_VERSIONto announce a newer SDK.check_runtimefails early with that HRESULT instead of a soft warning.Kept
rustc-link-arg-binsand theSdkPath/const char*export shape.DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1439Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T14:57:31Z.
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main(conflict inapps/victory/src/main.rs). It will be reviewed again once it is rebased.From the earlier needs-work note: it needs the maintainer's decision (new
build.rs, atempfiledependency, andcargo xtask agility, which downloads and runs external programs); #2460 and #2429 address the same problem.Generated by Claude Code
Pull request closed