tooling: validate through dxcompiler.dll when the SDK ships no dxil.dll #1190
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!1190
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1190/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?
@MisaXz on GitHub · 2026-11-24 03:02 UTC · original
MisaXz:tooling/validate-without-dxil-dll→main· +9 −2 · 4 files · 1 commits · merged 2026-11-24 03:46 UTCChange
Fixes #1189.
A later servicing level of Windows SDK 10.0.26100 installs
dxc.exeanddxcompiler.dll1.9.2602.17 and nodxil.dll.root_probeloaded the validator only fromdxil.dlland returned 4, and the checks read the validator's version from that file, so a first build with the default DXC failedcompressed_scene_metadata,shader_metadata_probe,dxil_retarget_probeanddxil_retarget_probe_hardware.tools/root_probe.cpp: whendxil.dllis absent, create the validator fromdxcompiler.dll, which is already loaded. A DXC with a separatedxil.dllis used exactly as before.tests/shader_probe_check.py:file_versionreadsdxcompiler.dllwhen thedxil.dllit is given does not exist.dxil_retarget_check.pycalls the same function.README.md(DXC validation) anddocs/experiments.md(module-only validation by DXC release) record the measured case.No shared interface changes:
root_probe's modes, output and exit codes are the same. I found no overlapping open PR (gh pr list --state open --search "root_probe OR dxil.dll").Verification
Windows 11 Pro build 26300.10075, Visual Studio 2022 Build Tools (MSVC 14.44.35207), CMake 4.4.4, Python 3.13.2, NVIDIA GeForce RTX 5080 (driver 32.0.16.2114). This branch at
33f80eaeonmain4b740f9c.f05369ec, no changedxil.dllroot_probe --containerreturned 4)f05369ec+ this changedxil.dlldxil.dllf05369ec, no change-DDXC_EXECUTABLE, withdxil.dllf05369ec+ this changeCommands:
shader_metadata_probeprintsvalidator=dxil.dll file_version=1.9.2602.17 module_only=validatedon this branch. The label still saysdxil.dll; I left it so the output format does not change.The fifth failure in the first row was
compute_store_aot_guard_read_hardwaretiming out at 300 s under-j 8. Alone it passes in 27.7 s, and it passes under-j 4.Not run: the
releasepreset, WARP-only machines, an SDK that ships DXC 1.7.2308 or 1.8.2502 (the paths with adxil.dllare covered only by the 1.9.2609 control above).Evidence and follow-up
No new fixture. As a failure case for the fallback, I checked that
dxcompiler.dll's validator refuses a bad container on the SDK DXC (nodxil.dll), usingDualUav.csobuilt here from the repository's HLSL:root_probe --container"call_hr":"0x00000000","status":"0x00000000""status":"0x80aa0009","diagnostic_bytes":35"call_hr":"0x80004005"Both SDK entries
10.0.26100.9457and10.0.26100.2454are installed on this machine, so I cannot say which one placed the 1.9.2602.17 files. Someone with only one of them could confirm.Updated README entry: DXC validation. Reproduction details:
docs/experiments.md, "Module-only validation by DXC release".Checklist
AI-assisted: found, written and tested with Claude Code (Claude Fable 5.2) on the account owner's machine; every number above is from that machine.
🤖 Generated with Claude Code
@Jess-Doit on GitHub · 2026-11-24 03:39 UTC · original
Tested
33f80eaeon Windows 10 22H219045.6456(MSVC 19.44.35230, Debug,XBOX2WINDOWS_ADAPTER=1060for a GTX 1060 6 GB; the hardware test's log doesn't name the adapter it used). I hit the same four failures by a second route: the Vulkan SDK'sdxc.execame first onPATH. Vulkan SDK 1.4.363.0'sBinholdsdxc.exeanddxcompiler.dll1.9.0.5512(a source build) and nodxil.dll.I ran two build directories from this head, each configured with
-DDXC_EXECUTABLE=, usingctest --test-dir <dir> --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$' -V:DXC_EXECUTABLEdxil.dllbeside itC:/VulkanSDK/1.4.363.0/Bin/dxc.exefile_version=1.9.0.5512 module_only=validatedWindows Kits/10/bin/10.0.26100.0/x64/dxc.exe1.9.2602.17)file_version=1.9.2602.17 module_only=validatedBefore this change, on
main645b9697with the Vulkan SDK'sdxc, all four failed atroot_probe.exe --containerwith exit 4. So the fallback also covers source-built DXC packages, not only the SDK's 1.9.2602.One small thing: with the fallback in use, the diagnostic still prints
validator=dxil.dll, although the version comes fromdxcompiler.dll. Printing the file actually used would make reports like this unambiguous.AI-assisted (Claude Code).
@tedin7 on GitHub · 2026-11-24 03:15 UTC · original · reviewed
Audited diff (
33f80eae) and ran platform-independent checks on Linux (Windows C++/DXC build andpefile-dependent checks were not executed locally).Linux checks run on
33f80eae:python3 -B tests/docs_links_check.py: passed (Checked 15 Markdown files and 263 links.)python3 -B tests/bidi_controls_check.py: passed (Checked 966 tracked source, script and build/CI files: no bidirectional controls.)python3 -B tests/rdna2_tools_check.py: passed (Ran 120 tests in 2.569s,OK (skipped=13))Code audit:
tools/root_probe.cpp: Falls back to the already-loadeddxcompiler.dllhandle only whenLoadLibraryExW(SDK_DXC_DIR L"dxil.dll", ...)returns null, preserving existing behavior when a separatedxil.dllis present.tests/shader_probe_check.py:file_version()(also used bytests/dxil_retarget_check.py) falls back todxcompiler.dllonly whendxil.dlldoes not exist in that directory.AGENTS.mdcompliance: title-neutral wording,README.mdanddocs/experiments.mdupdated with the measured SDK 1.9.2602.17 case and negative container controls.Windows
root_probeandshader_probe_check.py/dxil_retarget_check.pyexecution remain unverified locally.