shader_metadata_probe fails with the DXC 1.7.2308 validator from the original SDK 10.0.26100 #98
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#98
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?
@rasptum on GitHub · 2026-11-21 15:57 UTC · original
## Reproduction
Clean checkout of
88fd8c5, first-build steps from the README including the Python environment, then:Expected and observed behavior
shader_metadata_probefails. Container validation succeeds, but every module-only validation call returnsE_INVALIDARG:Passing the DXBC container, the DXIL part, or the raw bitcode with
--moduleall give0x80070057.--containeron the same file returnsstatus 0x00000000.Cause: the DXC version in the SDK.
root_probeloadsdxil.dllfrom the directory of thedxcthat CMake finds. This machine has the original SDK 10.0.26100 release, which ships DXC 1.7.2308 (dxil.dll101.7.2308.24). I built a secondroot_probein a separate build directory with-DDXC_EXECUTABLEpointing at the official DXC v1.9.2609 release (Microsoft-signed, SHA-256 matched the release digest). I ran both against the same.csofiles from the original build:root_probebuilt againstshader_probe_check.pycall_hr 0x80070057So the README requirement "Windows SDK 10.0.26100 with DXC" can be met by an SDK whose validator lacks this operation. I have not narrowed down the minimum version (somewhere after 1.7.2308, at or before 1.9.2609).
Possible fixes, for the maintainers to choose: state a minimum DXC version in the first-build step, check the validator version at configure time, or have the test report a named skip when module-only validation is unavailable.
Environment
dxil.dll101.7.2308.24requirements-dev.txtThe rest of the clean build: all three smoke tests passed, and the full suite is 74 of 75 pass or skip once the separate Windows 10 WARP shader-model failures are fixed (#99).
AI-assisted (Claude Code); built and run locally on the configuration above.
@Leyukaka on GitHub · 2026-11-21 16:15 UTC · original
I looked at the DXC sources to narrow down the version. This comes from reading the code only; I haven't run any older DXC release.
root_probe --modulecallsIDxcValidator::ValidatewithDxcValidatorFlags_ModuleOnly(tools/root_probe.cpp:49).dxcompileralready routedModuleOnlyto module validation at v1.7.2308. The gap is specific to the separatedxil.dll.dxil.dllwas not built from the public repository:tools/clang/tools/dxildlldoes not exist at those tags. DXC's unit test has a comment saying raw-bitcode validation "is not supported through DXIL.dll" (tools/clang/unittests/HLSL/ValidationTest.cpp). That comment and its skip are unchanged on main today, so I read it as describing the old closed-sourcedxil.dll, not current behaviour.dxil.dllmoved into the repository in #6866, merged 2024-09-05. The compare API shows it is not in v1.8.2407 and is in v1.8.2502, and there is no tag in between. At v1.8.2502 itsValidateforwards tohlsl::validateWithDebug, the shared path that sendsDxcValidatorFlags_ModuleOnlytorunDxilModuleValidation.So my working assumption is that module-only validation through
dxil.dllfirst works in DXC v1.8.2502. That fits your two data points (1.7.2308 fails, 1.9.2609 passes), but it is not measured. Runningshader_probe_check.pywithdxil.dllfrom v1.8.2407 and from v1.8.2502 would confirm or refute it.Two possible fixes, for you to choose:
IDxcVersionInfoon the validator, or thedxil.dllfile version) and return 77 only when it is below 1.8.2502. AnE_INVALIDARGfrom a newer validator would still fail the test, so a regression inroot_probeisn't hidden. This needsSKIP_RETURN_CODE 77onshader_metadata_probe, which it doesn't have today.I can prepare either one.
AI-assisted.
@R0Y00 on GitHub · 2026-11-21 16:31 UTC · original
#110 documents how to select a working validator. #114 now also has a release comparison and a proposed capability skip. If you still have the original SDK installed, a native Windows run of the old-validator path on #114 would complement the Wine measurements.
@Asnardd on GitHub · 2026-11-21 16:52 UTC · original
Result for the 1.8.2502 case on native Windows
shader_metadata_probe passes with the validator from Windows SDK 10.0.26100, which on my machine ships DXC 1.8.2502.11 (dxil.dll is on the same version). No -DXC_EXECUTABLE override, CMake picked the SDK dxc
So the module-only validation failure seems limited to 1.7.2308, at least 1.8.2502 is fine
Setup:
2d96d6dFull suite passed (76/76) only bvh_wave64_hardware and bvh_wave64_warp skipped (expected on NVIDIA)