GPU: opt-in Agility SDK runtime for victory.exe #2383
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2383
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@makmatvey on GitHub · 2026-11-25 12:22 UTC · original
makmatvey:cursor/gpu-agility-sdk-opt-in-ec56→main· +455 −1 · 7 files · 2 commits · openSummary
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
@Calvix2k on GitHub · 2026-11-25 12:25 UTC · original
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.
@makmatvey on GitHub · 2026-11-25 12:38 UTC · original
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.@Marvisak on GitHub · 2026-11-25 14:57 UTC · original · edited 2026-11-25 22:22 UTC
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
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.