A fragment's [[thread_index_in_quadgroup]] used to take the subgroup lane route
(SubgroupLocalInvocationId & 3) only where tier(CrossLane(QUAD), Fragment) held, and it raised the
function's class with QUAD. Vulkan does not ask for that class. Section 9.27.9 defines the quad scope
over adjacent subgroup invocation indices "in all shaders": (s0) = (s1 - 1) = (s2 - 2) = (s3 - 3),
with s0 an integer multiple of 4, and in a fragment shader quad index i is the 2x2 position. Section
9.29 selects OpGroupNonUniformQuad*'s invocations by that same i. None of this mentions the quad
operation bit.
What changed:
- The lane route now asks for what reading the lane uses: the fragment stage's subgroups
(tier(LaneArithmetic, Fragment)), holding whole quads (a PartialFragment subgroup of a multiple
of 4 lanes, as before).
- The route raises the basic class alone.
- FragCoord parity stays only for a fragment stage with no subgroups, or ones narrower than a
quad. There a quad function is refused by its tier, so nothing can disagree with the parameter.
- This is the same query inside the SIMD-groups form, narrowed. No new form.
Tests:
- tests::engine_simd::a_fragment_quad_lane_needs_fragment_subgroups_and_no_quad_class. On
MoltenVK's description without the quad class, quad_lane_f reads SubgroupLocalInvocationId and
declares no quad capability. Without this change it takes the parity route, and the test fails.
With the fragment stage cleared from subgroupSupportedStages, it reads FragCoord parity and
declares no subgroup capability.
- a_fragment_quad_lane_is_its_subgroup_lane_or_its_place_in_the_pixel_quad now keys its expected
route on the lane's tier. On every committed profile the route is unchanged: each one with
fragment subgroups lists the quad class.
No card job: every lab card lists the quad class and already ran the lane route. Their fragment
quad cases are the evidence for that route. Nothing is claimed for a device without the quad class;
none was run. Translation changes only on such a profile, which shares the SEMANTICS 2272 bump on
this branch.