Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal ad09d74961 Stage input: an indexed step fetches at any step rate, as Metal reads it
What: a kernel [[stage_in]] layout of an indexed step
(ThreadPositionInGridXIndexed or ...YIndexed) at a step rate past 1 is
now fetched: the thread's position on the axis divided by the rate,
clamped to the stage-in region's last element, looked up in the index
buffer, plus the region's origin. Step::Indexed carries its rate, and
the grid and indexed steps share stepped_position, the one division.

Why: an M3 Max read index[min(x / rate, size - 1)] plus the origin at
rates 2 and 3 (job m3-max-68668), so the refusal guarded a measured
answer. The runtime's Gap::StageIn of IndexedStepRate and the
translator's Feature::KernelStageIn refused it; both had no other site,
so both variants are deleted. Consumer search for the runtime variant:
`git grep -n -w IndexedStepRate development -- '*.rs'` in the consumer's
checkout at 40c2b1abeb has 6 hits, all in its refusal-label table and
the test that expects this refusal (rt_platform/diag.rs 8, 3079, 3088,
3094; rt_platform/compute.rs 1246, 1382), which change with this
answer; Feature::KernelStageIn has 0 hits there.

Also: SEMANTICS_VERSION 2350 -> 2351 (the modules of an indexed fetch
past rate 1, and a refusal gone). docs/REFUSALS.md regenerated
(refusal_surface.py) after reach.tsv lost the feature's row; the
signature table blessed (two variants out). The runtime README, the
encoder's and pipeline's docs and the gap's docs say the indexed
element at any rate. runtime-sources.sha256 unchanged (pin-compute,
a92fe0a8...).

Verified here: signatures.py --bless moved only the two variants; the
refusal surface regenerated with 0 variants unmarked. The red tests of
the commit before this one, and clippy, rustdoc and the suites, run in
the jobs the lane's report names.
2026-12-03 07:46:03 -08:00

12 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
19featureLocalSizeappa threadgroup size past a smaller device's limit
20featurePartialThreadgroupsappa dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made
21featureIrreducibleConvergentrareirreducible loops around barriers or simd operations
22featureComputeDerivativesWithSimdrarederivatives in a kernel
23featureComputeDerivativesrarederivatives in a kernel
24featureQuadOperationsappquad shuffles in kernels on devices without quad operations there
25featureSimdgroupMatrixraresimdgroup matrix kernels
26featureSimdgroupMatrix16x16x16rare16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later)
27featureArgumentBufferPointersappargument buffers holding buffer pointers
28featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
29featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
30featureDereferenceLoadedPointerapppointers loaded from argument buffers
31featurePointerToIntegerrarepointer to integer casts
32featurePointerComparerarecomparing pointers of different roots
33featureHandleAsPointerrareresource handles used as byte pointers
34featureConstantGlobalEscapingrarea constant global whose address escapes
35featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
36featureZeroedThreadgroupMemoryrarethreadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
37featureCoherentMemoryrarecoherent(device) accesses
38featureInt64Atomicsrare64-bit atomics
39featureImageAtomicsraretexture atomics beyond 32-bit integers
40featureDescriptorCountappmany textures or buffers in one stage on a smaller device
41featureBufferRangeappa buffer window past a device's descriptor range
42featureInt64Arithmeticrare64-bit integers on a device without shaderInt64
43featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
44featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
45featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
46featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
47featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
48featureTexelOffsetapptexel offsets a device cannot apply
49featureGatherExtendedraregathers with dynamic offsets or components
50featureStorageImageMultisamplerarewritable multisampled textures
51featureStorageTextureInVertexStagerarewritable textures in vertex functions
52featureCubeArrayrarecube arrays on a device without imageCubeArray
53featureSamplerAnisotropyappanisotropic samplers an argument buffer lists, on a device without samplerAnisotropy
54featureSamplerBorderColorappborder colors a device cannot express
55featureSamplerLodBiasappconstexpr samplers with an LOD bias
56featureSamplerCompareappcompare samplers a device cannot apply to the image
57featurePixelSamplerComparenoneApple's compiler rejects it
58featureTexelBufferapptexture buffers past a device's texel-buffer limits
59featureRasterOrderGroupsrareraster order groups
60featureFramebufferFetchsystemprogrammable 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)
61featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
62featurePrivatePrimitivesrarea 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
63featureVertexAmplificationrarevertex amplification
64featureLayeredRenderingrarelayered rendering on a device without its features
65featureClipDistancerareclip distances on a device without them
66featureDualSourceBlendingraredual-source blending on a device without it
67featureBarycentricsrarebarycentric coordinates
68featureStencilExportrarestencil from the shader
69featureSampleRateShadingrareper-sample shading
70featurePullModelInterpolationrareinterpolant inputs read at the centroid, a sample or an offset
71featureDivergentInterpolationrarean interpolant read at a sample or an offset in a branch, a loop or after a discard
72featurePixelCoverageAtSampleRaterarecoverage read at sample rate
73featureInterfaceComponentsraretoo many varyings or attachments for a device
74featureUnmatchedVaryingnonea Metal link error
75featureVertexStepRateappinstanced vertex layouts stepped at a rate above 1
76featureVertexInputLayoutrarevertex offsets or strides off their format's alignment, or past a device's limits
77featureTessellationraretessellation
78featureMeshShadingraremesh pipelines
79featureTileShadingraretile shaders (Apple GPU families)
80featureImageblocksrareimageblocks (Apple GPU families)
81featureRayTracingrareray tracing (out of scope by ruling)
82featureTensorsrareshader tensors
83featureRasterizationRateMaprarerasterization rate maps
84featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
85featureVulkanVersionnonea device below Vulkan 1.2
86featurePushWindownonea description whose maxPushConstantsSize is below 128 bytes, less than Vulkan lets a device report
87featureIdentityDomainsnonethe 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
88featureConstantnoneLLVM constant forms AIR does not emit
89featureAttributenoneLLVM ABI attributes AIR does not use
90featureBitcodeRecordnonebitcode records AIR does not emit
91featureSyncScopenonesynchronization scopes AIR does not use
92featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
93featureDirectCallrarevariadic or byval calls the inliner cannot take
94featureWideSwitchLiteralrare64-bit switch literals
95featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
96featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
97featureAlphaToOnerarealphaToOneEnabled on a device without alphaToOne
98featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
99featureFunctionConstantArgumentrarea function-constant-removed argument read
100featureSamplerBicubicFiltersystembicubic filtering forms Metal does not establish; macOS 26.6.2 makes a runtime sampler with MTLSamplerMinMagFilterCubic (the consumer's boots), whose mip-filtered form is refused
101featureGroupCountraremore threadgroups than a device dispatches, past the binder's split
102featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
103featureIndependentBlendingrareper-attachment blending on a device without independentBlend
104featureRasterSampleCountappa sample count a device lacks for the attachments
105featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
106featureTriangleFillPointssystemApple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
107featureDepthClipClampappdepth clamp on a device without depthClamp
108featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
109featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
110featureSparseTextureraresparse residency reads
111featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
112featurePostDepthCoveragerarethe coverage after early depth and stencil tests, on every device
113featurePrivateMemoryrarevery large per-thread arrays
114featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
115featureViewportDepthRangerareviewport depth outside [0, 1]
116featureIndirectRenderStaterarerender state set by a kernel on an indirect command
117featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
118limitInlinedInstructionsrarevery large shaders after inlining
119limitOutputBlocksrarevery large control flow
120limitIrreducibleDepthnonedeeply nested irreducible loops
121limitSpirvWordsrarevery large output modules
122limitWorkUnitsrarevery large shaders
123limitLedgerBytesrarevery large shaders
124limitTypeCountnonea type table past the cap
125limitMetadataNodesnonemetadata past the cap
126limitBitstreamNestingnonemalformed nesting
127limitInstructionCountrarevery large modules
128limitLayoutNestingnoneargument-buffer layouts nested past the cap
129limitConstructNestingnonecontrol flow nested past the cap
130limitPrivateArenaBytesnonea private arena past 4 GiB
131limitCallStackBytesraredeep visible-function call stacks
132ratemapScreenExtentrarea rate map whose screen is past 16384 a side
133ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
134ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
135ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
136ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
137budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
138featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
139featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
140featureProgramScopeResourceappMSL 3.2 textures, samplers and threadgroup memory bound at program scope (macOS 15 and later)
141featureProgramScopeSharedSlotrareMSL 3.2 program-scope buffers aliasing another argument of another type at one index
142featureProgramScopeLinkedrareMSL 3.2 program-scope bindings in a linked visible function or a dynamic library
143featureProgramScopeReadnonea read of a program-scope buffer's global that Apple's compiler is not seen to write
144featureGenericPointersystemMSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
145featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
146featureWideLinesnonea 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)