emit::rect tests fail with the Windows SDK 22621 DXIL validator (PSV0 mismatch) #1337

Open
opened 2026-11-26 17:05:12 +00:00 by jptorres96 · 3 comments
jptorres96 commented 2026-11-26 17:05:12 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by jptorres96 on 2026-11-26T17:05:12Z.


At f85101b, cargo test -p victory-shader --lib, Windows build 26300, RTX 4080 SUPER (driver 621.01):

emit::rect::tests::the_rectangle_stage_is_a_geometry_shader (rect.rs:339)
emit::rect::tests::rectangles_are_drawn_whole (rect.rs:442)

Both panic in Validator::validate:

called Result::unwrap() on an Err value: "error: Container part 'Pipeline State Validation' does not match expected for module.\nValidation failed."

Validator::default_path() picks the newest Windows Kit that ships a dxil.dll. On this machine that is 10.0.22621.0 (dxil.dll 101.6.2112.13).

With VICTORY_DXIL pointing at the dxil.dll from the latest DXC release (1.9.2609.5), all three emit::rect tests pass, and so do the other 229 tests in the crate. The emitted PSV0 seems to need a newer validator than SDK 22621 provides.

Suggestion: have the tests check the validator version (IDxcVersionInfo) and skip validation below the required one, or document the minimum SDK or DXC version.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6631575925 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1337). Originally posted by [jptorres96](https://github.com/jptorres96) on 2026-11-26T17:05:12Z. --- At f85101b, cargo test -p victory-shader --lib, Windows build 26300, RTX 4080 SUPER (driver 621.01): emit::rect::tests::the_rectangle_stage_is_a_geometry_shader (rect.rs:339) emit::rect::tests::rectangles_are_drawn_whole (rect.rs:442) Both panic in Validator::validate: called `Result::unwrap()` on an `Err` value: "error: Container part 'Pipeline State Validation' does not match expected for module.\nValidation failed." Validator::default_path() picks the newest Windows Kit that ships a dxil.dll. On this machine that is 10.0.22621.0 (dxil.dll 101.6.2112.13). With VICTORY_DXIL pointing at the dxil.dll from the latest DXC release (1.9.2609.5), all three emit::rect tests pass, and so do the other 229 tests in the crate. The emitted PSV0 seems to need a newer validator than SDK 22621 provides. Suggestion: have the tests check the validator version (IDxcVersionInfo) and skip validation below the required one, or document the minimum SDK or DXC version.
Danty-Cod commented 2026-11-27 04:26:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Danty-Cod on 2026-11-27T04:26:05Z.


I'd like to claim this issue and work on a fix. Could you assign it to me?

<!-- greyfinch-sync:fxceless/victory-fork:comment:7209794869 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1337#issuecomment-7209794869). Originally posted by [Danty-Cod](https://github.com/Danty-Cod) on 2026-11-27T04:26:05Z. --- I'd like to claim this issue and work on a fix. Could you assign it to me?
jptorres96 commented 2026-11-27 09:33:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by jptorres96 on 2026-11-27T09:33:06Z.


I'd like to claim this issue and work on a fix. Could you assign it to me?

Thanks! I'm the reporter, not a maintainer, so assignment is up to @fxceless. I'm happy for you to take it though.

I can reproduce it on demand: SDK 10.0.22621.0 dxil.dll 101.6.2112.13 fails, and DXC 1.9.2609.5 via VICTORY_DXIL passes. If you link your branch, I'll run cargo test -p victory-shader --lib emit::rect with both validators and report back.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7214814507 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1337#issuecomment-7214814507). Originally posted by [jptorres96](https://github.com/jptorres96) on 2026-11-27T09:33:06Z. --- > I'd like to claim this issue and work on a fix. Could you assign it to me? Thanks! I'm the reporter, not a maintainer, so assignment is up to @fxceless. I'm happy for you to take it though. I can reproduce it on demand: SDK 10.0.22621.0 dxil.dll 101.6.2112.13 fails, and DXC 1.9.2609.5 via VICTORY_DXIL passes. If you link your branch, I'll run cargo test -p victory-shader --lib emit::rect with both validators and report back.
Danty-Cod commented 2026-11-27 13:42:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Danty-Cod on 2026-11-27T13:42:45Z.


https://github.com/fxceless/victory-fork/pull/1433

<!-- greyfinch-sync:fxceless/victory-fork:comment:7219849709 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1337#issuecomment-7219849709). Originally posted by [Danty-Cod](https://github.com/Danty-Cod) on 2026-11-27T13:42:45Z. --- https://github.com/fxceless/victory-fork/pull/1433
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
fxceless/victory-fork#1337
No description provided.