mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #363] [MERGED] d3d12_xs_surface: SDK discovery skips a newer driver-kit include folder (TEST-WIN-SWEEP) #415
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#415
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/363
Author: @ItsMrDubey
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:win-partial-sdk📝 Commits (1)
7853f64d3d12_xs_surface: SDK discovery skips a newer driver-kit include folder without the D3D headers📊 Changes
2 files changed (+31 additions, -2 deletions)
View changed files
📝
tests/test_d3d12_xs_surface.py(+27 -0)📝
tools/d3d12_xs_surface.py(+4 -2)📄 Description
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 rule🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.