Strict VALU tests silently skip DXIL validation when the validator DLL cannot load #131

Open
opened 2026-11-27 15:24:17 +00:00 by github-bot · 0 comments
Owner

@⁠lmouz823-lang on GitHub · 2026-11-27 15:18 UTC · original

At main 15779f8197fe846b0cdf4509c15a8ef00433e216, crates/victory-shader/src/emit/valu_tests.rs → build_cs uses if let Ok(mut v) = Validator::load(...). A load error bypasses both DXIL validation and the container-hash check without a diagnostic, including under VICTORY_STRICT_TESTS=1. Device execution alone can therefore appear to satisfy the strict validation gate.

I am taking this small follow-up to #43: route only this load-error branch through the existing test_skip::skip, preserving successful validation and ordinary non-strict GPU execution. I checked the open PRs; #68 concerns LLVM verification and #126 concerns reporting/scripts, not this branch.

Acceptance plan, using the existing exact packed_add_selects_halves_of_inline_constants test in separate processes:

  • Reproduce the silent omission with strict mode and an explicit nonexistent VICTORY_DXIL path on the unchanged source.
  • With the fix, the same strict run must fail clearly before GPU execution.
  • A non-strict run must emit the skip diagnostic while retaining GPU execution.
  • Strict mode with the installed SDK validator must execute and pass on RTX 4060 Laptop and WARP without a skip.

This report is based on source inspection; I will attach the actual before/after results with the PR. No game data is involved. AI-assisted with Codex.

**@⁠lmouz823-lang** on GitHub · 2026-11-27 15:18 UTC · [original](https://github.com/uiliannn/VItoriaBr/issues/131) At main `15779f8197fe846b0cdf4509c15a8ef00433e216`, `crates/victory-shader/src/emit/valu_tests.rs` → `build_cs` uses `if let Ok(mut v) = Validator::load(...)`. A load error bypasses both DXIL validation and the container-hash check without a diagnostic, including under `VICTORY_STRICT_TESTS=1`. Device execution alone can therefore appear to satisfy the strict validation gate. I am taking this small follow-up to #43: route only this load-error branch through the existing `test_skip::skip`, preserving successful validation and ordinary non-strict GPU execution. I checked the open PRs; #68 concerns LLVM verification and #126 concerns reporting/scripts, not this branch. Acceptance plan, using the existing exact `packed_add_selects_halves_of_inline_constants` test in separate processes: - Reproduce the silent omission with strict mode and an explicit nonexistent `VICTORY_DXIL` path on the unchanged source. - With the fix, the same strict run must fail clearly before GPU execution. - A non-strict run must emit the skip diagnostic while retaining GPU execution. - Strict mode with the installed SDK validator must execute and pass on RTX 4060 Laptop and WARP without a skip. This report is based on source inspection; I will attach the actual before/after results with the PR. No game data is involved. AI-assisted with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:24:17 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.