Report a named skip when the SDK validator refuses module-only validation #113
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/114"
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 R0Y00/Xbox2Windows. Originally posted by bosseurdinternet on 2026-11-21T16:24:47Z.
Change
Fixes #98. On a clean build with the DXC 1.7.2308 shipped in the original Windows SDK 10.0.26100,
shader_metadata_probefails: thatdxil.dllreturnsE_INVALIDARGfromIDxcValidator::ValidateforDxcValidatorFlags_ModuleOnly, andvalidate_shaderraises before the remaining checks.validate_shadertakesoptional_modes. A refused optional mode keeps itscall_hrrecord without a status. Required modes still raise, soprobe_roots.py --controlsbehaves as before.0x80070057and thedxil.dllnext to the configureddxchas a 101.x file version. Any other refusal, a mixed result or a refusal from a 1.x validator fails.${DXC_BIN_DIR}/dxil.dll, the fileroot_probeloads, and setsSKIP_RETURN_CODE 77.docs/experiments.md: the per-release results.Verification
Bisection.
root_probe's two validator calls (DxcUtils::CreateBlobFromPinned, thenValidatewith default flags on the container andModuleOnlyon the bare bitcode) were repeated through ctypes with thedxcompiler.dllanddxil.dllof each official x64 release. Inputs:compute_root,compute_tablesandtriangle_vsbuilt from the repository HLSL by DXC 1.7.2308. Run under Wine 11.0 on Linux. Every release accepted the three containers.dxil.dllfile versionIDxcVersionInfo0x80070057, no status0x80070057, no statusThe boundary falls between 1.8.2407 and 1.8.2502, where the
dxil.dllfile version changes from 101.x to 1.x.IDxcVersionInforeports 1.8 on both sides, so the test gates on the file version. The 1.7.2308 and 1.9.2609 outcomes match the native Windows 10 results in #98.End to end. The real
tests/shader_probe_check.pyran under Windows Python 3.12 in Wine. A stand-in forroot_probe.execalled the real DLLs for--container,--moduleand--disassemble. The root signature mode was scripted, and that path is unchanged.mainValueError: Validator operation unavailable for module: {'call_hr': '0x80070057'}Module-only validation skipped: dxil.dll 101.7.2308.12 returned 0x80070057. Configure with DXC 1.8.2502 or newer to run it.Negative controls used a scripted probe on Linux. Each of these fails: a refusal with a 1.8.2502 or 1.9.2609
dxil.dll, anothercall_hr, one module refused and the other accepted (in either order), a failing module status and a failing container status.The Linux CI Python checks pass, and pyflakes is clean on both changed Python files. I have not built this with MSVC. No C++ changed. The Windows job covers the CMake change and the passing path with the runner's DXC.
Evidence and follow-up
No new fixtures. The release table comes from the official DXC GitHub releases. A native Windows run of the skip path with the SDK's DXC 1.7.2308 is still welcome. The reporter's configuration in #98 is the reference.
AI-assisted (Claude Code). The bisection and the end-to-end runs used Wine on Linux; see Verification.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T16:31:13Z.
Thanks for the version comparison. Please reconcile your README text with #110 once it lands, including the intermediate versions you have now tested. Please keep the newer-validator failure and mixed-result controls visible in the test results.
Imported from R0Y00/Xbox2Windows. Originally posted by bosseurdinternet on 2026-11-21T16:37:13Z.
Thanks for the review. Both points are addressed, and the branch is rebased on
63fc71c.README. The paragraph from #110 is kept and updated in place. It now says that 1.7.2308 and 1.8.2403 through 1.8.2407 refuse module-only validation and that the test then reports a skip, that 1.8.2502 is the first release that passes, and that the later 1.8 and 1.9 releases through 1.9.2609 pass. The
-DDXC_EXECUTABLEcommand and the #98 link from #110 are unchanged. The per-release table is indocs/experiments.md.Controls. The skip rule is now a function,
module_outcome, and its controls run as a separate CTest entry,shader_metadata_controls, and in the Linux Python job. Each case prints one line:shader_metadata_probealso prints what it measured, for examplevalidator=dxil.dll file_version=1.9.2609.5 module_only=validated.Two manual mutants, not in CI: without the 101.x condition the controls fail at
newer_validator_refusal, and with "any shader refused" instead of "both refused" they fail atrefused_then_validated.Rerun under Wine 11.0 with the real DLLs and a stand-in for
root_probe.exe(root signature mode scripted): 1.7.2308 and 1.8.2407 exit 77 withmodule_only=refused, 1.8.2502 and 1.9.2609 exit 0 withmodule_only=validated. A native Windows run of the skip path is still open.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T16:40:38Z.
Native Windows run on the #98 reference machine: Windows 10 22H2 (19045.6466), VS Build Tools 17.14, MSVC 14.44.35207, original Windows SDK 10.0.26100 with DXC 1.7.2308.16 (
dxil.dll101.7.2308.24).#114 at
079e069with the SDK's DXC (clean worktree, README first build, full suite):The SDK's
dxil.dllis build.24, not the.12from the release zip in your table. It is still 101.x, so the gate covers it. The only other failures were the sevenbvh_*_warptests, because this branch predates #99 (ed242e5is not an ancestor of079e069). On current main those skip.Native boundary check. One
root_probebuild per DXC release, each run throughtests/shader_probe_check.pyon the same.csofiles from the SDK-DXC build:dxil.dllcall_hr 0x80070057call_hr 0x80070057This matches your Wine bisection and @Leyukaka's reading of the source: the first passing release is 1.8.2502.
#110 instructions. On the #110 head, the full suite had only
shader_metadata_probefailing. Reconfiguring the existing build directory as the README says (cmake --preset dev -DDXC_EXECUTABLE=<1.8.2502>/bin/x64/dxc.exe), then building, gave 76 of 76 passed or skipped, withshader_metadata_probepassing. With this result the README's "Versions in between have not been tested" could name 1.8.2502 as the minimum.AI-assisted (Claude Code); all runs above on the configuration listed.
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T16:42:25Z.
Retested at the new head
9c9523fon the same machine (SDK DXC 1.7.2308,dxil.dll101.7.2308.24), clean build and full suite: 77 of 77 passed or skipped, 0 failed.shader_metadata_probe: skipped,Module-only validation skipped: the validator returned 0x80070057. Configure with DXC 1.8.2502 or newer to run it.shader_metadata_controls: passed.bvh_*_warptests now skip at their shader-model cap, since the branch includes #99.AI-assisted (Claude Code).