Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal e323ba2f72 Run tile threadgroups of every even shape in Metal's thread layout
The steps this packet landed as, in order:
- Read the coverage after the early depth test for [[sample_mask, post_depth_coverage]]
- Copy a stencil view's texels by the CPU as plain Metal does
- Give multisampled fragment imageblocks a block per sample, and test before writes a test may drop

Content: the tree of `development` at becd3e74a9, unchanged.
2026-10-26 13:19:05 +02:00

19 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 that is not an executable library, loaded as one
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
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
25featureArgumentBufferPointersappargument buffers holding buffer pointers
26featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
27featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
28featureDereferenceLoadedPointerapppointers loaded from argument buffers
29featurePointerToIntegerrarepointer to integer casts
30featurePointerComparerarecomparing pointers of different roots
31featureHandleAsPointerrareresource handles used as byte pointers
32featureConstantGlobalEscapingrarea constant global whose address escapes
33featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
34featureCoherentMemoryrarecoherent(device) accesses
35featureInt64Atomicsrare64-bit atomics
36featureImageAtomicsraretexture atomics beyond 32-bit integers
37featureDescriptorCountappmany textures or buffers in one stage on a smaller device
38featureBufferRangeappa buffer window past a device's descriptor range
39featureInt64Arithmeticrare64-bit integers on a device without shaderInt64
40featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
41featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
42featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
43featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
44featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
45featureTexelOffsetapptexel offsets a device cannot apply
46featureGatherExtendedraregathers with dynamic offsets or components
47featureStorageImageMultisamplerarewritable multisampled textures
48featureStorageTextureInVertexStagerarewritable textures in vertex functions
49featureCubeArrayrarecube arrays on a device without imageCubeArray
50featureSamplerAnisotropyappanisotropic samplers an argument buffer lists, on a device without samplerAnisotropy
51featureSamplerBorderColorappborder colors a device cannot express
52featureSamplerLodBiasappconstexpr samplers with an LOD bias
53featureSamplerCompareappcompare samplers a device cannot apply to the image
54featurePixelSamplerComparenoneApple's compiler rejects it
55featureTexelBufferapptexture buffers past a device's texel-buffer limits
56featureRasterOrderGroupsrareraster order groups
57featureFramebufferFetchsystemprogrammable 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)
58featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
59featureVertexAmplificationrarevertex amplification
60featureLayeredRenderingrarelayered rendering on a device without its features
61featureClipDistancerareclip distances on a device without them
62featureDualSourceBlendingraredual-source blending on a device without it
63featureBarycentricsrarebarycentric coordinates
64featureStencilExportrarestencil from the shader
65featureSampleRateShadingrareper-sample shading
66featurePixelCoverageAtSampleRaterarecoverage read at sample rate
67featureInterfaceComponentsraretoo many varyings or attachments for a device
68featureUnmatchedVaryingnonea Metal link error
69featureKernelStageInrarekernel stage-in combinations Metal leaves unestablished
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
79featureConstantnoneLLVM constant forms AIR does not emit
80featureAttributenoneLLVM ABI attributes AIR does not use
81featureBitcodeRecordnonebitcode records AIR does not emit
82featureSyncScopenonesynchronization scopes AIR does not use
83featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
84featureDirectCallrarevariadic or byval calls the inliner cannot take
85featureWideSwitchLiteralrare64-bit switch literals
86featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
87featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
88featureAlphaToOnerarealphaToOneEnabled
89featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
90featureFunctionConstantArgumentrarea function-constant-removed argument read
91featureSamplerBicubicFiltersystembicubic 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
92featureGroupCountraremore threadgroups than a device dispatches, past the binder's split
93featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
94featureIndependentBlendingrareper-attachment blending on a device without independentBlend
95featureRasterSampleCountappa sample count a device lacks for the attachments
96featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
97featureDepthClipClampappdepth clamp on a device without depthClamp
98featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
99featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
100featureSparseTextureraresparse residency reads
101featureTextureSizeappa texture past a device's image limits
102featureTextureSampleCountappa sample count a device lacks for the texture
103featureTextureViewappa texture view Vulkan cannot make exactly
104featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
105featureMipmapGenerationappgenerateMipmapsForTexture: where the device's filter is not Metal's
106featureHostMemorysystemnewBufferWithBytesNoCopy: where the device cannot import the memory
107featureGpuTimesrareGPU times on a queue without timestamps
108featureCountingVisibilityrarecounting occlusion queries on a device without precise queries
109featureViewFormatReinterpretationappa view of another component layout on a portability subset (MoltenVK)
110featureSeparateMultisampledDepthStencilrareseparate multisampled depth and stencil textures
111featurePixelCoveragerarecoverage reads at pixel rate in a multisampled pipeline
112featurePostDepthCoveragerarethe coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage
113featureCentroidVaryingrarecentroid varyings in a multisampled pipeline
114featurePrivateMemoryrarevery large per-thread arrays
115featureSparseTexturesraresparse heaps on a device without sparse images
116featureSparseMappingraresparse mappings off the device's blocks
117featureTimelineSemaphoresnonea device below the runtime's floor
118featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
119featureHeapTextureTilingapptextures in Shared heaps on a device whose optimal images take no host memory
120featureViewportDepthRangerareviewport depth outside [0, 1]
121featureUndeclaredTextureUsageappa shader write to a texture made without ShaderWrite, which plain Metal runs
122featureRenderTargetSizerarea render area past a device's framebuffer limits
123featureIndirectRenderStaterarerender state set by a kernel on an indirect command
124featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
125gapTexturesraretexture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views)
126gapResourceHeaprarethe resource-ID heap's remaining forms
127gapSparseHeapsraresparse heaps
128gapSparseTileMapsraresparse texture emulation's unbuilt pieces
129gapHeapPastMaxBufferSizerarea heap past maxBufferSize
130gapRotatedTexturerarea rotated drawable's views, blits with images over overlapping rows, rows past its buffer
131gapHeapTextureAlignmentrarea heap texture needing more than 256 KiB alignment
132gapHeapTextureMemoryappa heap texture the heap's memory type does not take
133gapFunctionTablePastMaxBufferLengthnonea function table past one buffer
134gapIndirectCommandBufferPastMaxBufferLengthnonean ICB past one buffer
135gapIndirectRenderCommandsrareindirect render commands' remaining pieces
136gapIndirectImageblockSizenonean imageblock side past 65535
137gapCommandReplayrarethe device replay of indirect command buffers
138gapRenderAttachmentsrarerender attachment forms not built
139gapAccelerationStructuresrareray tracing (out of scope by ruling)
140gapFeatureEnablenonedevice creation with a feature the runtime's chain lacks
141gapExtensionEnablenonedevice creation with an extension under an unknown name
142gapRendersystemrender pass, resolve and attachment forms not built (20 sites: see the appendix)
143gapTexelsPastBufferLengthrarea 2D array over a buffer past its length
144gapOverlappingSurfaceRowsrarean IOSurface plane whose rows overlap
145gapSamplePositionsAtBeginrarecustom sample positions Vulkan takes only at begin
146gapSharedEventAcrossDevicesrarea shared event opened on another device
147gapViewportDepthRangerareviewport depth outside [0, 1] without the device features
148gapNonFiniteDepthBiasrareNaN or infinite depth bias
149gapDepthNeverWithoutAttachmentraredepth compare Never with no depth attachment
150gapHiddenDepthStencilappa depth-stencil state using depth or stencil the pass lacks
151gapIndirectDrawArgumentsrareindirect draws whose arguments the CPU must read
152gapDepthStencilResolveraredepth/stencil resolve modes a device lacks
153gapTileAtSampleCountnonetile memory at a sample count Apple's GPUs lack
154gapImageblockMastersrareimageblocks of mixed sizes in one pass
155gapTileAndFragmentImageblocksrareexplicit imageblocks shared by tile and fragment functions
156gapMetal4ApiappMetal 4 (the API is missing: METAL-COVERAGE.md)
157gapCounterSampleBuffersappGPU counters and timestamps by sample buffer (missing API)
158gapResidencySetsappresidency sets (missing API)
159gapTextureAccessCountersraresparse texture access counters
160gapIoCommandQueuesrarefast resource loading (missing API)
161gapTextureViewPoolsraretexture view pools (missing API)
162gapColorAttachmentMappingrarecolor attachment mapping (missing API)
163gapLossyTextureCompressionrarelossy texture compression
164gapShaderValidationrareper-pipeline shader validation
165gapShaderLoggingrareshader os_log
166gapDeviceNotificationsraredevice hotplug notifications (deprecated)
167gapRateMapRegionsraredraws in rate-mapped passes the region path does not draw
168gapLayeredPassrarelayered passes needing a per-layer color resolve
169gapFunctionOptionsrarefunction descriptor options beyond CompileToBinary
170gapOverlappingTextureCopiesrareoverlapping texture copies (Metal races)
171gapRebindTexturesnonea runtime extension's rebind with a live texture
172gapDetachTexturesnonea runtime extension's detach with a texture no stand-in presents exactly
173gapDetachedTexelAccessnoneCPU texel access while a runtime extension detached the bytes
174gapTextureBufferLevelsrarea texture buffer of more than one level (public, unusual)
175gapWriteSwizzlenoneApple-private writeSwizzleEnabled with a swizzle that writes
176gapPvrtcBlockOrderrarePVRTC regions off whole levels
177gapDecodedHeapTextureappan ASTC texture in a heap on a device without ASTC
178gapVertexFetchPast4GiBrarevertex fetch past 4 GiB of a bind offset
179gapStageInFetchPast4GiBrarestage-in fetch past 4 GiB of a bind offset
180appleProtectedContentnoneApple-private (no public header)
181appleLineWidthnoneApple-private (no public header)
182appleViewportTransformDisablednoneApple-private (no public header)
183appleVertexAmplificationModenoneApple-private (no public header)
184appleDepthClearednoneApple-private (no public header)
185appleStencilClearednoneApple-private (no public header)
186appleSurfaceClientDirectionnonean IOSurface key in no public header
187bindDescriptorRangeExceededappa buffer window past a device's descriptor range
188bindTexelBufferTooLargerarea texture buffer past maxTexelBufferElements
189bindHeapTooLargeraremore resident textures than the pipeline's heap holds (bindless at scale)
190bindTessellationFactorRangeraretessellation factors past one storage descriptor
191bindPatchIndexRangerarepatch indices past one storage descriptor
192bindControlPointIndexRangerarecontrol-point indices past one storage descriptor
193bindMissingStageInRegionnonea stage-in region never set, which Metal leaves undefined
194bindUniformViewAliasedrareProfile F's uniform-view fallback aliased by a write
195bindMissingDeviceAddressrarea slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses
196limitInlinedInstructionsrarevery large shaders after inlining
197limitOutputBlocksrarevery large control flow
198limitIrreducibleDepthnonedeeply nested irreducible loops
199limitSpirvWordsrarevery large output modules
200limitWorkUnitsrarevery large shaders
201limitLedgerBytesrarevery large shaders
202limitTypeCountnonea type table past the cap
203limitMetadataNodesnonemetadata past the cap
204limitBitstreamNestingnonemalformed nesting
205limitInstructionCountrarevery large modules
206limitLayoutNestingnoneargument-buffer layouts nested past the cap
207limitConstructNestingnonecontrol flow nested past the cap
208limitPrivateArenaBytesnonea private arena past 4 GiB
209limitCallStackBytesraredeep visible-function call stacks
210gapMappedTextureSamplingnonea runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path
211ratemapScreenExtentrarea rate map whose screen is past 16384 a side
212ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
213ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
214ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
215ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
216budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
217gapLibrarySourceappa library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR
218gapRestartedStripnonea strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws
219gapProvokingVertexnonea draw after the Apple-private setProvokingVertexMode: 1, on a device without the last provoking vertex, whose rotated list cannot draw as Metal draws
220gapPrivatePrimitivesnonea draw of an Apple-private primitive type (OpenGL on Metal's quads and kin) whose list cannot draw as Metal draws: a primitive_id varying, a vertex start past 2^31
221gapPrimitiveIdIndicesrarean indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier
222featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
223gapSurfaceDepthStencilrarea blit of the stencil of a Depth32Float_Stencil8 texture over a plane of an IOSurface with planes, or a pass on an X32_Stencil8 one's view as Depth32Float_Stencil8
224gapExtendedRangeResolverarea multisample resolve of a BGRA10_XR, BGR10_XR or sRGB twin attachment (EDR content drawn multisampled)
225featureExtendedRangeBlendsystemthe parts of a blend into an extended-range (XR10) attachment the measured model does not hold (second-source factors, the color blend color difference, a one-color-channel mask, float4 and sRGB outside the measured forms); the consumer's guests blend RGB10A8_2P_XR10 attachments
226featureTileReachappthe tiles a pass's draws reach, binned on a device without shaderInt64
227featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
228featureProgramScopeBindingappMSL 3.2 program-scope buffer bindings (macOS 15 and later)
229featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
230gapPredicationDropsUngatedWorknonean unbalanced Apple-private command-predication record as its unit's first, after dispatches of the unit
231gapMultisampledBufferCopyrarea buffer<->multisampled-texture copy on a device without sample-rate shading, an integer multisample attachment at the count, or the copy format's storage; and, where maintenance8's depth/colour copies are missing or wrong, what the sample-rate draws cannot move: a 16-bit depth, or a depth or stencil texture they cannot sample or render to (emulated elsewhere; the consumer's Maps pans and screensaver make the copy)
232gapMultisampledBufferLayoutrarea buffer<->multisampled-texture copy at a bytesPerRow of 0 from an offset that is a multiple of 16, or of pixels of 32 bytes or more at a pitch below a row or off the pixel: Metal copies these by rules not yet reduced, and its API validation rejects them
233gapColorAttachmentGroupsappin a render pass of more color attachments than the device draws at once (five or more on a device of four), or one at an index past them: a pipeline state of other colors, a tile state, an execution of render commands, a draw reading another group's attachment