Validator victory picks is a 2023 dxil.dll that prints "1.8.2502" while behaving like 1.7 (15,054 false PSV failures) #1945
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1945
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?
@reboot0000-cmd on GitHub · 2026-11-25 01:34 UTC · original
emit/validator.rs::default_path()takes the newestWindows Kits\10\bin\<ver>\x64\dxil.dll. On SDK 10.0.26100 that DLL is DXC validator 1.7.2308 (real product version 101.7.2308.24), but its FileVersion resource prints 1.8.2502 - which is why #201 is titled "1.8.2502" and #1247 reports the same. Same binary, same corpus, only the validator swapped (offlinevictory translate --validateover a local 1.0.2.1 shader archive, 26,503 containers / 26,084 programs):Mechanism: the 1.7 validator regenerates the whole PSV0 blob from the module and memcmps it; our writer deduplicates the PSV0 semantic-name string table where DXC's appends one name per signature element, so any repeated semantic name mismatches. Proven on 21,768 of 21,768 mapped modules, and experimentally: expanding only that string table flips the SDK validator from the PSV error to accept, 4 of 4 samples, with byte-identical rebuilds reproducing the original outcome. #1208 fixes the writer; the version question is separate. DXC 1.8 replaced the memcmp with a content verifier that never rebuilds the table, which is why nothing in our output changed between the two outcomes.
Distinction from #1299 (merged docs): that documents an older SDK validator failing with "Unknown shader model ps_6_6". This is the validator the default lookup actually selects, failing silently on a fifth of the corpus and misreporting its own version, so reports look like shader defects.
Why it matters now: offline benchmarks that rank PRs by "programs that now validate" on the SDK validator (#1247, and e.g. #1563's measurement) are largely ranking how many of these false rejections each PR happens to clear.
Proposal (small):
translate --validate, so a report states which engine produced its numbers. FileVersion "1.8.2502" does not distinguish 1.7 from 1.8.translate --help, alongside the compiler lookup in #684.NEW, measured on current main today (why this is urgent rather than cosmetic): PR #1065's fix is to declare validator 1.8 on compute programs that sample with implicit derivatives - 735 programs on main
70564ae0. Building main with that change (valver 1.8 + PSVRuntimeInfo v3) and validating with the DEFAULT SDK validator gives:The SDK's engine is 1.7, so it refuses every module that declares 1.8: under the default validator, landing #1065 turns 25,591 modules from "15,054 false PSV failures" into "25,591 outright refusals", and a tester on the default path sees the compute fix as a total regression. Also re-checked on current main: emit/validator.rs::default_path() still takes the newest SDK directory, and container.rs::psv() still deduplicates the name string table (find(&strings, &needle)), i.e. #1208 is unmerged - so the false rejections are live right now for anyone running translate --validate with defaults.
Machine: Windows 11, Rust 1.98.1, offline
victory translate. No game data attached.github-bot referenced this issue2026-11-26 04:50:27 +00:00
@fiestorra on GitHub · 2026-11-25 02:09 UTC · original
translate --validatenow says which engine it is, and warns when it is one whose PSV0 verdicts cannot be trustedTaking 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):
— the version is read from the DLL's own resource (
VS_FIXEDFILEINFO) throughversion.dll, not from the path and not from what Explorer shows, because the latter is exactly what misled the earlier reports: FileVersion1.8.2502on 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 invalidator.rswith#[link(name = "version")]rather than growing a dependency onwindowsfor a line of output.When the validator predates 1.8, one more line follows:
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
PSV0and compares, so our deduplicated name table — #1208 — is rejected), and the way out is to pointVICTORY_DXILat 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 nodxil.dllor it has no version resource;a_missing_dll_has_no_version— a path that is not there answersNonerather than a wrong version.Verification:
cargo test -p victory-shader --locked --lib249 passed, 3 ignored;cargo test --workspace --locked26 suites ok, with the one failuremainalso has in a session without a desktop (lifecycle::tests::showing_a_title_window_shows_its_stand_in);cargo clippy --workspace --all-targetswith and without--all-featuresclean under-D warnings;rustfmt --checkclean on both files (0 hunks, as onmain).Not done, from the proposal: the third point — naming the recommended
VICTORY_DXILintranslate --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.
@DesertGamer on GitHub · 2026-11-25 02:27 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@fiestorra on GitHub · 2026-11-25 02:39 UTC · original
Third point of the proposal:
VICTORY_DXILand the version warning are intranslate --validate's helpThe help for
--validatenow reads, after the line it already had:I deferred this last time because #684 is reshaping where the compiler is looked up and the help text could have collided with it. #684 is still open and does not touch
--validate's text — it is about finding the PC test compiler — so the collision I was avoiding does not exist, and the note is worth having now: the thing it is meant to prevent is a report that quotes a validation count without the engine that produced it.Documentation only, no behaviour: the version line and the warning have been there since #1974.
Recipe:
cargo test --workspace --locked26 suites, with the one failuremainalso has in a session without a desktop (lifecycle::tests::showing_a_title_window_shows_its_stand_in);clippy --workspace --all-targetswith and without--all-featuresclean under-D warnings;rustfmt --check0 hunks on the file, as onmain.Pull request: #2004
No game data is involved: help text.
Written with an AI assistant.
@Marvisak on GitHub · 2026-11-25 12:53 UTC · original
Automated triage for the maintainers.
Confirmed in
main(940d32f), on both halves the report names:Validator::default_pathincrates/victory-shader/src/emit/validator.rstakesVICTORY_DXILif set, else the newestWindows Kits\10\bin\<ver>\x64\dxil.dll. Nothing checks or prints which validator engine that is.psvincrates/victory-shader/src/emit/container.rsdeduplicates the PSV0 semantic-name string table (findover the strings already written). A validator that rebuilds PSV0 and compares it rejects that.Open pull requests:
VICTORY_DXILnote totranslate --validate's help.Note for reviewers of #1974: the output it shows reads
1.9for the SDK 10.0.26100dxil.dll, while the report says that DLL's FileVersion is misleading. It is worth checking which version field the PR reads before relying on the warning. Until this is settled, validation counts in PR comparisons should say whichdxil.dllproduced them.Generated by Claude Code