Windows 10: load the Agility SDK runtime from a D3D12 folder beside v… #3628
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!3628
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3628"
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?
@grosso1337 on GitHub · 2026-11-27 23:41 UTC · original
grosso1337:windows10-agility-sdk→main· +84 −0 · 5 files · 4 commits · open…ictory.exe
Windows 10's in-box Direct3D 12 runtime refuses root signatures with CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED (flags 0xc01), so every host pipeline is refused and the title crashes reading a null pipeline once it draws.
d3d12.dll loads an app-local D3D12Core.dll only when the executable exports D3D12SDKVersion and D3D12SDKPath. victory.exe now exports them (SDK 1.620, path .\D3D12); Rust does not export statics from a binary, so build.rs passes /EXPORT for both to the MSVC linker. Without the folder, d3d12.dll keeps the system runtime, so Windows 11 is unchanged.
Tested on Windows 10 22H2 (19045), RX 6800 XT: pipelines are created and the world is drawn.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:48 UTC · original
I built the exact
3a3d04fMSVC CLI andmain63bcca4on Windows 10 22H2 (19045.6456). The PR binary exports both SDK symbols. I ranvictory translate --cache --pipelinesagainst a generated pack containing one compute pipeline, with a fresh cache for each runtime setup.main, in-box D3D12 and WARP0x887E0003The last setup also got one library hit on a repeat. I launched it from a working directory separate from the executable. An additional cold control on
main, with the app-local DLLs in place, still made zero pipelines. This is the CLI counterpart to the synthetic signature and pipeline checks in #3618. Runtime matrix in #3618The issue to address before merge is the missing-folder case. With the two exports enabled, the tested Windows 10
D3D12CreateDevicepath fails with0x887E0003instead of creating the in-box device. Please consider keeping SDK selection optional, or document the SDK folder as required for the exported build. The README's Windows 11 fallback claim still needs a Windows 11 run. Microsoft's Agility diagnosticsAI-assisted with Codex.
@grosso1337 on GitHub · 2026-11-27 23:48 UTC · original
Tested this branch on Windows 10 22H2 (Ryzen 7 9800X3D, RX 6800 XT): without the D3D12 folder every pipeline is refused and the title crashes; with it, the title boots and plays up to the intro cutscene (at the expected ~1 fps).
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:57 UTC · original
Thanks for making the exports opt-in in
0ff8ece. I checked that head with the feature on and no SDK folder. The startup check also blocks commands that never create a D3D12 device.victory configexits 1, and the existingcensus_reports_unreadable_files_and_continues_scanningtest fails with the missing-SDK message.7d04554is a single commit on your exact head. It runs the check fortranslate --pipelinesandrun --execute, the commands that request the GPU path. The other commands keep their CPU-only behavior.On Windows 10 22H2 without the SDK folder, the patched opt-in build passes all 18 CLI tests.
configworks andtranslate --cachetranslates both generated shaders. Adding--pipelinesstill produces the installation message and exits 1. With Agility 1.620.2 and WARP 1.0.22 in place, it builds the synthetic pipeline and hits the library on the repeat. The default build exported neither SDK symbol and started the in-box WARP device. Strict CLI Clippy and the asset policy passed.Please keep the Git author on a cherry-pick or rebase. If folding the change into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>. AI-assisted with Codex.@grosso1337 on GitHub · 2026-11-28 00:07 UTC · original
Thanks! Took
7d04554as is (fast-forward, so your authorship is kept), plus a rustfmt-only commit on top (6cb0996). The startup check now runs only forrun --executeandtranslate --pipelines.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.