d3d12_xs_surface: SDK discovery skips a newer driver-kit include folder (TEST-WIN-SWEEP) #363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/363"
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?
Imported from ubiquitarianism/leonida. Originally posted by ItsMrDubey on 2026-11-24T03:56:24Z.
Claimed in the coordination issue as: TEST-WIN-SWEEP (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121328982)
What and why
python -I tests/test_d3d12_xs_surface.pyfails on a Windows PC that has a Windows Driver Kit beside the SDK. The WDK installs its own version folder underWindows Kits\10\Include(here10.0.26100.0, 43 driver headers inum\, nod3d11.h/d3d12.h/dxgidebug.h) next to the full SDK (10.0.19041.0).find_sdk_include()took the numerically newest folder with aum\directory, socheck_sdk()parsed the driver headers, found none of the 83 standard GUIDs andtest_standard_iids_match_sdkfailed (assert errors == []) instead of checking against the SDK that is installed.Automatic discovery now takes the newest version folder whose
um\hasd3d12.h; with only a driver kit it finds nothing and the SDK check skips, as it does with no SDK. An explicitWINDOWS_SDK_INCLUDE/SDK_INCLUDEis still taken as given. The numeric-sort test now gives its fake SDK folders ad3d12.h, and a new test covers a newer driver-kit folder beside an SDK, and a driver kit alone.Found by the Windows test sweep (TEST-WIN-SWEEP).
Tested
Windows 11, Python 3.11.9 and 3.12.9, no GPU needed:
python -I tests/test_d3d12_xs_surface.py: beforeAssertionErrorintest_standard_iids_match_sdk(exit 1); afterok(exit 0). Same withpy -3.12 -I.find_sdk_include(returns the10.0.26100.0\umfolder) and passes with the fix.py -3.12 -m pytest tests/test_d3d12_xs_surface.py: 9 passed, 1 skipped (SCARAB_REF unset).python -I tools/d3d12_xs_surface.py --sdk --require-sdk:sdk: 83/83 standard GUIDs match ...\10.0.19041.0\um, PASS.python -I tests/test_resource_hygiene.py: OK.python -I scripts/check_no_game_data.pyon both changed files: clean.ProgramFilesfolders, which are unset there; the tests build their own folders withos.path.join.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. n/a: no translator ruleImported from ubiquitarianism/leonida. Originally posted by Oliwettoo on 2026-11-24T10:30:57Z.
Looks good. Requiring
um/d3d12.hskips a WDK-only version folder, and an explicitWINDOWS_SDK_INCLUDE/SDK_INCLUDEis still taken as given.tests/test_d3d12_xs_surface.pypasses with the PR on currentmain(Linux; the discovery path itself is Windows-only). Ship. AI-assisted review.Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T13:37:32Z.
Merging.
Why merged: d3d12_xs_surface SDK discovery skips a Windows Kits version folder that lacks um/d3d12.h (a WDK-only folder), while an explicit WINDOWS_SDK_INCLUDE/SDK_INCLUDE is still taken as given. Reviewed as good by Oliwettoo.
Why it's good: Its tests: 18 passed, 1 skipped. The runtime build on this machine is unaffected (same ctest).
Tested on Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, alone on main (
21625bca8or51f316092) and in a cumulative merge of #497, #278, #310, #334, #346, #340, #355, #361, #363, #620 and #577 (which carries #540) on main2d73c242f(git merge-tree: 0 conflicts against current main). Repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests): 566 passed / 5 skipped / 0 failed on main and on main + batch. compileall OK. Full ctest: 302/304 on main and on main + batch (the same two pre-existing failures, d3d12_execute_indirect_validation and d3d12_depth_resolve, no new ones).AI-assisted (Claude Code, Claude Opus 5.5).