Skip to content

Rect tests: skip validation on a validator older than DXC 1.8 (#1337) - #1433

Open
Danty-Cod wants to merge 1 commit into
fxceless:mainfrom
Danty-Cod:fix/validator-version-1337
Open

Danty-Cod wants to merge 1 commit into
fxceless:mainfrom
Danty-Cod:fix/validator-version-1337

Conversation

@Danty-Cod

Copy link
Copy Markdown

Fixes #1337.

  • Validator::version() reads the validator version through IDxcVersionInfo.
  • Validator::checks_psv() is true from DXC 1.8 (PSV_VALIDATOR).
  • The two emit::rect tests skip validation when dxil.dll is older (Windows SDK 10.0.22621 ships 1.6), instead of panicking.
  • New test validator_reports_its_version.

Tested with Windows SDK 10.0.26100 (validator 1.8): cargo test -p victory-shader --lib 253 passed, 0 failed. Not tested with SDK 22621 (not on this machine).

@jptorres96

Copy link
Copy Markdown

Tested the case you couldn't: Windows SDK 10.0.22621 validator (dxil.dll 101.6.2112.13, no VICTORY_DXIL), RTX 4080 SUPER, Windows build 26300, branch fix/validator-version-1337.

cargo test --locked -p victory-shader --lib -- emit::rect validator_reports_its_version:

  • rectangle_stages_that_cannot_be_made_are_refused ok
  • the_rectangle_stage_is_a_geometry_shader ok
  • rectangles_are_drawn_whole ok
  • validator_reports_its_version ok

Before this branch, the two middle ones panicked with the PSV0 mismatch on this machine (#1337). Thanks for the fix.

Copy link
Copy Markdown

Xbox2Windows #3241 likewise distinguishes validator environment from a translator regression. A test receipt for this gate can include two entries with identical generated bytecode, one with an older validator returning an explicit capability skip and one at the supported version running validation. Keep the exact loaded DLL version with each result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants