Shaders: sort SDK dxil.dll versions numerically and ignore empty VICTORY_DXIL #3459
No reviewers
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!3459
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3459"
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?
@alexandruiulian201-bot on GitHub · 2026-11-27 03:32 UTC · original
alexandruiulian201-bot:fix/dxil-validator-path-selection→main· +115 −13 · 1 files · 1 commits · openProblem
In
crates/victory-shader/src/emit/validator.rs:Validator::default_path()sorts Windows SDK bin directories lexicographically (versions.sort(); versions.pop()), so a version with fewer digits (such as10.0.9999.0) sorts after a newer version (10.0.26100.0).VICTORY_DXIL=""environment variable is returned asSome(PathBuf::from(""))instead of falling back to the Windows Kits lookup (unlikeVICTORY_CONFIGand other path variables).LoadLibraryWfails inValidator::load, the error message formatsnameincluding its trailing NUL terminator.Fix
newest_sdk_dxil.VICTORY_DXILvalues inresolve_default_pathso they fall back to Windows Kits.LoadLibraryWerror inValidator::load.Verification
cargo test -p victory-shader --lib --features host --locked emit::validator::tests::: 3 passed.cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean.cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings: clean.cargo test -p xtask --bin xtask --locked: 6 passed (repository_passes_policyok).AI-assisted. Synthetic unit tests only (no game files used).
@oni-swr on GitHub · 2026-11-27 04:10 UTC · original
WARP test report for #3459 (AI-assisted (Claude), claimed on #1633 comment 7209455899)
VICTORY_WARP=1 VICTORY_D3D12_WARP=1), rustc 1.98.1 / cargo 1.98.1, Windows SDK 10.0.26100dxil.dllviaVICTORY_DXIL,cargo test -j 4 -p <crate> --lib --locked -- --test-threads=1. No GPU hardware used. No game files involved.63bcca43c6a00a758510398fa43096ce7e4f7df0; head7efc12bf740b8e3de04f5dcd3107804289f0ad8b(already contains this main; merge is a fast-forward, tested tree equals head).victory-shaderlib: main 298 passed / 4 failed / 3 ignored -> head 301 passed / 4 failed / 3 ignored. The 3 new tests (numeric version order, emptyVICTORY_DXILignored, no NUL in the load error) pass. The 4 failures are identical on main and head, so they are not caused by this PR:synthetic_tests::{a_mask_joined_with_data_at_a_uniform_loop_is_its_number, gathers_at_a_level_match_the_hardware, permutes_mask_high_address_bits_and_divergent_branches, permutes_read_the_lane_named_and_zero_from_lanes_left_out}. They look like lane/wave-dependent checks that WARP does not satisfy (I did not investigate the cause). No regressions.u64parts, and non-numeric directory names sort below every real version (None < Some), so a stray folder cannot win. Thename[..len-1]slice assumes the wide name is NUL-terminated, which it is on this path. No concerns.@cloph-dsp on GitHub · 2026-11-27 04:56 UTC · original
Independent CPU-only verification of PR #3459 (
victory-shader: order DXIL SDK versions numerically and tighten default path/error handling).CARGO_TARGET_DIR(D:\Victory-Contrib\target-3459-watch),CARGO_BUILD_JOBS=2.7efc12bf740b8e3de04f5dcd3107804289f0ad8b, merge base63bcca4.cargo test --locked -p victory-shader --lib -- emit::validator::tests::newest_sdk_dxil_orders_versions_numerically --exact --test-threads=1 --quiet->1 passed; 0 failed; 307 filtered.git grep -Ffor the new test name on63bcca4returned no hits (test absent on base).git diff --check 63bcca4 HEADexit 0 (clean).@futurepro62 on GitHub · 2026-11-27 09:07 UTC · original
NVIDIA full-suite run, to go with the reports above by cloph-dsp, oni-swr, since none of them names a GPU run. Tested exact head
7efc12b(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 869 passed, 0 failed, 10 ignored.newest_sdk_dxil_orders_versions_numerically,resolve_default_path_prefers_non_empty_env_and_ignores_empty,load_missing_dll_error_omits_trailing_nul.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.