The title's wave-uniform BVH walks (`shadowmask:CS_TraceShadowRays_ Checkerboard`, `deferred_tiled:CS_LaserLightShadowRaytracing`, the four `rtdirectionalshadows:CS_RTDistantShadow*_Tiled`) keep the lanes of the node being visited in an SGPR: a lane mask on entry, a number popped from an LDS stack (`v_readfirstlane_b32`) on the loop's back edges, read both as a number (`v_and_b32` with the lane's bit, `s_cmp`) and as a mask. The join was refused: "a register joining a lane mask and data, read as data" (40 programs), then "a lane-mask join of an untracked mask". At a join where every branch in is uniform (SCC), every lane comes along the edge the console's wave took, so the register holds that edge's value. In compute (console lanes) a mask's number on its edge is its ballot there (`mask_dword`), exact; read as a mask, a number gives each lane its own bit (`lane_bit`, as `Atom::Opaque` does). A per-lane branch into the join (an EXEC skip, a per-lane loop exit: where lanes would take edges the wave did not; the console compiler's if/else always enters its join that way) keeps the refusal. Tests: `a_mask_joined_with_data_needs_a_uniform_join` (the per-lane loop still refused, the uniform one lowers); `synthetic_tests::a_mask_joined_with_data_at_a_uniform_loop_is_its_number` (a mask shifted through a VGPR around a uniform loop, read as a number and as each lane's bit; values checked on the GPU, hardware and WARP; fails without each half of the change). Shader list against `main`: 0 newly failing, 29 newly emit; all 40 "a register joining a lane mask and data" programs pass it (16 stop at a later mask join). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e8e9f0c2ae
·
2026-11-25 07:02:14 +01:00
History