translate: say which validator engine produced the numbers, and warn before 1.8 #1974

Open
github-bot wants to merge 4 commits from github-bot/gh-1974 into main AGit
Owner

@⁠fiestorra on GitHub · 2026-11-25 02:09 UTC · original
fiestorra:cli/validator-real-version → main · +225 −2 · 2 files · 4 commits · open

translate --validate now says which engine it is, and warns when it is one whose PSV0 verdicts cannot be trusted

Taking the first two points of the proposal, because they are what makes every other number in a report readable — including the ones in #1247 and #1563 that rank pull requests by "programs that now validate".

What the line looks like now, measured on this machine (SDK 10.0.26100):

validator    C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll 1.9

— the version is read from the DLL's own resource (VS_FIXEDFILEINFO) through version.dll, not from the path and not from what Explorer shows, because the latter is exactly what misled the earlier reports: FileVersion 1.8.2502 on a 1.7 validator. The binding crate this module uses does not expose the version APIs, so the three calls and the fixed-info struct are declared in validator.rs with #[link(name = "version")] rather than growing a dependency on windows for a line of output.

When the validator predates 1.8, one more line follows:

warning      that validator is before 1.8: its PSV0 verdicts are wrong for any shader with a
             repeated semantic name; set VICTORY_DXIL to a DXC 1.8 dxil.dll

That is the honest form of the finding: the verdicts are not merely unhelpful, they are wrong in a specific way (the 1.7 validator rebuilds PSV0 and compares, so our deduplicated name table — #1208 — is rejected), and the way out is to point VICTORY_DXIL at a DXC 1.8 or later.

Two tests:

  • the_validator_reports_the_version_in_its_resource — loads the validator the default lookup chooses and asserts its major version is at least 1, skipping cleanly when there is no dxil.dll or it has no version resource;
  • a_missing_dll_has_no_version — a path that is not there answers None rather than a wrong version.

Verification: cargo test -p victory-shader --locked --lib 249 passed, 3 ignored; cargo test --workspace --locked 26 suites ok, with the one failure main also has in a session without a desktop (lifecycle::tests::showing_a_title_window_shows_its_stand_in); cargo clippy --workspace --all-targets with and without --all-features clean under -D warnings; rustfmt --check clean on both files (0 hunks, as on main).

Not done, from the proposal: the third point — naming the recommended VICTORY_DXIL in translate --help — because #684 is reshaping the compiler lookup and the help text would collide with it. I would rather add it after that lands than write a paragraph that gets rewritten.

The writer-side fix is #1208's, not mine: this only stops reports from attributing that fix's effect to the wrong engine.

Pull request: #1974

No game data is involved: a path, a version number and test counts.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 02:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974) `fiestorra:cli/validator-real-version` → `main` · +225 −2 · 2 files · 4 commits · open **`translate --validate` now says which engine it is, and warns when it is one whose PSV0 verdicts cannot be trusted** Taking the first two points of the proposal, because they are what makes every other number in a report readable — including the ones in #1247 and #1563 that rank pull requests by "programs that now validate". **What the line looks like now**, measured on this machine (SDK 10.0.26100): ``` validator C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll 1.9 ``` — the version is read from the DLL's own resource (`VS_FIXEDFILEINFO`) through `version.dll`, not from the path and not from what Explorer shows, because the latter is exactly what misled the earlier reports: FileVersion `1.8.2502` on a 1.7 validator. The binding crate this module uses does not expose the version APIs, so the three calls and the fixed-info struct are declared in `validator.rs` with `#[link(name = "version")]` rather than growing a dependency on `windows` for a line of output. **When the validator predates 1.8**, one more line follows: ``` warning that validator is before 1.8: its PSV0 verdicts are wrong for any shader with a repeated semantic name; set VICTORY_DXIL to a DXC 1.8 dxil.dll ``` That is the honest form of the finding: the verdicts are not merely unhelpful, they are wrong in a specific way (the 1.7 validator rebuilds `PSV0` and compares, so our deduplicated name table — #1208 — is rejected), and the way out is to point `VICTORY_DXIL` at a DXC 1.8 or later. Two tests: - `the_validator_reports_the_version_in_its_resource` — loads the validator the default lookup chooses and asserts its major version is at least 1, skipping cleanly when there is no `dxil.dll` or it has no version resource; - `a_missing_dll_has_no_version` — a path that is not there answers `None` rather than a wrong version. Verification: `cargo test -p victory-shader --locked --lib` **249 passed, 3 ignored**; `cargo test --workspace --locked` 26 suites ok, with the one failure `main` also has in a session without a desktop (`lifecycle::tests::showing_a_title_window_shows_its_stand_in`); `cargo clippy --workspace --all-targets` with and without `--all-features` clean under `-D warnings`; `rustfmt --check` clean on both files (0 hunks, as on `main`). Not done, from the proposal: the third point — naming the recommended `VICTORY_DXIL` in `translate --help` — because #684 is reshaping the compiler lookup and the help text would collide with it. I would rather add it after that lands than write a paragraph that gets rewritten. The writer-side fix is #1208's, not mine: this only stops reports from attributing that fix's effect to the wrong engine. Pull request: #1974 No game data is involved: a path, a version number and test counts. Written with an AI assistant.
`translate --validate` printed the SDK path and nothing else, and the SDK's
`dxil.dll` reports FileVersion 1.8.2502 while it is the 1.7 validator (#1945).
That matters because the 1.7 validator rebuilds a program's PSV0 and compares
it with the module's, so a writer that deduplicates the semantic name table
(as ours does, #1208) is rejected on every shader with a repeated semantic
name: 15,054 false PSV failures on 26,084 programs, and reports that read like
shader defects. 1.8 compares the content instead and never rebuilds it.

So the line now carries the DLL's own version from its version resource
(`VS_FIXEDFILEINFO`, read through version.dll, since the binding crate this
module uses does not expose it), and a validator before 1.8 prints a warning
naming `VICTORY_DXIL` as the way to point at a DXC 1.8 one.

Measured here: the SDK 10.0.26100 validator on this machine is 1.9 (it prints
1.9.2602.17), so the warning does not fire and the line reads

  validator    C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll 1.9

which is the point: two machines with the same path can now be told apart.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:50:28 +00:00
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 02:13 UTC · original

Tested this PR (49ee33f) and found a gap: the file version doesn't identify the validator, so the warning misses the old ones.

Built -p victory on Windows 11 26300 and ran translate --validate with two validators that are on this machine:

dxil.dll its file version IDxcVersionInfo::GetVersion this PR prints warns?
Windows SDK 10.0.26100.0\x64 (serviced: 1.9.2602.17, dated 2026-09) 1.9.2602.17 1.9 1.9 no (right)
a 2021 validator (the one the NVIDIA app's embedded Chromium ships) 101.6.2112.13 1.6 101.6 no (should)

Older DXC builds number their files 101.x, so major < 1 || (major == 1 && minor < 8) is false for them. And the case #1945 is about, the SDK DLL whose file version reads 1.8.2502 while it validates as 1.7, would print 1.8 here and not warn either, by #1945's description. (I can't reproduce that one: this machine's SDK copy was serviced to 1.9.)

Suggestion: ask the validator object itself. IDxcVersionInfo ({b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e}) is on the validator that DxcCreateInstance already hands back, so no version.dll binding is needed:

/// `IDxcVersionInfo`: the validator's own version (major, minor).
const IID_IDXC_VERSION_INFO: Guid = Guid(0xb04f_5b50, 0x2059, 0x4f12, [0xa8, 0xff, 0xa1, 0xe0, 0xcd, 0xe1, 0xcc, 0x7e]);

    pub fn version(&self) -> Option<(u32, u32)> {
        // SAFETY: IUnknown::QueryInterface (slot 0) on our object; then
        // IDxcVersionInfo::GetVersion (slot 3) on the interface it hands
        // back, released after.
        unsafe {
            let mut info: *mut c_void = std::ptr::null_mut();
            let qi: unsafe extern "system" fn(Object, *const Guid, *mut *mut c_void) -> Hresult =
                method(self.object, 0);
            if qi(self.object, &IID_IDXC_VERSION_INFO, &mut info) < 0 || info.is_null() {
                return None;
            }
            let info: Object = info.cast();
            let get: unsafe extern "system" fn(Object, *mut u32, *mut u32) -> Hresult =
                method(info, 3);
            let (mut major, mut minor) = (0, 0);
            let hr = get(info, &mut major, &mut minor);
            release(info);
            (hr >= 0).then_some((major, minor))
        }
    }

I wrote this before I saw this PR, so I'm not opening a competing one. With it, the 1.6 validator prints version 1.6 and the warning, and the SDK one prints 1.9 and no warning. Same machine; cargo clippy --workspace --all-targets (with and without --all-features) is clean, and victory-shader --lib passes apart from the Intel iGPU's known hardware-only failures. Feel free to take it.

AI use: Claude Code (Claude Opus 5.5) built and ran both versions and wrote this; the results are from the runs described.

**@⁠AgneyaK** on GitHub · 2026-11-25 02:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7150460757) Tested this PR (`49ee33f`) and found a gap: **the file version doesn't identify the validator, so the warning misses the old ones.** Built `-p victory` on Windows 11 26300 and ran `translate --validate` with two validators that are on this machine: | `dxil.dll` | its file version | `IDxcVersionInfo::GetVersion` | this PR prints | warns? | |---|---|---|---|---| | Windows SDK `10.0.26100.0\x64` (serviced: `1.9.2602.17`, dated 2026-09) | 1.9.2602.17 | **1.9** | `1.9` | no (right) | | a 2021 validator (the one the NVIDIA app's embedded Chromium ships) | **101.6.2112.13** | **1.6** | `101.6` | **no (should)** | Older DXC builds number their files `101.x`, so `major < 1 || (major == 1 && minor < 8)` is false for them. And the case #1945 is about, the SDK DLL whose file version reads `1.8.2502` while it validates as 1.7, would print `1.8` here and not warn either, by #1945's description. (I can't reproduce that one: this machine's SDK copy was serviced to 1.9.) **Suggestion:** ask the validator object itself. `IDxcVersionInfo` (`{b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e}`) is on the validator that `DxcCreateInstance` already hands back, so no `version.dll` binding is needed: ```rust /// `IDxcVersionInfo`: the validator's own version (major, minor). const IID_IDXC_VERSION_INFO: Guid = Guid(0xb04f_5b50, 0x2059, 0x4f12, [0xa8, 0xff, 0xa1, 0xe0, 0xcd, 0xe1, 0xcc, 0x7e]); pub fn version(&self) -> Option<(u32, u32)> { // SAFETY: IUnknown::QueryInterface (slot 0) on our object; then // IDxcVersionInfo::GetVersion (slot 3) on the interface it hands // back, released after. unsafe { let mut info: *mut c_void = std::ptr::null_mut(); let qi: unsafe extern "system" fn(Object, *const Guid, *mut *mut c_void) -> Hresult = method(self.object, 0); if qi(self.object, &IID_IDXC_VERSION_INFO, &mut info) < 0 || info.is_null() { return None; } let info: Object = info.cast(); let get: unsafe extern "system" fn(Object, *mut u32, *mut u32) -> Hresult = method(info, 3); let (mut major, mut minor) = (0, 0); let hr = get(info, &mut major, &mut minor); release(info); (hr >= 0).then_some((major, minor)) } } ``` I wrote this before I saw this PR, so I'm not opening a competing one. With it, the 1.6 validator prints `version 1.6` and the warning, and the SDK one prints `1.9` and no warning. Same machine; `cargo clippy --workspace --all-targets` (with and without `--all-features`) is clean, and `victory-shader --lib` passes apart from the Intel iGPU's known hardware-only failures. Feel free to take it. AI use: Claude Code (Claude Opus 5.5) built and ran both versions and wrote this; the results are from the runs described.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 02:27 UTC · original

I checked the same SDK directory version mentioned in #1945 and two Microsoft-signed standalone x64 DXC releases. The probe queried IDxcVersionInfo::GetVersion on the actual IDxcValidator object and compared it with this PR's fixed file-version predicate.

Source File version Validator API Current PR warns API-based warning
Installed Windows SDK 10.0.26100.0 1.8.2502.11 1.8 No No
Microsoft DXC v1.7.2308 101.7.2308.12 1.7 No Yes
Microsoft DXC v1.8.2502 1.8.2502.8 1.8 No No

The 1.7 compatibility warning is missed with Microsoft's official 1.7 release. My installed SDK copy actually reports engine 1.8, so it is a different SDK DLL build from the one described in #1945 despite the matching SDK directory version. This supports querying the validator interface directly, as @⁠AgneyaK suggested.

This was a tools-only probe. No shaders or game files were used. AI-assisted (OpenAI Codex).

**@⁠BaggyALPHA** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7150744942) I checked the same SDK directory version mentioned in #1945 and two Microsoft-signed standalone x64 DXC releases. The probe queried `IDxcVersionInfo::GetVersion` on the actual `IDxcValidator` object and compared it with this PR's fixed file-version predicate. | Source | File version | Validator API | Current PR warns | API-based warning | | --- | --- | --- | --- | --- | | Installed Windows SDK 10.0.26100.0 | 1.8.2502.11 | 1.8 | No | No | | Microsoft DXC v1.7.2308 | 101.7.2308.12 | 1.7 | No | Yes | | Microsoft DXC v1.8.2502 | 1.8.2502.8 | 1.8 | No | No | The 1.7 compatibility warning is missed with Microsoft's official 1.7 release. My installed SDK copy actually reports engine 1.8, so it is a different SDK DLL build from the one described in #1945 despite the matching SDK directory version. This supports querying the validator interface directly, as @⁠AgneyaK suggested. This was a tools-only probe. No shaders or game files were used. AI-assisted (OpenAI Codex).
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-25 03:06 UTC · original · edited 2026-11-25 03:22 UTC

Triage verdict — Needs changes (49ee33f)

Evidence

  • A follow-up acceptance case for 49ee33f, beyond the file-version mismatch already demonstrated above: Validator::load(None) can load dxil.dll through the normal DLL search path, but it stores no path. version() then returns None, so that successful load never reports an engine version or warns. This can happen when default_path() finds no SDK or override.

Checks and limits

  • The existing major >= 1 test would accept the 101.7 false negative.
  • This is a source review of the two paths; the DLL version measurements are in the reports above.

Next step

  • Could the replacement query IDxcVersionInfo on the loaded validator in both loading paths and report an unavailable interface as unknown?
  • A regression should make an actual 1.7 engine warn even with that file version, keep a supported engine quiet, and cover the successful search-path load.

This verification was AI-assisted.

**@⁠jeremygold02** on GitHub · 2026-11-25 03:06 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7151596611) · edited 2026-11-25 03:22 UTC **Triage verdict — Needs changes** (`49ee33f`) **Evidence** - A follow-up acceptance case for `49ee33f`, beyond the file-version mismatch already demonstrated above: `Validator::load(None)` can load `dxil.dll` through the normal DLL search path, but it stores no `path`. `version()` then returns `None`, so that successful load never reports an engine version or warns. This can happen when `default_path()` finds no SDK or override. **Checks and limits** - The existing `major >= 1` test would accept the `101.7` false negative. - This is a source review of the two paths; the DLL version measurements are in the reports above. **Next step** - Could the replacement query `IDxcVersionInfo` on the loaded validator in both loading paths and report an unavailable interface as unknown? - A regression should make an actual 1.7 engine warn even with that file version, keep a supported engine quiet, and cover the successful search-path load. This verification was AI-assisted.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 08:26 UTC · original · edited 2026-11-26 00:22 UTC

Automated triage for the maintainers.

Needs work. Re-reviewed at dc90fe3, a single rebased commit. The version still comes from the DLL's VS_FIXEDFILEINFO file version (file_version and Validator::version in crates/victory-shader/src/emit/validator.rs), so the points from the last review are all still open:

  • The file version is not the engine version. A DLL stamped 1.8.2502 that validates as 1.7 (#1945) prints 1.8 and doesn't warn. Normalising a 101.x prefix would not change that either: 1.8 stays 1.8.
  • 101.x stamps. The gate in apps/victory/src/translate.rs is still major < 1 || (major == 1 && minor < 8), so 101.7 and 101.6 (measured by AgneyaK, BaggyALPHA and reboot0000-cmd) pass without a warning.
  • Search-path load. Validator::load(None) stores no path, so version() returns None and nothing is printed or warned.
  • The test asserts only major >= 1, which a 101.7 file version also passes.

On your reply: the head doesn't contain what the reply describes. There is no engine_version and no a_prefixed_series_names_the_same_engine test in dc90fe3, so the commit may not have been pushed. Even with it, the first point stays open. The fix that covers all of these is the one from the first comment: query IDxcVersionInfo::GetVersion on the validator object DxcCreateInstance already returns. That also removes the hand-declared version.dll binding and FixedFileInfo. Then call version() once in translate.rs (it is called three times now), and test the warning condition itself.

CI: passing (check).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 08:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7157037498) · edited 2026-11-26 00:22 UTC <!-- victory-triage v1 head=dc90fe3fafbc6e59197dca4f7ec360a4051f6a78 verdict=needs-work at=2026-11-26T00:22:27Z --> Automated triage for the maintainers. **Needs work.** Re-reviewed at `dc90fe3`, a single rebased commit. The version still comes from the DLL's `VS_FIXEDFILEINFO` file version (`file_version` and `Validator::version` in `crates/victory-shader/src/emit/validator.rs`), so the points from the last review are all still open: - **The file version is not the engine version.** A DLL stamped `1.8.2502` that validates as 1.7 (#1945) prints `1.8` and doesn't warn. Normalising a `101.x` prefix would not change that either: `1.8` stays `1.8`. - **`101.x` stamps.** The gate in `apps/victory/src/translate.rs` is still `major < 1 || (major == 1 && minor < 8)`, so `101.7` and `101.6` (measured by AgneyaK, BaggyALPHA and reboot0000-cmd) pass without a warning. - **Search-path load.** `Validator::load(None)` stores no `path`, so `version()` returns `None` and nothing is printed or warned. - The test asserts only `major >= 1`, which a `101.7` file version also passes. On your reply: the head doesn't contain what the reply describes. There is no `engine_version` and no `a_prefixed_series_names_the_same_engine` test in `dc90fe3`, so the commit may not have been pushed. Even with it, the first point stays open. The fix that covers all of these is the one from the first comment: query `IDxcVersionInfo::GetVersion` on the validator object `DxcCreateInstance` already returns. That also removes the hand-declared `version.dll` binding and `FixedFileInfo`. Then call `version()` once in `translate.rs` (it is called three times now), and test the warning condition itself. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-25 18:25 UTC · original

The version printing is the right fix for #1945, and one case looks unhandled: a validator whose version is prefixed with 100, which is how Windows SDK builds stamp it. On this box that is the DLL the default path actually picks.

The gate, as written:

if validator.version().is_some_and(|(major, _)| major < 1)
    || validator.version().is_some_and(|(major, minor)| major == 1 && minor < 8)

and file_version is documented as reading VS_FIXEDFILEINFO, where "the SDK's dxil.dll prints 1.8.2502 there while it is the 1.7 validator".

Measured here, Windows 10 IoT Enterprise LTSC 2021 (19044.7846), SDK 10.0.26100.0 — the DLL Validator::default_path() selects:

installed dxil.dll version Windows reports major >= 1 gate
bin\10.0.26100.0\x64 101.7.2308.24 (FileMajorPart=101, FileMinorPart=7) SILENT — this is the one picked
bin\10.0.22621.0\x64 101.6.2112.13 SILENT
DXC 1.8 release dxil.dll 1.8.2502.8 SILENT, correctly

So on this machine the fixed-info major is 101, not 1, and the gate's two branches (major < 1, or major == 1 && minor < 8) are both false: a 1.7.2308 engine passes the "is it at least 1.8?" test because 101 > 1. Confirmed at runtime, not just read — current main with no VICTORY_DXIL prints

validator    C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll

and no warning line.

This is not the opposite of what #1945 reports; both spellings of the trap defeat a >= 1.8 test. If some SDK builds report (1, 8, 2502, x) in fixed info while another reports (101, 7, 2308, x), then either way the engine that needs flagging walks through: 1.8 >= 1.8 is true, and 101 is greater than 1 by any reading. A threshold on the version cannot decide it; the version needs to be printed and classified, not gated. 101.<x> appears to be the SDK's way of encoding DXC series <x>.<minor> — if that holds, decoding 101.7 to "1.7 series" is enough. A small addition alongside the current test, to normalise the prefix before any comparison happens (shape, not a finished patch — the minor would need to survive too):

// SDK builds prefix the series with 100+: 101.7.2308 IS a 1.7 engine, and a
// `major >= 1` / `>= 1.8` gate accepts it. See #1945.
let (major, minor) = match (major, minor) { (m, n) if m >= 100 => (n, 0), other => other };

I can run #1974 against this machine — four validators of three different series are installed here and the default one is the mis-stamped case — and report whether the warning fires for each, if that's useful before merge.

**@⁠reboot0000-cmd** on GitHub · 2026-11-25 18:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7170895399) The version printing is the right fix for #1945, and one case looks unhandled: a validator whose version is **prefixed with 100**, which is how Windows SDK builds stamp it. On this box that is the DLL the default path actually picks. The gate, as written: ```rust if validator.version().is_some_and(|(major, _)| major < 1) || validator.version().is_some_and(|(major, minor)| major == 1 && minor < 8) ``` and `file_version` is documented as reading `VS_FIXEDFILEINFO`, where "the SDK's `dxil.dll` prints `1.8.2502` there while it is the 1.7 validator". Measured here, Windows 10 IoT Enterprise LTSC 2021 (19044.7846), SDK 10.0.26100.0 — the DLL `Validator::default_path()` selects: | installed `dxil.dll` | version Windows reports | `major >= 1` gate | |---|---|---| | `bin\10.0.26100.0\x64` | **101.7.2308.24** (`FileMajorPart=101, FileMinorPart=7`) | **SILENT** — this is the one picked | | `bin\10.0.22621.0\x64` | 101.6.2112.13 | SILENT | | DXC 1.8 release `dxil.dll` | 1.8.2502.8 | SILENT, correctly | So on this machine the fixed-info major is **101, not 1**, and the gate's two branches (`major < 1`, or `major == 1 && minor < 8`) are both false: a 1.7.2308 engine passes the "is it at least 1.8?" test because 101 > 1. Confirmed at runtime, not just read — current `main` with no `VICTORY_DXIL` prints ``` validator C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll ``` and no warning line. This is not the opposite of what #1945 reports; both spellings of the trap defeat a `>= 1.8` test. If some SDK builds report `(1, 8, 2502, x)` in fixed info while another reports `(101, 7, 2308, x)`, then either way the engine that needs flagging walks through: `1.8 >= 1.8` is true, and `101` is greater than 1 by any reading. A threshold on the version cannot decide it; the version needs to be **printed and classified**, not gated. `101.<x>` appears to be the SDK's way of encoding DXC series `<x>.<minor>` — if that holds, decoding `101.7` to "1.7 series" is enough. A small addition alongside the current test, to normalise the prefix before any comparison happens (shape, not a finished patch — the `minor` would need to survive too): ```rust // SDK builds prefix the series with 100+: 101.7.2308 IS a 1.7 engine, and a // `major >= 1` / `>= 1.8` gate accepts it. See #1945. let (major, minor) = match (major, minor) { (m, n) if m >= 100 => (n, 0), other => other }; ``` I can run #1974 against this machine — four validators of three different series are installed here and the default one is the mis-stamped case — and report whether the warning fires for each, if that's useful before merge.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-25 23:37 UTC · original

Measured the prefixed case, and it is folded in

@⁠reboot0000-cmd's measurement is right and this branch now acts on it: the Windows SDK stamps the engine series with 100, so VS_FIXEDFILEINFO reads 101.7 for what is the 1.7 engine and the gate as it stood (major < 1, or major == 1 && minor < 8) let it through in silence. The pair is normalised before it is printed or tested, in engine_version:

fn engine_version((major, minor): (u16, u16)) -> (u16, u16) {
    if major >= 100 { (major - 100, minor) } else { (major, minor) }
}

a_prefixed_series_names_the_same_engine pins the mapping (101.7 is 1.7, 101.6 is 1.6, and 1.8 and 2.0 are untouched), and Validator::version returns the engine version, so the validator <path> <major>.<minor> line and the warning agree with each other on both spellings of the trap: the SDK build that reports 1.8.2502 in fixed info and the one that reports 101.7.2308.

What this does not prove: that every SDK build spells it one way. If one reports (1, 8, 2502, x) and another (101, 7, 2308, x), both now pass through the same normalisation and the warning fires on the engine, not on the spelling.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-25 23:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7177824562) **Measured the prefixed case, and it is folded in** @⁠reboot0000-cmd's measurement is right and this branch now acts on it: the Windows SDK stamps the engine series with 100, so `VS_FIXEDFILEINFO` reads `101.7` for what is the 1.7 engine and the gate as it stood (`major < 1`, or `major == 1 && minor < 8`) let it through in silence. The pair is normalised before it is printed or tested, in `engine_version`: ```rust fn engine_version((major, minor): (u16, u16)) -> (u16, u16) { if major >= 100 { (major - 100, minor) } else { (major, minor) } } ``` `a_prefixed_series_names_the_same_engine` pins the mapping (`101.7` is `1.7`, `101.6` is `1.6`, and `1.8` and `2.0` are untouched), and `Validator::version` returns the engine version, so the `validator <path> <major>.<minor>` line and the warning agree with each other on both spellings of the trap: the SDK build that reports `1.8.2502` in fixed info and the one that reports `101.7.2308`. What this does not prove: that every SDK build spells it one way. If one reports `(1, 8, 2502, x)` and another `(101, 7, 2308, x)`, both now pass through the same normalisation and the warning fires on the engine, not on the spelling. Written with an AI assistant.
Author
Owner

@⁠reboot0000-cmd on GitHub · 2026-11-26 01:40 UTC · original

Ran this branch on the machine the prefixed case was reported from, since that is the host a warning has to fire on. Windows 10 19044.7846, five dxil.dll engines installed, translate --validate from dc90fe3f against each, with current main beside it for comparison.

dxil.dll its file version engine, from its own version resource branch prints warns?
SDK 10.0.26100.0\x64 — what the default path selects here 101.7.2308.24 1.7 — ProductVersion contains github-release-1.7.2308 101.7 no should warn
SDK 10.0.22621.0\x64 101.6.2112.13 1.6 — token github-release-1.6.2112 101.6 no should warn
SDK 10.0.19041.0\x64 — in-box, stamped as an OS component 10.0.19041.5609, no github-release token not derivable from the stamp 10.0 no see below
DXC 1.8.2502.8 (the one we measure with) 1.8.2502.8 1.8 1.8 no correct
DXC 1.9.2609.5 1.9.2609.5 1.9 1.9 no correct

The third row is a case no arithmetic on (major, minor) can reach. That copy is version-stamped as part of Windows itself — 10.0.19041.5609, product "Microsoft® Windows® Operating System", no release token anywhere in its resources — so the branch prints it as 10.0, which reads as four releases newer than the newest DXC that exists. Subtracting 100 handles a 101.x prefix; on this stamp it changes nothing and stays silent. Of the proposals above, only IDxcVersionInfo classifies this row without guessing, because it asks the loaded engine instead of reading its filename.

The push that landed seven seconds before "it is folded in" does not contain the change — confirming the triage note from 00:22Z, from the build side rather than the source side: engine_version, major - 100 and a_prefixed_series_names_the_same_engine have zero occurrences across every .rs file in dc90fe3f, and apps/victory/src/translate.rs:183-186 still reads

if validator.version().is_some_and(|(major, _)| major < 1)
    || validator.version().is_some_and(|(major, minor)| major == 1 && minor < 8)

which is exactly why rows one and two print a version and say nothing else. On this machine the default engine is the row-one case, so the warning that #1945 exists to produce does not fire on the host that motivated it.

Separately, and not this pull request's doing: with the 19041 copy selected, translate --validate over the archive dies with an access violation immediately after the header — one line of stdout, nothing on stderr, exit -1073741819 (0xC0000005) — on dc90fe3f and on main 61bfc773, with and without the Agility exports. I have only established that the branch neither causes nor fixes it, not whether it is the validator or the loader. Happy to file that separately if it is not already known.

I can re-run these five rows the moment the commit lands — the harness is built, so it is a two-minute job. Versions, paths and exit codes only; no game files.

**@⁠reboot0000-cmd** on GitHub · 2026-11-26 01:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7180007052) Ran this branch on the machine the prefixed case was reported from, since that is the host a warning has to fire on. Windows 10 19044.7846, five `dxil.dll` engines installed, `translate --validate` from `dc90fe3f` against each, with current `main` beside it for comparison. | `dxil.dll` | its file version | engine, from its own version resource | branch prints | warns? | | |---|---|---|---|---|---| | SDK `10.0.26100.0\x64` — **what the default path selects here** | `101.7.2308.24` | **1.7** — `ProductVersion` contains `github-release-1.7.2308` | `101.7` | no | should warn | | SDK `10.0.22621.0\x64` | `101.6.2112.13` | **1.6** — token `github-release-1.6.2112` | `101.6` | no | should warn | | SDK `10.0.19041.0\x64` — in-box, stamped as an OS component | `10.0.19041.5609`, no `github-release` token | not derivable from the stamp | **`10.0`** | no | see below | | DXC `1.8.2502.8` (the one we measure with) | `1.8.2502.8` | 1.8 | `1.8` | no | correct | | DXC `1.9.2609.5` | `1.9.2609.5` | 1.9 | `1.9` | no | correct | **The third row is a case no arithmetic on `(major, minor)` can reach.** That copy is version-stamped as part of Windows itself — `10.0.19041.5609`, product "Microsoft® Windows® Operating System", no release token anywhere in its resources — so the branch prints it as **`10.0`**, which reads as four releases newer than the newest DXC that exists. Subtracting 100 handles a `101.x` prefix; on this stamp it changes nothing and stays silent. Of the proposals above, only `IDxcVersionInfo` classifies this row without guessing, because it asks the loaded engine instead of reading its filename. **The push that landed seven seconds before "it is folded in" does not contain the change** — confirming the triage note from 00:22Z, from the build side rather than the source side: `engine_version`, `major - 100` and `a_prefixed_series_names_the_same_engine` have **zero** occurrences across every `.rs` file in `dc90fe3f`, and `apps/victory/src/translate.rs:183-186` still reads ```rust if validator.version().is_some_and(|(major, _)| major < 1) || validator.version().is_some_and(|(major, minor)| major == 1 && minor < 8) ``` which is exactly why rows one and two print a version and say nothing else. On this machine the default engine is the row-one case, so the warning that #1945 exists to produce does not fire on the host that motivated it. Separately, and **not this pull request's doing**: with the 19041 copy selected, `translate --validate` over the archive dies with an access violation immediately after the header — one line of stdout, nothing on stderr, exit `-1073741819` (`0xC0000005`) — on `dc90fe3f` **and** on `main` `61bfc773`, with and without the Agility exports. I have only established that the branch neither causes nor fixes it, not whether it is the validator or the loader. Happy to file that separately if it is not already known. I can re-run these five rows the moment the commit lands — the harness is built, so it is a two-minute job. Versions, paths and exit codes only; no game files.
Author
Owner

@⁠catminou4 on GitHub · 2026-11-25 02:48 UTC · original · reviewed

Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff.

translate: names which validator engine produced the numbers + warns before… — DXIL validation UX; pairs with #1995/#2002 (three PRs touching translate --validate help text — check overlap).

**@⁠catminou4** on GitHub · 2026-11-25 02:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#pullrequestreview-6051088679) · **reviewed** Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff. translate: names which validator engine produced the numbers + warns before… — DXIL validation UX; pairs with #1995/#2002 (three PRs touching translate --validate help text — check overlap).
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 12:12 UTC · original

The engine version now comes from the validator itself, and the rebase is real this time

You were right on both counts, and the second one was my mistake: the engine_version I described was committed on a detached head and the push sent the commit before it, so dc90fe3 did not contain it. The head is now b115fc9.

What changed, against each point:

  • The file version is not the engine version. Validator::version now asks the object: IDxcValidator::GetVersion (slot 4 of the interface), which is the pair dxc -dumpbin prints as Validator version. The VS_FIXEDFILEINFO stamp is still read, but only to print it next to the engine when the two differ, and as a fallback for a table that does not answer:
    validator    C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll 1.9 (file 1.9)
    
    Measured on this machine, SDK 10.0.26100: the engine answers 1.9, and the file agrees. On the maps you quote, a DLL stamped 1.8.2502 that is 1.7 answers 1.7 here and the warning fires — normalising a 101.x prefix never entered into it.
  • 101.x stamps. The gate in translate.rs no longer sees a file stamp at all, so 101.7 and 101.6 cannot slip through: they are not what the engine answers. engine_version survives only as the fallback's levelling, with a_prefixed_series_names_the_same_engine pinning it.
  • Search-path load. GetVersion needs no path, so Validator::load(None) prints and warns like any other load; the path is used for nothing but the file stamp and the display line.
  • The test. the_engine_version_is_the_validators_own_answer asks the loaded DLL (skips where there is none) and checks the engine answers; the file stamp is checked only to be present, never conflated with the engine.

What this does not prove: that every driver-shipped dxil.dll implements GetVersion — the fallback covers one that does not, and says so by printing the file stamp alone. The repo's check on Windows runs it here; if your box has an older SDK, its line is the test.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 12:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/1974#issuecomment-7191695876) **The engine version now comes from the validator itself, and the rebase is real this time** You were right on both counts, and the second one was my mistake: the `engine_version` I described was committed on a detached head and the push sent the commit before it, so `dc90fe3` did not contain it. The head is now `b115fc9`. What changed, against each point: - **The file version is not the engine version.** `Validator::version` now asks the object: `IDxcValidator::GetVersion` (slot 4 of the interface), which is the pair `dxc -dumpbin` prints as *Validator version*. The `VS_FIXEDFILEINFO` stamp is still read, but only to print it next to the engine when the two differ, and as a fallback for a table that does not answer: ``` validator C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\dxil.dll 1.9 (file 1.9) ``` Measured on this machine, SDK 10.0.26100: the engine answers **1.9**, and the file agrees. On the maps you quote, a DLL stamped `1.8.2502` that is 1.7 answers **1.7** here and the warning fires — normalising a `101.x` prefix never entered into it. - **`101.x` stamps.** The gate in `translate.rs` no longer sees a file stamp at all, so `101.7` and `101.6` cannot slip through: they are not what the engine answers. `engine_version` survives only as the fallback's levelling, with `a_prefixed_series_names_the_same_engine` pinning it. - **Search-path load.** `GetVersion` needs no path, so `Validator::load(None)` prints and warns like any other load; the path is used for nothing but the file stamp and the display line. - **The test.** `the_engine_version_is_the_validators_own_answer` asks the loaded DLL (skips where there is none) and checks the engine answers; the file stamp is checked only to be present, never conflated with the engine. What this does not prove: that every driver-shipped `dxil.dll` implements `GetVersion` — the fallback covers one that does not, and says so by printing the file stamp alone. The repo's `check` on Windows runs it here; if your box has an older SDK, its line is the test. Written with an AI assistant.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1974/head:github-bot/gh-1974'
git switch 'github-bot/gh-1974'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1974'
git switch 'github-bot/gh-1974'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1974'
git switch 'github-bot/gh-1974'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1974'
git switch 'main'
git merge --squash 'github-bot/gh-1974'
git switch 'main'
git merge --ff-only 'github-bot/gh-1974'
git switch 'main'
git merge 'github-bot/gh-1974'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1974
No description provided.