Shader tests: the descriptor-join tests build off Windows #2766
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!2766
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@lcg007xd-c on GitHub · 2026-11-25 20:05 UTC · original
lcg007xd-c:fix/shader-tests-build-off-windows→main· +3 −0 · 1 files · 1 commits · openWhat 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
@cloph-dsp on GitHub · 2026-11-25 20:32 UTC · original
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).
@kotekompotek on GitHub · 2026-11-25 20:37 UTC · original
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.
@fuzeofficlal on GitHub · 2026-11-25 20:38 UTC · original
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.@Marvisak on GitHub · 2026-11-25 23:20 UTC · original
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
@Dukestar69 on GitHub · 2026-11-26 03:47 UTC · original · approved these changes
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).
@futurepro62 on GitHub · 2026-11-26 09:37 UTC · original
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
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.