Tests: four races, the BCPack oracle, the shader key's stale names, and a loop-latch test #3061
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3061
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3061"
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?
@Adriwin06 on GitHub · 2026-11-29 19:52 UTC · original
Adriwin06:tests-races-and-key→main· +86 −17 · 7 files · 3 commits · openWhat it changes
3 small changes of the same kind, one commit each, so each can be reviewed, reverted or left out on its own:
Tests: four races, a timing test on WARP and the BCPack oracle, which fail on main or on a busy runner
had announced its range by then. It now waits (up to 5 s) until
state().writingshows the range, so a late-scheduled writer nolonger fails it.
latetests gave their memory back, and theother test could be handed the same pages and find them already
learned (
latehas no forgetting) before it learned anything. Thememory is now leaked (
std::mem::forget) so it is never anothertest's.
a hardware GPU; on a software adapter (WARP) it now says so and
returns. The root-constants test still covers the fill path.
hold one MENU_ENV mutex, since the save note reads both and two such
tests at once saw each other's.
entry through its pre-settle assertions and settles it itself, so
another test taking the lock cannot drain the entry first.
word after the widths is pixel 0's index and all 32 slots are read
in order, the same layout as
Tables::builtin(f9de61c5).Shader cache: the key's test lists only switches the translator still reads (#479's revert)
1b4b6cd4restored the GPU side of the reverted #479 and with it fiveswitch names in shader_cache: VICTORY_SCALAR_SPLITS in KEYED, and the
differential fuzzer's VICTORY_ORACLE_RUNS, _SEED, _AVOID and _OUT in the
test's NOT_TRANSLATION list. The translator's side and oracle_tests.rs
stayed reverted, so nothing in victory-shader reads any of the five:
the key took a value that changes no translation, and
shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails
on main ("VICTORY_SCALAR_SPLITS is not read by the translator any
more"). The five are taken out; they go back with #479's shader side.
Shaders: a test that a block closing two loops keeps one back edge
The empty-latch fold leaves a block that is already another loop's
latch alone, since it would get two back edges, which
single_back_edges took apart for vkd3d-proton's dxil-spirv. Says so
where the fold is decided and adds a test for it.
Test: bitcode::tests::a_block_that_closes_two_loops_gets_one_back_edge.
From DoubleGhosty/cool_fox@f7d5b50 (Hasusmogus), GPL-3.0-or-later.
How it was tested
cargo testpassed for the crates it touches:cargo test -p victory-formats --lib -- bcpack: 15 passed (main fails 3 oracle_parity tests);cargo test -p victory-gpu --lib -- rangelock:: card_steps:: host::menu:: watch::: 97 passed, three runs in a rowcargo test -p victory-gpu --lib -- shader_cache::: 11 passed (main fails every_switch_of_the_translator_is_in_the_key; this passes it)cargo test -p victory-shader --lib -- bitcode::tests::a_block_that_closes: 1 passedcargo clippy --workspace --all-targets --locked: no finding that main does not already have (main has 34 of its own, which is why the Clippy step of CI is red on main itself).cargo xtask policy: no new finding (main fails it on crates/victory-loader/src/heap_sites/frame_users.rs).cargo clippyalso with--all-featuresadds no finding, andcargo test --workspace --lockedfails only tests main also fails on this machine: the five shader tests that fail on main here too (WARP's SM 6.2 and the validator) (barycentric_tests::first_half_values_render_on_hardware_and_warp, hw_tests::split_lds_wave32_read_after_read_barrier_coalescing_and_parity, intersect_tests::flat_global_stores_and_atomics_fence_uavs_at_group_barriers_across_waves, rect::tests::rectangles_are_drawn_whole, rect::tests::the_rectangle_stage_is_a_geometry_shader) and xtask's repository_passes_policy (frame_users.rs). 2208 passed, including five that fail on main (three BCPack oracle tests, the menu save race, the shader key test).Checked for overlap
🤖 Generated with Claude Code
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-29 19:54 UTC · original · reviewed
🟢 Approval recommended
The review has no active issues requiring resolution.
No open issues 🎉
What changed in this PR
This PR improves test reliability across the GPU and format crates, removes stale shader-cache switch names left after the partial revert of #479, and adds regression coverage for nested-loop latch handling.
Changes:
crates/victory-shader/src/emit/bitcode.rscrates/victory-gpu/src/watch.rscrates/victory-gpu/src/shader_cache.rscrates/victory-gpu/src/rangelock.rscrates/victory-gpu/src/host/menu.rscrates/victory-gpu/src/host/card_steps.rscrates/victory-formats/src/bcpack.rsReview effort: Balanced
github-bot referenced this pull request2026-11-30 01:48:36 +00:00
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.