Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal 7d47114ace Link: a component-count mismatch behind the agx flag is our gap, not Metal's link error
Metal makes a render pipeline whose fragment function reads a user varying at
another component count than the vertex function writes when the vertex
function's module states agx.allow_mismatched_component_counts as 1 (Apple M3
Max, macOS 27.0.1, job m3-max-87508; float4 written and float2 read, and float2
written and float4 read; refused at 0, with no flag, and with the flag on the
fragment module alone; irc.version_* changed nothing). Link answered every such
pipeline Unsupported{UnmatchedVarying, NotRepresentable}, Metal's link error,
for a pipeline Metal makes.

- AIR: module_flags returns whether the agx flag is 1, and the decoder sets
  EntryPoint::mismatched_component_counts on each vertex (post-tessellation
  included) and mesh function the module defines; fragment, kernel and object
  functions never carry it. The flag's docs state the probe's facts.
- Lowering copies it to StageIo::mismatched_component_counts.
- Link (varyings, mesh_fragment): a fragment input whose type differs from
  its producer's output in component count alone (same numeric class and source
  width), behind a producer carrying the flag, is
  Unsupported{UnmatchedVarying, NotImplemented}; everything else stays
  NotRepresentable. A mesh producer is not probed yet, so it stays the typed gap.
- Feature::UnmatchedVarying's doc says both; reach.tsv marks it rare;
  docs/REFUSALS.md regenerated (it also drops TextureSwizzle's four translator
  sites, which a49e4a61c4 and its neighbours removed without a regeneration).
- SEMANTICS_VERSION 2393 (a refusal's class and an interface fact change;
  2392 is PR 30's and its fix-forwards', pin AB').

Verified: the red tests of 7285b878a1 (red in job m3-max-87576) pass here;
the green job is named in the lane's report.
2026-12-04 21:23:43 -08:00

11 KiB

1# Reach marks of docs/REFUSALS.md: section<TAB>variant<TAB>mark<TAB>why. Marks: system (a guest's
2# CoreAnimation, CoreImage or VideoToolbox plausibly reaches it), app (a typical Metal app from
3# public API), rare (specialized public API), none (no public API path). A judgment, kept by hand;
4# refusal_surface.py lists every variant that has none (--missing-reach).
5featureLibraryKindnonea metallib file type Apple's toolchain is not seen to write
6featureStagenonea stage outside AIR's public stages
7featureAddressSpacenoneApple's AGX library address spaces
8featureModuleRecordnoneLLVM constructs AIR does not emit
9featureInstructionnoneLLVM instructions AIR does not emit
10featureTypenoneLLVM types AIR does not emit
11featureCallingConventionnoneLLVM calling conventions AIR does not use
12featureUnknownIntrinsicrareAIR from a newer compiler (macOS 27 AIR 2.9)
13featureAgxUnmodeledrareApple's own libraries' AGX intrinsics
14featureStaticInitializernoneLLVM initializers AIR does not emit
15featureRecursionrarerecursion through visible functions
16featureDynamicCallrarefunction pointers and function tables
17featureLinkingraredynamic libraries and linked functions
18featureSimdWidthappsimdgroup functions on a device whose subgroups cannot run 32 wide for the use
19featurePartialThreadgroupsappa dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made
20featureIrreducibleConvergentrareirreducible loops around barriers or simd operations
21featureComputeDerivativesWithSimdrarederivatives in a kernel
22featureComputeDerivativesrarederivatives in a kernel
23featureQuadOperationsappquad shuffles in kernels on devices without quad operations there
24featureSimdgroupMatrixraresimdgroup matrix kernels
25featureSimdgroupMatrix16x16x16rare16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later)
26featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
27featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
28featureDereferenceLoadedPointerapppointers loaded from argument buffers
29featureHandleAsPointerrareresource handles used as byte pointers
30featureConstantGlobalEscapingrarea constant global whose address escapes
31featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
32featureZeroedThreadgroupMemoryrarethreadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
33featureCoherentMemoryrarecoherent(device) accesses
34featureInt64Atomicsrare64-bit atomics
35featureImageAtomicsraretexture atomics beyond 32-bit integers
36featureDescriptorCountappmany textures or buffers in one stage on a smaller device
37featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
38featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
39featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
40featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
41featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
42featureTexelOffsetapptexel offsets a device cannot apply
43featureGatherExtendedraregathers with dynamic offsets or components
44featureStorageImageMultisamplerarewritable multisampled textures
45featureStorageTextureInVertexStagerarewritable textures in vertex functions
46featureCubeArrayrarecube arrays on a device without imageCubeArray
47featureSamplerAnisotropyappanisotropic samplers on a device without samplerAnisotropy
48featureSamplerBorderColorappborder colors a device cannot express
49featureSamplerLodBiasappconstexpr samplers with an LOD bias
50featureSamplerCompareappcompare samplers a device cannot apply to the image
51featurePixelSamplerComparenoneApple's compiler rejects it
52featureRasterOrderGroupsrareraster order groups
53featureFramebufferFetchsystemprogrammable blending (framebuffer fetch); macOS 26.6.2's login reaches it (two WindowServer and RenderBox pipelines fetch RGB10A8_2P_XR10 attachments, the consumer's boots)
54featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
55featurePrivatePrimitivesrarea private primitive type drawn in the pulled list form (a vertex function that writes memory or the primitive_id varying, a vertex start past 2^31) on a device without device addresses
56featureVertexAmplificationrarevertex amplification
57featureLayeredRenderingrarelayered rendering on a device without its features
58featureClipDistancerareclip distances on a device without them
59featureDualSourceBlendingraredual-source blending on a device without it
60featureBarycentricsrarebarycentric coordinates
61featureStencilExportrarestencil from the shader
62featureSampleRateShadingrareper-sample shading
63featurePullModelInterpolationrareinterpolant inputs read at the centroid, a sample or an offset
64featureDivergentInterpolationrarean interpolant read at a sample or an offset in a branch, a loop or after a discard
65featurePixelCoverageAtSampleRaterarecoverage read at sample rate
66featureInterfaceComponentsraretoo many varyings or attachments for a device
67featureUnmatchedVaryingrarea varying read at another component count than written, behind a vertex module stating agx.allow_mismatched_component_counts as 1 (seen in modules Apple's Metal shader converter wrote); otherwise a Metal link error
68featureVertexStepRateappinstanced vertex layouts stepped at a rate above 1
69featureVertexInputLayoutrarevertex offsets or strides off their format's alignment, or past a device's limits
70featureTessellationraretessellation
71featureMeshShadingraremesh pipelines
72featureTileShadingraretile shaders (Apple GPU families)
73featureImageblocksrareimageblocks (Apple GPU families)
74featureRayTracingrareray tracing (out of scope by ruling)
75featureTensorsrareshader tensors
76featureRasterizationRateMaprarerasterization rate maps
77featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
78featureVulkanVersionnonea device below Vulkan 1.2
79featurePushWindownonea description whose maxPushConstantsSize is below 128 bytes, less than Vulkan lets a device report
80featureIdentityDomainsnonethe identity domains, which the runtime alone takes and which lower only kernels over buffer slots, textures in slots or argument buffers, and runtime samplers, so far
81featureConstantnoneLLVM constant forms AIR does not emit
82featureAttributenoneLLVM ABI attributes AIR does not use
83featureBitcodeRecordnonebitcode records AIR does not emit
84featureSyncScopenonesynchronization scopes AIR does not use
85featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
86featureDirectCallrarevariadic or byval calls the inliner cannot take
87featureWideSwitchLiteralrare64-bit switch literals
88featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
89featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
90featureAlphaToOnerarealphaToOneEnabled on a device without alphaToOne
91featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
92featureFunctionConstantArgumentrarea function-constant-removed argument read
93featureSamplerBicubicFiltersystembicubic filtering forms Metal does not establish, through a constexpr sampler of filter::bicubic (a runtime sampler of MTLSamplerMinMagFilterCubic filters as nearest)
94featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
95featureIndependentBlendingrareper-attachment blending on a device without independentBlend
96featureRasterSampleCountappa sample count a device lacks for the attachments
97featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
98featureTriangleFillPointssystemApple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
99featureDepthClipClampappdepth clamp on a device without depthClamp
100featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
101featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
102featureSparseTextureraresparse residency reads
103featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
104featurePostDepthCoveragerarethe coverage after early depth and stencil tests, on every device
105featurePrivateMemoryrarevery large per-thread arrays
106featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
107featureViewportDepthRangerareviewport depth outside [0, 1]
108featureIndirectRenderStaterarerender state set by a kernel on an indirect command
109featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
110limitInlinedInstructionsrarevery large shaders after inlining
111limitOutputBlocksrarevery large control flow
112limitIrreducibleDepthnonedeeply nested irreducible loops
113limitSpirvWordsrarevery large output modules
114limitWorkUnitsrarevery large shaders
115limitLedgerBytesrarevery large shaders
116limitTypeCountnonea type table past the cap
117limitMetadataNodesnonemetadata past the cap
118limitBitstreamNestingnonemalformed nesting
119limitInstructionCountrarevery large modules
120limitLayoutNestingnoneargument-buffer layouts nested past the cap
121limitConstructNestingnonecontrol flow nested past the cap
122limitPrivateArenaBytesnonea private arena past 4 GiB
123limitCallStackBytesraredeep visible-function call stacks
124ratemapScreenExtentrarea rate map whose screen is past 16384 a side
125ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
126ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
127ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
128ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
129budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
130featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
131featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
132featureProgramScopeResourceappMSL 3.2 textures, samplers and threadgroup memory bound at program scope (macOS 15 and later)
133featureProgramScopeSharedSlotrareMSL 3.2 program-scope buffers aliasing another argument of another type at one index
134featureProgramScopeLinkedrareMSL 3.2 program-scope bindings in a linked visible function or a dynamic library
135featureProgramScopeReadnonea read of a program-scope buffer's global that Apple's compiler is not seen to write
136featureGenericPointersystemMSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
137featureWideLinesnonea line under the Apple-private setLineWidth: at a width other than 1 drawn as the band, whose pipeline form the translator does not build (a selected slice or viewport, barycentric weights, multiview, synthesized geometry, too many stage outputs)