mesh: keep Wave.steps a generator after the exec_range split #2268
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2276"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T09:24:27Z.
Part of #2142
What this unblocks: restores
run_groupon main so every mesh entry lowering runs again, with both barrier lockstep (#2142) and dynamic predicate joins (#2151) intact.Root cause: #2151 (
54830b1d) moved the instruction loop intoWave.exec_range, which contains theyieldats_barrier.Wave.stepsthen called it as a plain function, sostepsstopped being a generator andrun_grouphitnext(None)(TypeError: 'NoneType' object is not an iterator). Join arms also calledexec_rangewithout iterating it, so the arm bodies never ran.Fix:
Wave.stepsdelegates withyield from self.exec_range(...).join_armsdrains the arm generator; a barrier inside an arm is refused (it already was).Verification (Linux only, LLVM 19 locally; CI uses 15):
python3 -B tests/mesh_join_descriptor_check.py: pass (failed with the TypeError before the fix)python3 -B tests/mesh_{entry,descriptor_swap,attribute,indexed,lit}_check.py binary llvm-mc-19 llvm-objcopy-19 libLLVM-19.so: all passtests/mesh_dynamic_aot_check.py,mesh_heap_sampler_check.py,mesh_lane_spill_check.py,mesh_dynamic_geometry_check.py,pso_readiness_check.py,docs_links_check.py: passstartup_*_check.pyrun without arguments: every check from the CI Python list passes; the rest need Windows, a renderer or extra arguments and were not run.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T09:31:29Z.
I independently reproduced the main-branch failure and verified this exact head against the descriptor join, any-lane SCC, dynamic geometry and PSO readiness host checks. On the equivalent patch, all nine previously failing LLVM tests passed under Ubuntu LLVM 15. The fresh GitHub checks on this head are also green. Please mark it ready when your local stage is complete so we can clear the shared failure in #2266, #2270, #2271, #2273 and the launcher-fix queue. I closed the parallel patch #2277 in favor of this PR.