shader: restore mesh barrier iteration after descriptor joins #2277
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2277
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2277/head"
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?
@R0Y00 on GitHub · 2026-11-25 09:25 UTC · original
R0Y00:codex/restore-mesh-barrier-iteration→main· +6 −5 · 1 files · 1 commits · closed without mergingRefs #1998. After #2142 and #2151 landed together,
exec_rangebecame a generator because it yields at group barriers. The top-levelstepswrapper treated it as a Boolean and returned without executing it. The descriptor join also called each arm without consuming its generator. This reproducedTypeError: 'NoneType' object is not an iteratoron main and in both Linux jobs for #2266, #2271, and #2273.Forward the barrier yields and termination value at the top level. Execute each descriptor arm to completion under the existing scalar-only restriction, and explicitly refuse an unexpected yield in an arm. Keep both originally accepted profiles and their existing controls.
On Windows, the previously failing host checks passed with
python -B tests/mesh_heap_sampler_check.py,mesh_dynamic_geometry_check.py,mesh_dynamic_aot_check.py,mesh_lane_spill_check.py,mesh_join_descriptor_check.pyandpso_readiness_check.py. The existingmesh_scc_any_lane_check.pyalso passed. The protected LLVM and Windows jobs remain required.@R0Y00 on GitHub · 2026-11-25 09:27 UTC · original
Closing this parallel repair in favor of #2276, which landed the same generator fix on its branch first. The existing host checks and the independent WARP/RTX descriptor-join and any-lane controls passed on the equivalent repair. Please keep protected CI on #2276.
@tedin7 on GitHub · 2026-11-25 09:27 UTC · original · reviewed
Review of head
bc5ab15df2862ac7e4e0fd72efa36b9206dcf72e(comment only).Summary: The fix is correct.
stepsnow usesyield fromso group barriers reach the caller and thes_endpgmresult is kept. Descriptor-join arms now run to completion, and a barrier inside an arm is refused. I found no P1 or P2 issues.Checks
tools/mesh_entry_aot.py(+6/-5). Title is neutral and the change is clean-room.Commands run locally (Linux, on the PR head)
python3 -B tests/{mesh_heap_sampler,mesh_dynamic_geometry,mesh_dynamic_aot,mesh_lane_spill,mesh_join_descriptor,pso_readiness,mesh_scc_any_lane}_check.py: all exit 0 and print their ok lines.python3 tests/docs_links_check.py: 18 files, 435 links, ok.python3 tests/bidi_controls_check.py: ok.git diff --check origin/main...HEAD: clean.Mutations
yield from self.exec_range(...)at the top level with a non-generator use (list(...)) makesmesh_dynamic_geometry_checkcrash withTypeError: 'NoneType' object is not an iterator. The suite kills this mutant.raise ValueError("Unexpected barrier inside a descriptor join arm")withpassleavesmesh_join_descriptor_checkgreen. The new refusal is therefore not covered by any test (nit).Findings
tools/mesh_entry_aot.py:304-305): add a refusal case tomesh_join_descriptor_check.pywith a barrier inside a join arm, so the newValueErroris guarded. Not blocking, since the path is defensive.AI-assisted; commands listed were executed locally.
Pull request closed