Repository navigation
d3d12: build against every Windows SDK 10.0.26100 (BUILD-970) - #3653
Conversation
The README asks for "Windows SDK 10.0.26100 or newer", but the SDK's d3d12.h changed within 10.0.26100: 10.0.26100.6584 ships D3D12_SDK_VERSION 612, later builds 616. main used names from newer headers, so it stopped compiling on the older 10.0.26100 builds: - D3D12_FEATURE_D3D12_OPTIONS21 and its payload, with D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED and D3D12_EXECUTE_INDIRECT_TIER_1_0 (header 613); - D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT (613); - D3D12_FEATURE_D3D12_OPTIONS20 with D3D12_RECREATE_AT_TIER_NOT_SUPPORTED, and D3D12_FEATURE_PREDICATION (611). They join the two feature values d3d12_feature_compat.h already declares for the same reason: ABI values and payload structs in rt::d3d12::compat, used by the device and its test. Where the header has the real declarations, static_asserts check that the values, sizes and offsets agree. The runtime and every test now build against DirectX-Headers v1.610.2, v1.611.0 and v1.613.0's d3d12.h (put ahead of the SDK's) and against the SDK's own 616 header. Before this change, 611 failed with 18 errors and 610 with more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GN11jcpJWD4phrXJyDgED6
0xTehuti
left a comment
There was a problem hiding this comment.
Tested \61d8911c\ on Windows 11 Pro build 26100, MSVC 19.44 (VS 2022 Community), Windows SDK 10.0.26100, NVIDIA GeForce RTX 2070 SUPER (driver 595.79, Vulkan 1.4.329).
- Build: Clean Ninja build with CMake 4.4 and MSVC 19.44.
- Compatibility verification: Header compatibility wrappers in \d3d12_feature_compat.h\ and fallback checks in \d3d12_vulkan_device.cpp\ successfully build on Windows SDK 10.0.26100.
- Device test execution: \d3d12_vulkan_device_test.exe\ executed cleanly against physical GPU (195 queries, 60 resolves, 75 copy cases, depth24 clears, castable formats all matched host).
- CTest: \ctest -R d3d12_vulkan_device\ passed 1/1 (9.86s, exit 0).
Resolves BUILD-970 for Windows SDK 10.0.26100 builds. LGTM.
0xTehuti
left a comment
There was a problem hiding this comment.
Tested 61d8911c on Windows 11 Pro build 26100, MSVC 19.44 (VS 2022 Community), Windows SDK 10.0.26100, NVIDIA GeForce RTX 2070 SUPER (driver 595.79, Vulkan 1.4.329).
- Build: Clean Ninja build with CMake 4.4 and MSVC 19.44.
- Compatibility verification: Header compatibility wrappers in
d3d12_feature_compat.hand fallback checks ind3d12_vulkan_device.cppsuccessfully build on Windows SDK 10.0.26100. - Device test execution:
d3d12_vulkan_device_test.exeexecuted cleanly against physical GPU (195 queries, 60 resolves, 75 copy cases, depth24 clears, castable formats all matched host). - CTest:
ctest -R d3d12_vulkan_devicepassed 1/1 (9.86s, exit 0).
Resolves BUILD-970 for Windows SDK 10.0.26100 builds. LGTM.
|
Tested
AI-assisted (Gemini, Antigravity). |
|
Tested 61d8911 with MSVC against the older
So MSVC matches the clang-cl table. On the GPU (NVIDIA GeForce RTX 3070, driver 617.42), Not checked: the actual SDK 10.0.26100.6584 install (header 612). It lies between 611 and 613, which both build. No game files. AI-assisted (Claude). |
|
Tested 61d8911 on Windows 11 Pro (26200), RTX 5070, NVIDIA 621.24, MSVC 14.51 (VS 2026 Build Tools 18.10), Windows SDK 10.0.26100.8249 (
AI-assisted (Claude). |
Claimed in the coordination issue as: BUILD-970 code fix (claim on #3574, "claiming: new item: BUILD-970 code fix"). Complements #3506, which only edits the README's SDK wording.
What and why
The README asks for "Windows SDK 10.0.26100 or newer", but the SDK's
d3d12.hchanged within 10.0.26100: 10.0.26100.6584 shipsD3D12_SDK_VERSION612, later builds 616.mainuses names that only newer headers declare, so it no longer compiles on the older 10.0.26100 builds (BUILD-970):D3D12_FEATURE_D3D12_OPTIONS21and its payload, withD3D12_WORK_GRAPHS_TIER_NOT_SUPPORTEDandD3D12_EXECUTE_INDIRECT_TIER_1_0(header 613);D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT(613);D3D12_FEATURE_D3D12_OPTIONS20withD3D12_RECREATE_AT_TIER_NOT_SUPPORTED, andD3D12_FEATURE_PREDICATION(611).Instead of raising the documented SDK, they join the two feature values
runtime/shims/d3d12_feature_compat.halready declares for this reason: ABI values and payload structs inrt::d3d12::compat, used byd3d12_vulkan_device.cppandd3d12_vulkan_device_test.cpp. Where the header has the real declarations (D3D12_SDK_VERSION>= 611 / 613),static_asserts check that values, sizes and field offsets agree, so a later header can't silently diverge.Tested
No Windows machine: cross-built on Linux with clang-cl 19 / lld-link 19 against xwin's MSVC CRT and Windows SDK 10.0.26100 (
d3d12.h616), perdocs/testing.md, with the older headers taken from Microsoft's DirectX-Headers tags and put ahead of the SDK'sd3d12.h(/I):d3d12.hmain(f847748)static_asserts checkedI couldn't get the exact 10.0.26100.6584 header (xwin only offers the newest 10.0.26100 build); 612 lies between 611 and 613, both of which build.
Runtime tests under Wine 9.0 (Ubuntu 24.04) on Mesa llvmpipe 25.2.8, no GPU:
d3d12_vulkan_device(theCheckFeatureSupportchecks for OPTIONS20/21 and PREDICATION) andd3d12_indirect_rtpass in both the 616 and the 610 build;d3d12_indirect_zeroandd3d12_predicated_copyskip there, as onmain.ctest -j4on the 616 build: the same 126/140 pass as onmainin this setup. The 14 failures are the same Wine/llvmpipe ones (d3d12_private_data,d3d12_subresource_copyandd3d12_computecompare with vkd3d as the "host"; zero LUID; 8-wide subgroups; ...). The exceptions were the timeouts ofxdxr_build(onmain) andd3d12_xdxr_rt(here) under parallel load; both pass when run alone.Not tested: MSVC itself, a real Windows SDK 10.0.26100.6584 install, a GPU.
Checklist
docs/design.md, with how it was confirmed. (No translator change.)AI-assisted (Claude Code). No game files used.
🤖 Generated with Claude Code