The draw probe (Apple M3 Max, macOS 27.0.1, job m3-max-87586) measured that a
fragment input narrower than its vertex output reads the output's first lanes
when the vertex module states agx.allow_mismatched_component_counts as 1, for
float under perspective, center_no_perspective and flat interpolation and for
uint and int flat. Vulkan matches exactly that under maintenance4 (spec 19.1.3,
Interface Matching: "if the maintenance4 feature is enabled, they are declared
as OpTypeVector variables, and the output has a Component Count value higher
than that of the input but the same Component Type"; without it
VUID-RuntimeSpirv-maintenance4-06817 forbids it). The runtime's floor requires
and enables maintenance4 (Vulkan 1.3), so this is one form on every device.
The tests:
- link: a narrower vector or scalar input, float or uint, smooth or flat,
beside matched varyings, takes its output's location and component; a
description without maintenance4 answers the gap; a wider input stays the
gap, a mesh producer's either way, and no flag stays Metal's link error;
- engine, over text modules on lavapipe's profile: for each class and
interpolation, 4 to 2, 4 to 1 and 3 to 2 lanes link, both relocated modules
pass L3 (spirv-val under the profile's settings, maintenance4 among them),
and the input's Location is the output's, past a second varying.
Red: link still answers the narrower input with the gap.