Shaders: ballot divergent-loop masks at reconverged reads (#1498) #1587
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!1587
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1587"
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?
@Ctrl-Alt-Haze on GitHub · 2026-11-24 19:29 UTC · original
Ctrl-Alt-Haze:fix/shader-1498-divergent-loop-mask→main· +1215 −19 · 3 files · 1 commits · openFixes #1498.
Summary
When a lane mask (such as a divergent-loop exit mask
s[10:11]or a partial-bit mask updated across loop iterations) is initialized before a loop, updated inside divergent control flow, and later read as data (e.g.s_bcnt1_i32_b64) after the loop reconverges,mask_dwordpreviously always emittedwaveActiveBallotat the mask'sdef_blockinside the loop — capturing only the lanes still active on that iteration rather than the full reconverged wave.This PR adds structured ballot-site placement and sound mask-origin analysis across
crates/victory-shader:structure.rs:Structured::ballot_site/covers(compute_ipdom,compute_loops,compute_wave_reach, bounded-monotonecompute_writerswith a 32-block widening cap) selectsBallotSite::Def,BallotSite::Read(reconverged post-loop read site), orNonewhen a mask may hold1bits in lanes not active/reconverged at either block ("a lane mask holding lanes elsewhere read as data").same_itertracking identifies masks provably holding1bits only in lanes active inEXECat their definition block on the same iteration (v_cmp*/v_cmpx*, entry/phiEXEC, and same-blockEXEC-boundedSOPops):def == read_block,ballot_sitereturnsSome(BallotSite::Read).def != read_block,ballot_sitereturnsSome(BallotSite::Def)only when!div_loops[def], and explicitly refuses (None) whendefis inside a divergent loop (refusing post-loop reads of per-iterationv_cmpmasks).promote_phi_masksandphi_maskpromote loop-carried phis that receive a derived mask on any edge (including back edges).emit/lower.rs:masks/highsasVal::Missing("a lane mask")so mask reads resolve to per-lanei1phis or wave ballots rather than raw SGPR dwords, and keys cached ballots by(lo, at)(DXIL block) rather thanloalone.emit/lower.rs,emit/valu_tests.rs,structure.rs):#1498tests, inner-ifloop-accumulated mask test, partial-bit subset and earlier-iteration loop-phi GPU tests, refusal tests for reads inside a divergent loop / narrowed branch / outer-initialized mask / post-loop read of a divergent-loopv_cmp, andfresh_vcmp_inside_divergent_loop_counts_active_lanes_per_iteration(verified on both RTX 5070 Ti and WARP).Clean-room corpus check (
victory translate --validate, 26,503 containers / 26,084 programs)Comparing
upstream/main(940d32f) vs#1587(a8b22d9):940d32femitted / validateda8b22d9emitted / validatedPre-emission
emit: a lane mask holding lanes elsewhere read as datacatches 26 programs cleanly (-21formerly-validatedCsplus the formerlane-mask join of an untracked maskentries, reduced from-138on8d1d537), and 1 previously refusedCsnow lowers to an existingdxil.dllvalidation failure.Tested (
a8b22d9, Windows 11 x64, NVIDIA GeForce RTX 5070 Ti + WARP)cargo xtask policy->asset policy: 182 files okcargo clippy --workspace --all-targets --locked -- -D warnings-> passed (0 warnings)cargo clippy -p victory-shader --features host --all-targets --locked -- -D warnings-> passed (0 warnings)cargo test --workspace --locked --exclude victory-shader --exclude victory-gpu-> 311 passed, 0 failed, 5 ignoredcargo test -p victory-shader --features host --locked -- divergent_loop --test-threads=1-> 7 passed, 0 failedcargo test -p victory-shader --features host --locked -- --test-threads=1(RTX 5070 Ti) -> 250 passed, 3 failed, 3 ignored (only pre-existing940d32ffailures:stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardware)$env:VICTORY_D3D12_WARP='1'; cargo test -p victory-shader --features host --locked -- --test-threads=1(WARP) -> 250 passed, 3 failed, 3 ignored (same 3 pre-existing940d32ffailures)cargo test -p victory-gpu --locked -- --test-threads=1(RTX 5070 Ti) -> 141 passed, 2 failed, 2 ignored (only pre-existing940d32ffailures:descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views)AI use: Antigravity (Google DeepMind) implemented, verified on RTX 5070 Ti + WARP, and wrote this PR description.
@upipibi on GitHub · 2026-11-24 20:01 UTC · original
Ampere check at
ba565a8(on currentmain): RTX 3070, driver 616.56, Windows 11.issue_1498_wave32_divergent_loop_mask_counts_all_32_lanesandpartial_bit_divergent_loop_mask_counts_exact_subset. They skip only WARP, which has noWaveSize(32).cargo test -p victory-shader: 125 passed, 0 failed, 1 ignored, 2 of 2 runs.Synthetic tests only, no game files. AI-assisted (Claude Code).
@Ctrl-Alt-Haze on GitHub · 2026-11-24 20:12 UTC · original
@upipibi Thanks for verifying
ba565a8on RTX 3070 (Ampere) across all 6#1498tests!@Ctrl-Alt-Haze on GitHub · 2026-11-24 22:06 UTC · original
Rebased onto upstream
main(70564ae) at4c8eb15:ballot_siteintomask_dwordwhile preserving8af0472'smask_numberfallback for non-active masks.divergent_loop_mask_read_inside_loop_or_narrowed_branch_is_refusedso the non-loops_not_b32narrowed-branch case asserts the upstream8af0472whole-wave lowering (while keeping the divergent-loop inside-loop, narrowed-EXEC, and nonzero pre-ifrefusal cases).70564ae's newHostShaderfields tobuild_wave32_uav_cs.Verified locally on Windows 11 x64 / NVIDIA GeForce RTX 5070 Ti + WARP:
cargo xtask policy: passed (174 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings(default &--all-features): passeddivergent_looptests:6 passed; 0 failed--locked -- --test-threads=1):victory1 passed,victory-core11 passed,victory-formats23 passed / 4 ignored,victory-game15 passed,victory-hle99 passed (97 unit + 1fidelityfx+ 1no_dll_planting),victory-loader25 passed (22 unit + 2load_probe+ 1title_dlls),victory-pe7 passed,victory-pipeline4 passed,xtask4 passedcargo test -p victory-gpu --locked -- --test-threads=1:76 passed; 2 failed; 1 ignored(pre-existing on clean70564ae:dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views)cargo test -p victory-shader --features host --locked(hardware):211 passed; 3 failed; 2 ignored(pre-existing on clean70564aeon RTX 5070 Ti:stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardware)VICTORY_WARP=1 cargo test -p victory-shader --features host --locked:212 passed; 2 failed; 2 ignored(pre-existinggathers_at_a_level_match_the_hardware+permutes_read_the_lane_named_and_zero_from_lanes_left_outwhich skips underVICTORY_WARP=1and passed on RTX hardware)@upipibi on GitHub · 2026-11-24 22:15 UTC · original
At
4c8eb15(onmain70564ae) thevictory-shadertests don't build:That is
build_wave32_uav_cs:main'sHostShadergained fields since the first version.main'sbuild_valu_cs(line 145) sets them. Adding the same six lines afterroot_srvsfixes it:With that applied locally (RTX 3070, driver 616.56, Windows 11):
issue_1498_wave64_divergent_loop_mask_ballots_after_loop,issue_1498_wave32_divergent_loop_mask_counts_all_32_lanesandpartial_bit_divergent_loop_mask_counts_exact_subsetpass.cargo test -p victory-shader --locked: 211 passed, 3 failed, 2 ignored, 2 of 2 runs. The 3 are the NVIDIA heap-size failures #1744 reports onmain(a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,a_heap_buffer_read_by_element_takes_the_views_stride,gathers_at_a_level_match_the_hardware), not this PR.AI-assisted (Claude Code). Synthetic tests only.
@Ctrl-Alt-Haze on GitHub · 2026-11-25 00:05 UTC · original
@upipibi Good catch — thank you! The six
HostShaderfields incrates/victory-shader/src/emit/valu_tests.rs(build_wave32_uav_cs) had been left uncommitted in the worktree when4c8eb15was pushed.Committed and force-pushed as
0b0a670on70564ae.Re-verified locally on
0b0a670(Windows 11 x64 / NVIDIA GeForce RTX 5070 Ti + WARP):cargo xtask policy: passed (174 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings(default &--all-features): passedcargo test -p victory-shader --features host --locked -- divergent_loop --test-threads=1:6 passed; 0 failedcargo test -p victory-shader --locked -- --test-threads=1:211 passed; 3 failed; 2 ignored(only the 3 pre-existing70564aeRTX 5070 Ti failures:stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardware)cargo test -p victory-shader --features host --locked -- --test-threads=1:211 passed; 3 failed; 2 ignored(same 3 pre-existing failures)VICTORY_WARP=1 cargo test -p victory-shader --features host --locked -- --test-threads=1:212 passed; 2 failed; 2 ignored(pre-existinggathers_at_a_level_match_the_hardware+permutes_read_the_lane_named_and_zero_from_lanes_left_out)--locked -- --test-threads=1):victory1 passed,victory-core11 passed,victory-formats23 passed / 4 ignored,victory-game15 passed,victory-hle99 passed (97 unit + 1fidelityfx+ 1no_dll_planting),victory-loader25 passed (22 unit + 2load_probe+ 1title_dlls),victory-pe7 passed,victory-pipeline4 passed,xtask4 passedcargo test -p victory-gpu --locked -- --test-threads=1:76 passed; 2 failed; 1 ignored(pre-existing on clean70564ae:dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views)@upipibi on GitHub · 2026-11-25 00:25 UTC · original
Re-checked
0b0a670on the RTX 3070 (driver 616.56, Windows 11, debug).cargo test -p victory-shader --lockedgives 211 passed, 3 failed, 2 ignored. The 3 are #1744's NVIDIA failures onmain(the twostride_testsheap-buffer reads andgathers_at_a_level_match_the_hardware). Thebuild_wave32_uav_csfields are in, and the six#1498divergent-loop tests pass on Ampere's 32-lane waves.AI-assisted (Claude Code).
@Ctrl-Alt-Haze on GitHub · 2026-11-25 00:41 UTC · original
@upipibi Thanks for re-checking
0b0a670on RTX 3070 and confirming all 6#1498tests pass on Ampere!Rebased onto upstream
main(4118f33) at8d1d537(switchedStructured::phi_maskto use upstream#1221's exposedStructured::othermap incrates/victory-shader/src/structure.rsand preserved all4118f33additions).Re-verified locally on
8d1d537(Windows 11 x64 / NVIDIA GeForce RTX 5070 Ti + WARP):cargo xtask policy: passed (182 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings(default &--all-features): passedcargo test -p victory-shader --features host --locked -- divergent_loop --test-threads=1:6 passed; 0 failedcargo test -p victory-shader --locked -- --test-threads=1:248 passed; 3 failed; 3 ignored(pre-existing4118f33RTX 5070 Ti failures:stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardware)cargo test -p victory-shader --features host --locked -- --test-threads=1:248 passed; 3 failed; 3 ignored(same 3 pre-existing failures)VICTORY_WARP=1 cargo test -p victory-shader --features host --locked -- --test-threads=1:249 passed; 2 failed; 3 ignored(pre-existinggathers_at_a_level_match_the_hardware+permutes_read_the_lane_named_and_zero_from_lanes_left_out)--locked -- --test-threads=1): all passed (victory12 [10 unit + 2census],victory-core13,victory-formats38 / 5 ignored,victory-game15,victory-hle145 [143 unit + 1fidelityfx+ 1no_dll_planting],victory-loader38 [34 unit + 1crash_log+ 2load_probe+ 1title_dlls],victory-pe36,victory-pipeline7,xtask6)cargo test -p victory-gpu --locked -- --test-threads=1:139 passed; 2 failed; 2 ignored(pre-existing4118f33failures:descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views)@sinan-cmyk on GitHub · 2026-11-25 02:55 UTC · original
Offline measurement on a retail dump (head 8d1d537 on
main940d32f)Result: 0 gained, 138 lost. Every changed program now stops at "a lane mask holding lanes elsewhere read as data". That matches the PR's stated intent: refuse a mask read inside a divergent loop, or at a point that does not cover all its writers, instead of counting it wrongly (#1498).
main940d32fWhat changes:
mainare refused. If the analysis is right, these are programs whose lane-mask readsmaintranslates but may count wrongly. This is the cost of the soundness check on this data.mainemits but the validator rejects ("Entry function performs some operation that is incompatible with the shader stage") are now refused before emission, with the lane-mask reason. That replaces invalid DXIL with an explicit refusal.The counts can't tell whether the 138 really count wrongly on
main. A hardware test on one of those patterns (as in your[32; 32]repro) would confirm it. For reference, the older head ba565a8 onmainffe310elost 230 programs, all to the same reason.Method:
victory translate --validate --listonshaders.rpf(1.0.2.1), dxil.dll 1.8.2502.11, compared program by program (25,889 programs). AI-assisted (Claude Code). No shader names or data are included, per the asset policy.@Ctrl-Alt-Haze on GitHub · 2026-11-25 03:07 UTC · original
@sinan-cmyk Thank you for running the program-by-program
940d32fvs8d1d537census onshaders.rpf(25,889programs) and confirming zero false gains alongside the691invalid-DXIL programs moved to explicit pre-emission refusal and the138potentially miscounted lane-mask reads refused under#1498.@Marvisak on GitHub · 2026-11-25 03:30 UTC · original · edited 2026-11-25 15:53 UTC
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-shader/src/emit/lower.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge candidate) was for an older state ofmain.Generated by Claude Code
@Ctrl-Alt-Haze on GitHub · 2026-11-25 05:58 UTC · original
Thanks
Marvisak,@catminou4, and@sinan-cmykfor the reviews and census feedback! Rebased cleanly ontoupstream/main(940d32f) and force-pushed6e35c2eaddressing every point:940d32f(@catminou4E0063): Addedview_marks: falsetolower::Partsandview_marks: lowered.view_markstoHostShaderincrates/victory-shader/src/emit/valu_tests.rs, changedbuild_wave32_uav_csto returnHostShader, and included the42363ab/ccfb029headless-WARP test skips via the940d32frebase.Marvisak): Removedballot_ir_blocksfromLowered/Lower/mask_dword(the#1498lowering tests now assertst.ballot_site(...)directly ons_bcnt1mask operands), removed the stray parenthetical comment inlower.rs, and restored single-linepaired_masksformatting instructure.rs.compute_writersmonotonicity &compute_wave_reach(Marvisak): Replaced non-monotoneWriters::andcycling (max_iters = dynamic * blocks) with bounded monotone widening (EXACT_ROUNDS = 16,MAX_WRITER_ROUNDS = 64, 32-block cap ->Writers::Wave) so large cyclic phis converge deterministically, and precomputedpost_loop_headersoutside thecompute_wave_reachloop.same_iter(@sinan-cmykcensus): Root-caused the-138(74 Ps + 64 Cs) delta to non-loopactivemasks (whoseAtom::Quad/ narrowed-EXECreach isn't implied bywave_reach) and same-iterationv_cmpreads inside divergent loops. Added strictly soundsame_itertracking (onlyv_cmp*/v_cmpx*, entry/phiEXEC, and same-blockEXEC-boundedSOPops) plusfresh_vcmp_inside_divergent_loop_counts_active_lanes_per_iteration(verified on RTX 5070 Ti + WARP).victory translate --validatecorpus delta (940d32f->6e35c2e) dropped from-138to-16Cs (0VP /0Ms lost;pre_if_nonzero_initstill strictly refused).Verified on
6e35c2e(Windows 11 x64, RTX 5070 Ti + WARP):cargo xtask policy:182 files okcargo clippygates (--workspaceand-p victory-shader --features host) with--all-targets --locked -- -D warnings: 0 warningscargo test --workspace --locked --exclude victory-shader --exclude victory-gpu:311 passed, 0 failed, 5 ignoreddivergent_looptests (victory-shader --features host):7 passed, 0 failedvictory-shader(RTX 5070 Ti&WARP):250 passed, 3 failed, 3 ignored(only the 3 pre-existing940d32fstride_tests/synthetic_tests::gathersfailures)victory-gpu(RTX 5070 Ti):141 passed, 2 failed, 2 ignored(only the 2 pre-existing940d32fdynamic_slots/lists_share_a_tablefailures)@nathanbzrr on GitHub · 2026-11-25 06:44 UTC · original
AMD RDNA3 + DXIL 1.8.2502 verification on
6e35c2e8, empirical Wave32 counterexample reproduction, and a verified fix forStructured::ballot_site(#1498):Environment
10.0.26340x64,rustc 1.98.1(x86_64-pc-windows-msvc)32.0.32029.2010, Wave32 supported; D3D12 WARP is Wave 4..=4 so Wave32valu_testsskip on WARP)dxil.dll 1.8.2502.11victory-shadertests only (no game files / title not run)Baseline on
6e35c2e8cargo test -p victory-shader --locked: 253 passed, 0 failed, 3 ignoredcargo clippy -p victory-shader --all-targets --locked -- -D warnings: 0 warningsEmpirical Wave32 counterexample (reproducing the
same_iter+div_loops[def]bug)In
crates/victory-shader/src/structure.rs:571-577, whenself.same_iter.contains(&lo)anddef != read_block,ballot_sitereturnsSome(BallotSite::Def)without checking!self.div_loops[def].Running a synthetic Wave32 compute kernel where lanes
0..7exit a divergent loop on iteration 0 and lanes8..31exit on iteration 1 (v_cmp_eq_u32 vcc_lo, 0, v1inside the loop body, thens_bcnt1_i32_b32 s9, vcc_loafter reconvergence) on unmodified6e35c2e8produces on AMD Radeon RX 7600:Lanes
0..7retain iteration 0's ballot (8) and lanes8..31see iteration 1's (24), whereas console SGPR semantics overwritevcc_loon the final iteration so every lane reads uniform24.Note also why returning
Noneinside thesame_iterbranch (rather than falling through tocovers(lo, m, read_block)) matters: every lane exited with its own bit set invcc_lo, so falling through toBallotSite::Readviacoverswould count all32lanes instead of refusing the overwrite.Minimal fix & regression test (
nathanbzrr/VIctory@a58e4f4, branchreview/pr-1587-div-loop-def-refusal)Plus regression test
divergent_loop_vcmp_read_after_reconvergence_is_refusedincrates/victory-shader/src/emit/lower.rs.Verified after the fix:
cargo test -p victory-shader --locked: 254 passed, 0 failed, 3 ignoredcargo clippy -p victory-shader --all-targets --locked -- -D warnings: 0 warningscargo xtask policy:asset policy: 182 files okAI-assisted review/testing; all builds and GPU runs executed locally on my own machine. No game files used.
@Ctrl-Alt-Haze on GitHub · 2026-11-25 06:47 UTC · original
Thanks
Marvisakfor catching that remaining cross-blocksame_itercase! Updated and force-pusheda8b22d9on top of940d32f:Structured::ballot_site(crates/victory-shader/src/structure.rs): Forsame_itermasks read in another block (def != read_block), now returnsSome(BallotSite::Def)only when!self.div_loops[def]and explicitly returnsNone(refusing) whendiv_loops[def]is true, rather than falling through tocovers(read_block).crates/victory-shader/src/emit/lower.rs): Addedvcmp_in_div_loop_read_afterinsidedivergent_loop_mask_read_inside_loop_or_narrowed_branch_is_refusedasserting that reading a divergent-loopv_cmpmask (vcc_lo) vias_bcnt1after the loop reconverges refuses with"a lane mask holding lanes elsewhere read as data".victory translate --validate(940d32f->a8b22d9, 26,503 containers / 26,084 programs):14,205 / 13,338->14,205 / 13,338(0 / 0)8,765 / 8,694->8,765 / 8,694(0 / 0)2,621 / 1,886->2,601 / 1,865(-20 / -21;26refused pre-emission witha lane mask holding lanes elsewhere read as data)a8b22d9(Windows 11 x64, RTX 5070 Ti + WARP):cargo xtask policy:182 files ok, bothcargo clippy --all-targets --locked -- -D warningsgates: 0 warnings--exclude victory-shader --exclude victory-gpu):311 passed, 0 failed, 5 ignoreddivergent_looptests (victory-shader --features host):7 passed, 0 failedvictory-shader --features host(RTX 5070 Ti & WARP):250 passed, 3 failed, 3 ignored(only the 3 pre-existing940d32fstride_tests/synthetic_tests::gathersfailures)victory-gpu(RTX 5070 Ti):141 passed, 2 failed, 2 ignored(only the 2 pre-existing940d32fdynamic_slots/lists_share_a_tablefailures)@Ctrl-Alt-Haze on GitHub · 2026-11-25 06:56 UTC · original
@nathanbzrr Thank you for running the AMD Radeon RX 7600 (RDNA3) verification and capturing that exact
[8..8, 24..24]Wave32 counterexample! Commita8b22d9(pushed just after your comment) applies that exact explicitNonereturn inStructured::ballot_sitewhensame_iter && def != read_block && div_loops[def]alongside thevcmp_in_div_loop_read_afterrefusal test, and GitHub Actionscheckis green ona8b22d9.@Dathinel on GitHub · 2026-11-25 13:31 UTC · original
Hardware data point for
a8b22d9on wave32, with the D3D12 debug layer on (local probe patch enablingID3D12Debug, InfoQueue checked after each dispatch: 0 errors in every run). RTX 3050 Laptop, driver 610.62, Windows 11 26200. WARP here does not supportWaveSize(32), so only hardware ran.I added one case to your
build_wave32_uav_cshelpers: lanelrunsmin(l/8, 2)iterations, and each iteration overwrites the mask (s_mov_b32 s21, vcc_lo) befores_andn2 execdrops the leaving lanes. After the loop, s21 is read as data (v_mov v2, s21ands_bcnt1 s9, s21). On the console every lane reads the last iteration's compare,0xFFFF0000/ 16.940d32fsourcesa8b22d90xFF, 8-150xFF00, 16-310xFFFF0000, no errors_bcnt1of s21So the PR turns this silent wrong result into an explicit refusal, and fixes #1498 on real wave32 hardware. The same silent result occurs in the JMAN730/project-flamingo fork (JMAN730/project-flamingo#92), which has the same
mask_dwordplacement.AI-assisted; synthetic shaders only. Probe diff available on request.
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 13:10 UTC · original
I resolved the current
lower.rsandvalu_tests.rsconflicts on 48bf778. Your exacta8b22d9is the first parent and upstream63bcca4is the second. The merge combinesphi_maskwith main's BVH number/edge fallbacks. The PR’s lowerer tests are in a test submodule solower.rsstays within the file-size limit. The upstreamds_bpermuteand legacy-multiply tests are included.The #1498 Wave32 readback and the partial-bit/earlier-iteration cases passed on WARP 1.0.22 with Agility 1.620.2. The integrated tree also passed 36 lowerer tests, 13 structure tests (1 ignored), 14 BVH tests, strict shader Clippy and policy.
There is one WARP result worth carrying forward. On both the untouched
a8b22d9and the merge,fresh_vcmp_inside_divergent_loop_counts_active_lanes_per_iterationproduced the same error. The first four lanes were correct. Zero-based lanes 4, 8 and 31 gave 29, 26 and 8, where the test expects 28, 24 and 1. The full VALU group went from 30 passing + 1 failing on your head to 37 passing + the same 1 failing on the merge.VICTORY_WARP=1was set and I verified the app-local DLLs loaded in both processes.You can take the integration branch as a fast-forward from
a8b22d9. If you reuse the integration work, please retain its Git author, or addCo-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it into another commit.AI-assisted with Codex.
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.