tooling: validate through dxcompiler.dll when the SDK ships no dxil.dll #1190

Manually merged
github merged 1 commit from gh-pr/1190/head into gh-pr/1190/base 2026-11-26 22:47:32 +00:00
Owner

@⁠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 UTC

Change

Fixes #1189.

A later servicing level of Windows SDK 10.0.26100 installs dxc.exe and dxcompiler.dll 1.9.2602.17 and no dxil.dll. root_probe loaded the validator only from dxil.dll and returned 4, and the checks read the validator's version from that file, so a first build with the default DXC failed compressed_scene_metadata, shader_metadata_probe, dxil_retarget_probe and dxil_retarget_probe_hardware.

  • tools/root_probe.cpp: when dxil.dll is absent, create the validator from dxcompiler.dll, which is already loaded. A DXC with a separate dxil.dll is used exactly as before.
  • tests/shader_probe_check.py: file_version reads dxcompiler.dll when the dxil.dll it is given does not exist. dxil_retarget_check.py calls the same function.
  • README.md (DXC validation) and docs/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 33f80eae on main 4b740f9c.

Build DXC selected The four tests Whole suite
f05369ec, no change SDK 1.9.2602.17, no dxil.dll 4 failed (root_probe --container returned 4) 661 of 666 passed
f05369ec + this change SDK 1.9.2602.17, no dxil.dll 4 passed 666 of 666 passed, 20 skipped
this branch SDK 1.9.2602.17, no dxil.dll 4 passed 675 of 675 passed, 22 skipped
f05369ec, no change DXC 1.9.2609 release via -DDXC_EXECUTABLE, with dxil.dll 4 passed not run
f05369ec + this change same 4 passed not run

Commands:

ctest --preset dev --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$'
ctest --preset dev --no-tests=error -j 4 --timeout 600
.\out\pe-env\Scripts\python.exe -B tests\docs_links_check.py     # Checked 15 Markdown files and 256 links.
.\out\pe-env\Scripts\python.exe -B tests\bidi_controls_check.py  # no bidirectional controls

shader_metadata_probe prints validator=dxil.dll file_version=1.9.2602.17 module_only=validated on this branch. The label still says dxil.dll; I left it so the output format does not change.

The fifth failure in the first row was compute_store_aot_guard_read_hardware timing out at 300 s under -j 8. Alone it passes in 27.7 s, and it passes under -j 4.

Not run: the release preset, WARP-only machines, an SDK that ships DXC 1.7.2308 or 1.8.2502 (the paths with a dxil.dll are 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 (no dxil.dll), using DualUav.cso built here from the repository's HLSL:

Input to root_probe --container Result
unmodified "call_hr":"0x00000000","status":"0x00000000"
16 bytes inverted at 75 % of the file "status":"0x80aa0009","diagnostic_bytes":35
one bit flipped near the end "call_hr":"0x80004005"

Both SDK entries 10.0.26100.9457 and 10.0.26100.2454 are 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

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

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

**@⁠MisaXz** on GitHub · 2026-11-24 03:02 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1190) `MisaXz:tooling/validate-without-dxil-dll` → `main` · +9 −2 · 4 files · 1 commits · merged 2026-11-24 03:46 UTC ## Change Fixes #1189. A later servicing level of Windows SDK 10.0.26100 installs `dxc.exe` and `dxcompiler.dll` 1.9.2602.17 and no `dxil.dll`. `root_probe` loaded the validator only from `dxil.dll` and returned 4, and the checks read the validator's version from that file, so a first build with the default DXC failed `compressed_scene_metadata`, `shader_metadata_probe`, `dxil_retarget_probe` and `dxil_retarget_probe_hardware`. - `tools/root_probe.cpp`: when `dxil.dll` is absent, create the validator from `dxcompiler.dll`, which is already loaded. A DXC with a separate `dxil.dll` is used exactly as before. - `tests/shader_probe_check.py`: `file_version` reads `dxcompiler.dll` when the `dxil.dll` it is given does not exist. `dxil_retarget_check.py` calls the same function. - `README.md` (DXC validation) and `docs/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 `33f80eae` on `main` `4b740f9c`. | Build | DXC selected | The four tests | Whole suite | |---|---|---|---| | `f05369ec`, no change | SDK 1.9.2602.17, no `dxil.dll` | 4 failed (`root_probe --container` returned 4) | 661 of 666 passed | | `f05369ec` + this change | SDK 1.9.2602.17, no `dxil.dll` | 4 passed | 666 of 666 passed, 20 skipped | | this branch | SDK 1.9.2602.17, no `dxil.dll` | 4 passed | **675 of 675 passed, 22 skipped** | | `f05369ec`, no change | DXC 1.9.2609 release via `-DDXC_EXECUTABLE`, with `dxil.dll` | 4 passed | not run | | `f05369ec` + this change | same | 4 passed | not run | Commands: ```powershell ctest --preset dev --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$' ctest --preset dev --no-tests=error -j 4 --timeout 600 .\out\pe-env\Scripts\python.exe -B tests\docs_links_check.py # Checked 15 Markdown files and 256 links. .\out\pe-env\Scripts\python.exe -B tests\bidi_controls_check.py # no bidirectional controls ``` `shader_metadata_probe` prints `validator=dxil.dll file_version=1.9.2602.17 module_only=validated` on this branch. The label still says `dxil.dll`; I left it so the output format does not change. The fifth failure in the first row was `compute_store_aot_guard_read_hardware` timing out at 300 s under `-j 8`. Alone it passes in 27.7 s, and it passes under `-j 4`. Not run: the `release` preset, WARP-only machines, an SDK that ships DXC 1.7.2308 or 1.8.2502 (the paths with a `dxil.dll` are 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 (no `dxil.dll`), using `DualUav.cso` built here from the repository's HLSL: | Input to `root_probe --container` | Result | |---|---| | unmodified | `"call_hr":"0x00000000","status":"0x00000000"` | | 16 bytes inverted at 75 % of the file | `"status":"0x80aa0009","diagnostic_bytes":35` | | one bit flipped near the end | `"call_hr":"0x80004005"` | Both SDK entries `10.0.26100.9457` and `10.0.26100.2454` are 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](README.md#first-build). Reproduction details: `docs/experiments.md`, "Module-only validation by DXC release". ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. 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](https://claude.com/claude-code)
Windows SDK 10.0.26100.9457 installs dxc.exe and dxcompiler.dll 1.9.2602.17
under bin/10.0.26100.0/x64 and no dxil.dll. root_probe loaded the validator
only from dxil.dll and returned 4, and the checks read the validator version
from that file, so a first build with the default DXC failed
compressed_scene_metadata, shader_metadata_probe, dxil_retarget_probe and
dxil_retarget_probe_hardware.

root_probe now uses dxcompiler.dll's validator when dxil.dll is absent, and
file_version reads dxcompiler.dll in that case. A DXC with a separate
dxil.dll is used as before.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:47:30 +00:00
github manually merged commit 33f80eaef8 into gh-pr/1190/base 2026-11-26 22:47:32 +00:00
Author
Owner

@⁠Jess-Doit on GitHub · 2026-11-24 03:39 UTC · original

Tested 33f80eae on Windows 10 22H2 19045.6456 (MSVC 19.44.35230, Debug, XBOX2WINDOWS_ADAPTER=1060 for 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's dxc.exe came first on PATH. Vulkan SDK 1.4.363.0's Bin holds dxc.exe and dxcompiler.dll 1.9.0.5512 (a source build) and no dxil.dll.

I ran two build directories from this head, each configured with -DDXC_EXECUTABLE=, using ctest --test-dir <dir> --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$' -V:

DXC_EXECUTABLE dxil.dll beside it Result Reported version
C:/VulkanSDK/1.4.363.0/Bin/dxc.exe no 4/4 pass file_version=1.9.0.5512 module_only=validated
Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe yes (1.9.2602.17) 4/4 pass file_version=1.9.2602.17 module_only=validated

Before this change, on main 645b9697 with the Vulkan SDK's dxc, all four failed at root_probe.exe --container with 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 from dxcompiler.dll. Printing the file actually used would make reports like this unambiguous.

AI-assisted (Claude Code).

**@⁠Jess-Doit** on GitHub · 2026-11-24 03:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1190#issuecomment-7121299589) Tested `33f80eae` on Windows 10 22H2 `19045.6456` (MSVC 19.44.35230, Debug, `XBOX2WINDOWS_ADAPTER=1060` for 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's `dxc.exe` came first on `PATH`. Vulkan SDK 1.4.363.0's `Bin` holds `dxc.exe` and `dxcompiler.dll` `1.9.0.5512` (a source build) and no `dxil.dll`. I ran two build directories from this head, each configured with `-DDXC_EXECUTABLE=`, using `ctest --test-dir <dir> --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$' -V`: | `DXC_EXECUTABLE` | `dxil.dll` beside it | Result | Reported version | |---|---|---|---| | `C:/VulkanSDK/1.4.363.0/Bin/dxc.exe` | no | 4/4 pass | `file_version=1.9.0.5512 module_only=validated` | | `Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe` | yes (`1.9.2602.17`) | 4/4 pass | `file_version=1.9.2602.17 module_only=validated` | Before this change, on `main` `645b9697` with the Vulkan SDK's `dxc`, all four failed at `root_probe.exe --container` with 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 from `dxcompiler.dll`. Printing the file actually used would make reports like this unambiguous. AI-assisted (Claude Code).
Author
Owner

@⁠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 and pefile-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-loaded dxcompiler.dll handle only when LoadLibraryExW(SDK_DXC_DIR L"dxil.dll", ...) returns null, preserving existing behavior when a separate dxil.dll is present.
  • tests/shader_probe_check.py: file_version() (also used by tests/dxil_retarget_check.py) falls back to dxcompiler.dll only when dxil.dll does not exist in that directory.
  • AGENTS.md compliance: title-neutral wording, README.md and docs/experiments.md updated with the measured SDK 1.9.2602.17 case and negative container controls.

Windows root_probe and shader_probe_check.py / dxil_retarget_check.py execution remain unverified locally.

**@⁠tedin7** on GitHub · 2026-11-24 03:15 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1190#pullrequestreview-6033139530) · **reviewed** Audited diff (`33f80eae`) and ran platform-independent checks on Linux (Windows C++/DXC build and `pefile`-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-loaded `dxcompiler.dll` handle only when `LoadLibraryExW(SDK_DXC_DIR L"dxil.dll", ...)` returns null, preserving existing behavior when a separate `dxil.dll` is present. - `tests/shader_probe_check.py`: `file_version()` (also used by `tests/dxil_retarget_check.py`) falls back to `dxcompiler.dll` only when `dxil.dll` does not exist in that directory. - `AGENTS.md` compliance: title-neutral wording, `README.md` and `docs/experiments.md` updated with the measured SDK 1.9.2602.17 case and negative container controls. Windows `root_probe` and `shader_probe_check.py` / `dxil_retarget_check.py` execution remain unverified locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.