Build with the Windows SDK 10.0.22621 headers and DXC #1369
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1369
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1369/head"
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?
@FoxxoOwO on GitHub · 2026-11-24 09:26 UTC · original
FoxxoOwO:build/windows-sdk-22621→main· +7 −4 · 3 files · 2 commits · merged 2026-11-24 09:45 UTCWhat
Two build blockers that stop
cmake --preset devon the toolchain the WindowsSDK 10.0.22621 install provides (MSVC 19.44, DXC 1.6.2112.16). Each is one
minimal change and neither alters runtime behaviour.
1.
src/startup_stubs/d3d12_xs_device.cpp—error C2065: ID3D12Device11ID3D12Device11is declared from SDK 10.0.26100 on. The 10.0.22621d3d12.hstops at
ID3D12Device10(D3D12_SDK_VERSION 602), sokind_for()did notcompile. That function only compares IIDs, so the interface never has to be
declared: the comparison now uses the literal GUID
5405c344-d457-444e-b4dd-2366e45aee39(verified against the publicd3d12.h in microsoft/DirectX-Headers,
DEFINE_GUID(IID_ID3D12Device11, ...)), the same way the Xbox-onlycommand-list GUID on the line below is already handled.
A
#if defined(__ID3D12Device11_INTERFACE_DEFINED__)guard (the idiom used intests/desktop_gpu.cpp) was rejected: it would make the shim classify the samerequest differently depending on the SDK it was compiled with. A device request
for
ID3D12Device11still maps todevice_kindon any SDK.2.
CMakeLists.txt+tests/d3d12x_pso.hlsl—dxc failed : DXIL container does not contain the given part.tests/d3d12x_pso.hlslembeds no[RootSignature(...)], so-Qstrip_rootsignaturehas nothing to strip and the pipeline already uses the signature the test builds
(
tests/d3d12x_device_check.cpp:pso_desc.pRootSignature = root.Get()).DXC 1.6 rejects the pass on a signature-less module; on the versions that accept
it, it is a no-op.
tests/compute.hlsl, which does embed a signature, stillstrips under the same DXC 1.6 — that is the difference between the two call
sites. The flag is dropped and the shader comment now states why no strip pass
is needed.
Why
AGENTS.mdrequires only "the Windows SDK" and "DXC". A plain 10.0.22621install satisfies that and still could not build the tree, so a contributor
following the guide hit two errors unrelated to the change they wanted to make.
CI runs
windows-2025(SDK 10.0.26100, DXC 1.8), where both problems areinvisible — this PR does not change CI behaviour, it restores the local build
path named in
AGENTS.md. If you would rather require 10.0.26100 / DXC ≥ 1.7explicitly, that is the alternative and this PR can be closed in favour of a
documentation change.
Reproduction
Before: configure succeeds, the build stops twice
(
d3d12_xs_shimon theC2065, thend3d12x_pso_cs.hon the DXC error), andthe test run cannot start.
After (
out/build of this branch):cmake --build --preset dev— 0 failures.ctest --preset dev --no-tests=error -j 4— 843 tests, 841 pass, 2 fail,24 skip, 672 s. The two failures are pre-existing and unrelated to this PR:
dxc_compile_time_gvn—dxc failed : Unknown argument: '-ftime-report'.DXC 1.6 predates that flag, which
tests/dxc_compile_time_check.pyneeds.Left as-is here; it needs either a documented DXC minimum or a capability
skip in that check.
compute_store_aot_guard_read_hardware—Timeoutat 45 s under-j 4. Passes serially (27.4 s). GPU-test contention, not a resultmismatch.
AGENTS.md— 0 failures.Sanity check that the two changed paths still run:
d3d12_xs_shim_iids,d3d12_xs_shim_warp_root,d3d12x_pso_static_sampler_hardwareandd3d12x_pso_reject_warppass in the run above.Environment
MSVC 19.44.35230.0 (VS 2022 BuildTools) · Windows SDK 10.0.22621.0 (DXC
1.6.2112.16) · CMake/Ninja from the VS CMake component · NVIDIA GeForce RTX 3070
Ti, driver 32.0.16.2124, debug layer unavailable · Windows 11.
Not measured: a build against SDK 10.0.26100 or newer DXC. The literal IID is
the same value
__uuidof(ID3D12Device11)expands to there, and the strip flagwas a no-op, but this branch was only compiled with 10.0.22621.
No game files, dumps or distribution links are involved.