Repository navigation
Test Wave32 spilled lane masks at control-flow joins - #1784
rezioliver-collab wants to merge 1 commit into
Conversation
VIctory V2: community PRs, merged and testedOpen PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (70564ae), cargo test -p victory-shader --locked → 118 passed, 0 failed. GPU execution tests (valu_tests/host) are #[cfg(all(test, windows))] and run only on Windows; macOS covers lowering/structure unit tests.
Wave32 spilled lane masks at control-flow joins: wave32_spilled_mask_at_join lowers through try_lower_valu_cs. +2 macOS tests.
|
Automated triage for the maintainers. Merge candidate (worth a look). Now that it merges cleanly: this adds Generated by Claude Code |
79d6f36 to
ca8652e
Compare
mainalready tracks a Wave32 lane mask spilled to a VGPR lane and read back. Its unit test checks the restored mask in the structuring pass. This PR adds a Windows D3D12 regression for what happens when a uniform branch chooses between that restored mask and a different mask computed on the other path. Existing spill-tracking test onmainThe synthetic shader dispatches one 64-thread group spanning two Wave32 waves. The restored mask selects thread IDs below 40. The direct mask selects IDs below 24. Each selected thread writes
5and every other thread writes1to its own slot in a zeroed buffer, so the readback catches a wrong mask or a missing store.Verification
940d32f, the Windows SDK DXIL validator (1.8.2502.11) accepted the shader. An RTX 5080 returned all 64 expected values for each selector. The local WARP adapter reported no Wave32 support and skipped dispatch.a lane-mask join of an untracked mask, the same error seen onffe310ebefore spill tracking landed.Full local Windows workspace tests
The unmodified
mainrun had 696 passing tests, 5 failures and 10 ignored tests. The rebased branch had 697 passing tests, the same 5 failures and 10 ignored tests. The added pass waswave32_spilled_mask_at_join.descriptor::host::tests::dynamic_slots_are_held_until_releasedemit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_strideemit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosemit::synthetic_tests::gathers_at_a_level_match_the_hardwarememory::tests::lists_share_a_table_and_copies_keep_their_viewsAI-assisted with OpenAI Codex.