Repository navigation
GPU: load the Agility SDK through ID3D12SDKConfiguration1 (#749) - #969
mgunes1311-lab wants to merge 14 commits into
Conversation
|
Tested
So on this Windows 10 build, One consequence worth noting next to #175, #463, #362 and #486: because no exe exports are needed, test binaries get SM 6.6 from the environment variable alone. On this machine that made the Windows 10 test-binary work (#486, #362) unnecessary for these two crates. AI-assisted (Claude Code). |
|
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at f3457f8: Tested with AI assistance (Claude). |
|
Tested this branch (f3457f8) on a configuration that is not in the PR description:
Results:
So the I'll close #1518 as a duplicate of this one if the maintainer prefers this approach. AI-assisted (Claude Code). |
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into From the earlier needs-work note: the code read as sound, but it needs the maintainer's decision, since it loads and runs a user-chosen Generated by Claude Code |
|
Can confirm this works on my 4080S on windows 10 |
|
Windows 10 + AMD data point for
No Developer Mode, no exports on the test executables. |
Loads the DirectX 12 Agility SDK (
D3D12Core.dll) at runtime viaID3D12SDKConfiguration1::CreateDeviceFactorywithout exportingD3D12SDKVersionorD3D12SDKPathfromvictory.exe.Summary of Changes
crates/victory-shader/src/emit/agility.rs&mod.rs:D3D12Core.dllfromVICTORY_D3D12_AGILITY(if set) orD3D12\D3D12Core.dllbeside the executable, supporting a DLL path, directory, or unpacked NuGet package (build\native\bin\x64\D3D12Core.dll).D3D12SDKVersionfromD3D12Core.dll's PE export table (sdk_version) without loading or executing the DLL.ID3D12SDKConfiguration1and creates a process-wideID3D12DeviceFactory(Factory::load), configuringD3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE,ApplyToGlobalState,CLSID_D3D12Debug, andCLSID_D3D12DeviceRemovedExtendedData.serialize_versioned_root_signature, routing serialization throughID3D12DeviceConfiguration::SerializeVersionedRootSignaturewhen supported by the device so0xc01heap-indexing root signatures work on Windows 10 without touching an older in-boxd3d12.dllserializer.d3d12.dllwhen no Agility SDK is configured or loading fails. The shader test/host path uses the system runtime when no SDK is configured, but propagates an SDK loading error instead of falling back.VICTORY_D3D12_AGILITYdevice +0xc01root-signature test.crates/victory-shader/src/emit/host.rs: Usesagility::Factory::load()andagility::serialize_versioned_root_signature.crates/victory-gpu/Cargo.toml,src/host.rs,src/pipeline/host.rs: Enables thehostfeature onvictory-shaderfor Windows and wiresFactory(includingapply_global, debug layer, DRED, WARP/hardware device creation) andserialize_versioned_root_signatureinto the host GPU.README.md: Documents Windows 10 (22H2 with KB5029331 or newer) Agility SDK setup (D3D12\D3D12Core.dllorVICTORY_D3D12_AGILITY=<dir>).Verification
cargo test, Clippy,xtaskasset policy checks, and live GPU tests against Agility SDK v620.Closes #749