Shader tests: the descriptor-join tests build off Windows #2764
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2766"
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?
Imported from Marvisak/VIctory. Originally posted by lcg007xd-c on 2026-11-25T20:05:08Z.
What this fixes
Since
54ab406("Shaders: descriptors joined by nested control flow, again"),cargo test -p victory-shaderdoes not build on a host that is not Windows:emit::validatoris#[cfg(windows)], and three tests added there call it unguarded:descriptors_joined_by_nested_control_flow_lower_to_one_uniform_handlea_descriptor_skipped_only_by_lanes_that_never_run_needs_no_sourcedescriptors_reloaded_from_a_root_table_share_one_handleThe change
Each test's optional
dxil.dllvalidation block is now under#[cfg(windows)], so on Windows nothing changes. On other hosts, the lowering and the handle-count assertions still run.Tested
cargo test -p victory-shader --libwent from 6 build errors to 158 passed, 0 failed, 2 ignored.rustfmt --checkonlower.rsshows the same output before and after.🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T20:32:25Z.
Local verification on Windows / rustc 1.100.0 / MSVC, no game data, no GPU needed, no clippy/rustup.
13f91caon this machine (pre-existing).AI-assisted (Hy4 flash).
Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T20:37:42Z.
Correct: Validator::load wraps dxil.dll which only exists on Windows - gating the probe keeps the descriptor-join assertions running on other hosts instead of failing to compile.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T20:38:11Z.
Reviewed and verified
25bd5a85on Windows 11 againstmain(13f91ca).Validatorblocks inlower.rstests with#[cfg(windows)]cleanly fixes non-Windows test builds with zero change to Windows behavior.lower/resourcetests pass (6/6) both default and with--features host+dxil.dll;cargo clippy(default &--features host) 0 warnings;cargo xtask policy184 files ok; cleangit merge-treevs13f91ca,#2768, and#2774.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T23:20:52Z.
Automated triage for the maintainers.
This puts
#[cfg(windows)]on the optionaldxil.dllvalidation blocks of three descriptor-join tests incrates/victory-shader/src/emit/lower.rs(descriptors_joined_by_nested_control_flow_lower_to_one_uniform_handle,a_descriptor_skipped_only_by_lanes_that_never_run_needs_no_source,descriptors_reloaded_from_a_root_table_share_one_handle).emit::validatoris declared#[cfg(windows)]inemit/mod.rsand the other test uses ofValidator::loadinlower.rsare already gated the same way, so these three were the odd ones out; on Windows nothing changes, and the lowering assertions still run elsewhere. The three blocks are still unguarded on currentmain, and the PR merges cleanly. CI (check) passes.This is a recommendation for a maintainer to look, not an approval.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T03:47:30Z.
Review: APPROVED
Tested merged onto
origin/main(63bcca4) on Windows 11 x64:cargo test -p victory-shader --lib emit::lower::tests: 33 passed, 0 failed.cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-26T09:37:25Z.
NVIDIA full-suite run, to go with the reports above by Dukestar69, cloph-dsp, since none of them names a GPU run. Tested exact head
aa952d6(on its base13f91ca).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: 773 passed, 0 failed, 9 ignored.#[test]functions in the diff.--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
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-27T01:46:36Z.
Review: APPROVED
Reviewed
aa952d6e51cbb24da10545501300595e9859eb19.LGTM — gating the three
Validator::loadchecks incrates/victory-shader/src/emit/lower.rswith#[cfg(windows)]removes the remaining unguarded references to the Windows-onlyvalidatormodule while preservinglower_with,Shader::finish, and the handle-count assertions on all targets and keeping full DXIL validation on Windows.Verified locally:
cargo xtask policy(191 files ok),cargo clippy -p victory-shader --all-targets/--all-features(-D warnings), andemit::lower::tests(33 passed) all pass cleanly, with zero newrustfmtdiffs.Validator::load/default_pathsites incrates/victory-shader: every remaining reference is nowwindows-gated.Non-blocking note:
let l = ...stays immutable); off-Windowsrustc --test -D warningsstill hits 5 pre-existing lints unrelated to this change (Attr/Shader/msinemit/mod.rsandLowered::rovs/loweredinemit/lower.rs).Imported from Marvisak/VIctory. Originally posted by lcg007xd-c on 2026-12-01T13:32:01Z.
@greptileai Please review the latest changes.
Imported from Marvisak/VIctory. Originally posted by lcg007xd-c on 2026-12-01T14:24:10Z.
@Marvisak @Dukestar69 Please review this contribution when you have time.
@greptileai Please review the current changes.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.