Repository navigation
shader: expect the mesh broadcast after a wave-index branch join - #3907
Merged
Merged
Conversation
R0Y00#3838 added a case expecting v_readfirstlane_b32 after an SCC branch on the wave-index field to be refused. R0Y00#3894 accepts such a read at a converged full-EXEC join and lowers it as the per-wave shared-memory broadcast, so the case failed on main. Expect the broadcast instead: the wave field still does not make the value uniform, so the read must not become a plain copy. Fixes R0Y00#3906. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R0Y00
approved these changes
Dec 3, 2026
R0Y00
left a comment
Owner
There was a problem hiding this comment.
Independently verified 6e43982. The one-file change pins the per-wave meshReadFirstLane broadcast at the full-EXEC join. ctest --preset dev --no-tests=error -j 1 -R "^(native_mesh_entry_registers_ir|native_direct_mesh|native_mesh_readfirstlane_(warp|hardware))$" passed 4/4 on Windows 11 build 26300, MSVC Debug, WARP and RTX 4060 Laptop (616.56), with no skip. Swapping only the old test from f3ab02f back in on the same compiler failed at wave-varying-branch; restoring the new assertion passed again. This matches the shared Windows test failure on #3903, #3904, #3905, #3810, #3657 and #3628.
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
native_mesh_entry_registers_irfails onmainsince #3838 and #3894 both merged. This updates the one case that disagrees. Fixes #3906.#3838's
wave-varying-branchexpectedv_readfirstlane_b32after an SCC branch on the wave-index field to be refused. #3894 removed thatgroup_flowcondition: at a converged join under full EXEC, the read is lowered as the per-wave shared-memory broadcast. The case now expects that broadcast (meshReadFirstLane), the same asroot-uniform-branchright below it. The point of the case stays: the wave field does not make the value uniform, so the read must not become a plain copy. Test-only; no source change.The refusal under a narrowed EXEC is already covered by #3894's
v_cmpxcase innative_direct_mesh_check.py.Verification
Commit
6e43982a0on mainf3ab02fee, Windows 10 22H2 (build 19045), MSVC 19.52.37029, CMake 4.3.1, Python 3.13.7, DXC 1.9.2609.5, NVIDIA GeForce RTX 3080 Ti (driver 32.0.16.1047), WARP 1.0.22.0, Agility SDK 1.620.2.Before the change,
native_mesh_entry_registers_irfailed withAssertionError: ('wave-varying-branch', '')locally and on CI (run47005435060).Evidence and follow-up
lower_meshinstead, and this PR should be closed in favour of that.Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code