A vertex function whose [[viewport_array_index]] or [[render_target_array_index]] can differ
among a primitive's vertices stores it through the geometry stages link synthesizes, on every
device whose driver does not take Metal's first-vertex indices (all but MoltenVK): Vulkan takes
Layer and ViewportIndex only where every vertex of a primitive stores the same, Metal takes the
first vertex's. The executor's census (ModuleCensus::of_pipeline_modules_under) mapped every
linked module to a Metal stage and had none for GEOMETRY, so each such case failed with "the
linked module's stage VK_SHADER_STAGE_GEOMETRY_BIT has no authored stage" and recorded nothing:
on the Radeon 780M under Mesa 26.2.6, both legs, the four authored vertex cases
07f125464dac (constant-zero-position-observation), a013a2bcbe56 (the same over another AIR),
434e73e03189 (rotate-a-normal-in-a-vertex-stage-that-also-writes-a-clip-distance) and
7ce6dea0475e (clip-away-every-vertex-of-a-triangle-with-a-negative-clip-distance).
Metal has no geometry function, so a geometry stage is always one link made; the census now
leaves it out, as it leaves out a tessellation pipeline's synthesized vertex and control stages.
The executor's enables were checked first and are not the cause: its map names the same 166
features as the product's exposure table (device/enables.rs), shaderOutputViewportIndex and
shaderOutputLayer included, and the 780M rows record them enabled (output_viewport_index: true).
The stage is the product's own choice there (lower/stage_io/plan.rs own_index_store: an index not
uniform over a primitive goes through the stage unless the driver takes
MetalFirstVertexIndices), the one the runtime makes too.
ENGINE_EXECUTOR_ABI stays: no recorded row can observe the change, since every run of a
pipeline with a geometry stage failed before recording a row or a refusal (the constant's own
rule for a case kind no earlier executor ran).
Test: coverage::tests::a_render_pipeline_census_leaves_out_its_geometry_stages compiles the
owned fixture engine/rt6_first_vertex on the amd-780m-radv capture (vertex, three geometry
stages, fragment) and holds the census to the vertex and fragment modules; without the fix
of_pipeline_modules returns the GEOMETRY error and the test fails.