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

Open
opened 2026-11-27 15:18:21 +00:00 by lmouz823-lang · 0 comments
lmouz823-lang commented 2026-11-27 15:18:21 +00:00 (Migrated from github.com)
Contributor

Imported from uiliannn/VItoriaBr. Originally posted by lmouz823-lang on 2026-11-27T15:18:21Z.


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.

<!-- greyfinch-sync:uiliannn/VItoriaBr:issue:6649237981 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VItoriaBr/issues/131). Originally posted by [lmouz823-lang](https://github.com/lmouz823-lang) on 2026-11-27T15:18:21Z. --- 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.
Sign in to join this conversation.
No labels
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.

Reference
uiliannn/VItoriaBr#131
No description provided.