Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal a69cb43486 translator: threadgroup memory reads zero until the program writes it, on Device::from_queries
On the new runtime's profile every Workgroup variable that holds a
function's threadgroup memory has a null initializer: the threadgroup
arena (declared threadgroup variables, [[threadgroup(n)]] regions and the
imageblock, memory::arena) and the typed threadgroup objects
(lower::access::local). One form on every device: the Vulkan 1.3 floor
requires shaderZeroInitializeWorkgroupMemory; a profile without it
refuses such a function, Unsupported{ZeroedThreadgroupMemory}.
Device::new's profile is unchanged (ProfileFacts::ROWS keeps
ThreadgroupStart::Unwritten), so the old runtime's SPIR-V is too.

The translator's own Workgroup words get none, as it writes each before
any read: the emulated SIMD-group scratch and vote word, the object
stage's mesh grid, the mesh wrapper's count and staged indices, the
emulated payload and the binder's scan and merge kernels.

The builder refused a null of an array whose length is a specialization
operation (spirv/ir/constant.rs, ConstRule::NullType); an arena with
regions, and the emulated scratch, have such lengths. spirv-val's
IsTypeNullable reads an array's element type alone, so the builder now
takes it. That refusal is what made rt report a probe's emulated variant
as missing (Gap::PartialSimdgroups after Later::lower's Refused).

The profile verifier also refuses a Workgroup initializer other than a
null (VUID-StandaloneSpirv-OpVariable-04734).

docs/API.md states the form with Metal's words on threadgroup memory;
SEMANTICS_VERSION 2192; REFUSALS.md and api_signatures regenerated.

Tests: engine_zeroed_threadgroup (null initializers through from_queries
on four profiles, zeros on the interpreter in both orders and two
threadgroups, the emulated variant's arena zeroed and scratch not,
Device::new uninitialized, the vk12 floor refused),
a_specialization_sized_array_has_a_null, a_workgroup_initializer_is_only_a_null,
the profile facts' fingerprint.
2026-11-19 13:52:35 -08:00

23 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
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)
26featureArgumentBufferPointersappargument buffers holding buffer pointers
27featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
28featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
29featureDereferenceLoadedPointerapppointers loaded from argument buffers
30featurePointerToIntegerrarepointer to integer casts
31featurePointerComparerarecomparing pointers of different roots
32featureHandleAsPointerrareresource handles used as byte pointers
33featureConstantGlobalEscapingrarea constant global whose address escapes
34featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
35featureZeroedThreadgroupMemoryrarethreadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
36featureCoherentMemoryrarecoherent(device) accesses
37featureInt64Atomicsrare64-bit atomics
38featureImageAtomicsraretexture atomics beyond 32-bit integers
39featureDescriptorCountappmany textures or buffers in one stage on a smaller device
40featureStageSizerarea kernel heavier than the heaviest stage measured to compile within host-sized memory, as the device's plan writes it (from_queries), or too large for a driver measured to corrupt one past its bound or to outgrow host memory below it
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
71featureSamplePositionsrarecustom sample positions on a device that takes none at the pass's sample count
72featurePixelCoverageAtSampleRaterarecoverage read at sample rate
73featureInterfaceComponentsraretoo many varyings or attachments for a device
74featureUnmatchedVaryingnonea Metal link error
75featureKernelStageInrarekernel stage-in combinations Metal leaves unestablished
76featureVertexStepRateappinstanced vertex layouts stepped at a rate above 1
77featureVertexInputLayoutrarevertex offsets or strides off their format's alignment, or past a device's limits
78featureTessellationraretessellation
79featureMeshShadingraremesh pipelines
80featureTileShadingraretile shaders (Apple GPU families)
81featureImageblocksrareimageblocks (Apple GPU families)
82featureRayTracingrareray tracing (out of scope by ruling)
83featureTensorsrareshader tensors
84featureRasterizationRateMaprarerasterization rate maps
85featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
86featureVulkanVersionnonea device below Vulkan 1.2
87featureIdentityDomainsnonethe identity domains, which the new 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
111featureTextureSizeappa texture past a device's image limits
112featureTextureSampleCountappa sample count a device lacks for the texture
113featureTextureViewappa texture view Vulkan cannot make exactly
114featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
115featureMipmapGenerationappgenerateMipmapsForTexture: of a format or chain neither the device's blits nor the compute filter can run
116featureHostMemorysystemnewBufferWithBytesNoCopy: where the device cannot import the memory
117featureGpuTimesrareGPU times on a queue without timestamps
118featureCountingVisibilityrarecounting occlusion queries on a device without precise queries
119featureViewFormatReinterpretationappa view of another component layout on a portability subset (MoltenVK)
120featureSeparateMultisampledDepthStencilrareseparate multisampled depth and stencil textures
121featurePixelCoveragerarecoverage reads at pixel rate in a multisampled pipeline
122featurePostDepthCoveragerarethe coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage
123featureCentroidVaryingrarecentroid varyings in a multisampled pipeline
124featurePrivateMemoryrarevery large per-thread arrays
125featureSparseTexturesraresparse heaps on a device without sparse images
126featureTimelineSemaphoresnonea device below the runtime's floor
127featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
128featureHeapTextureTilingapptextures in Shared heaps on a device whose optimal images take no host memory
129featureViewportDepthRangerareviewport depth outside [0, 1]
130featureUndeclaredTextureUsageappa shader write to a texture made without ShaderWrite, which plain Metal runs
131featureRenderTargetSizerarea render area past a device's framebuffer limits
132featureIndirectRenderStaterarerender state set by a kernel on an indirect command
133featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
134gapTexturesraretexture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views)
135gapResourceHeaprarethe resource-ID heap's remaining forms
136gapSparseHeapsraresparse heaps
137gapSparseTileMapsraresparse texture emulation's unbuilt pieces
138gapHeapPastMaxBufferSizerarea heap past maxBufferSize
139gapRotatedTexturerarea rotated drawable's views, rows past its buffer
140gapHeapTextureAlignmentrarea heap texture needing more than 256 KiB alignment
141gapHeapTextureMemoryappa heap texture the heap's memory type does not take
142gapFunctionTablePastMaxBufferLengthnonea function table past one buffer
143gapIndirectCommandBufferPastMaxBufferLengthnonean ICB past one buffer
144gapIndirectRenderCommandsrareindirect render commands' remaining pieces
145gapIndirectImageblockSizenonean imageblock side past 65535
146gapCommandReplayrarethe device replay of indirect command buffers
147gapRenderAttachmentsrarerender attachment forms not built
148gapAccelerationStructuresrareray tracing (out of scope by ruling)
149gapFeatureEnablenonedevice creation with a feature the runtime's chain lacks
150gapExtensionEnablenonedevice creation with an extension under an unknown name
151gapRendersystemrender pass, resolve and attachment forms not built (20 sites: see the appendix)
152gapTexelsPastBufferLengthrarea YCbCr, two-plane, 4:2:2, depth, BC or rotated texture over an IOSurface plane past its surface
153gapOverlappingSurfaceRowsrarean IOSurface plane whose rows overlap
154gapMemorylessSurfacePlanerarea memoryless texture over an IOSurface plane
155gapSurfacePlaneShaperarea texture over an IOSurface plane past one 2D image of its rows, or a BC one of 16-byte blocks off 16
156gapIndirectCommandPastSizenonean indirect command at or past the buffer's size
157gapExecutionRangePastBufferrarean execution range whose 8 bytes run past its buffer
158gapExecutionRangeOffFourrarean execution range at an offset off 4 bytes
159gapIndirectCommandUnstridedBufferrarean executed indirect command's buffer bound without the attribute stride the dynamic layout of its pipeline reads, where the pipeline's descriptor turned `support_dynamic_attribute_stride` on (with it off there is no stride word, and the runtime answers the bind at stride 0 as Metal does)
160gapSamplePositionsAtBeginrarecustom sample positions Vulkan takes only at begin
161gapInterpolateAtSampleWithPositionsrareinterpolate_at_sample in a pass at custom sample positions
162gapExportableMemorynonea runtime extension's exportable buffer on a device without the opaque-fd export
163gapDmaBufExportnonea runtime extension's dma-buf-exportable buffer on a device without the dma-buf export
164gapExportableSemaphorenonea runtime extension's exportable shared event on a device without the opaque-fd export
165gapSyncFileExportnonea runtime extension's completion sync file on a device without the sync-file export
166gapSharedEventAcrossDevicesrarea shared event opened on another device
167gapVkImagePlaneCopynonea runtime extension's texture over a plane of the caller's VkImage copied, filled, mipmapped or rendered to
168gapViewportDepthRangerareviewport depth outside [0, 1] without the device features
169gapNonFiniteDepthBiasrareNaN or infinite depth bias
170gapDepthNeverWithoutAttachmentraredepth compare Never with no depth attachment
171gapHiddenDepthStencilappa depth-stencil state using depth or stencil the pass lacks
172gapIndirectDrawArgumentsrareindirect draws whose arguments the CPU must read
173gapDepthStencilResolveraredepth/stencil resolve modes a device lacks
174gapTileAtSampleCountnonetile memory at a sample count Apple's GPUs lack
175gapImageblockMastersrareimageblocks of mixed sizes in one pass
176gapTileAndFragmentImageblocksrareexplicit imageblocks shared by tile and fragment functions
177gapMetal4ApiappMetal 4 (the API is missing: METAL-COVERAGE.md)
178gapCounterSampleBuffersappGPU counters and timestamps by sample buffer (missing API)
179gapResidencySetsappresidency sets (missing API)
180gapTextureAccessCountersraresparse texture access counters
181gapIoCommandQueuesrarefast resource loading (missing API)
182gapTextureViewPoolsraretexture view pools (missing API)
183gapColorAttachmentMappingrarecolor attachment mapping (missing API)
184gapLossyTextureCompressionrarelossy texture compression
185gapShaderValidationrareper-pipeline shader validation
186gapShaderLoggingrareshader os_log
187gapDeviceNotificationsraredevice hotplug notifications (deprecated)
188gapRateMapRegionsraredraws in rate-mapped passes the region path does not draw
189gapLayeredPassrarelayered passes needing a per-layer color resolve
190gapOverlappingTextureCopiesrareoverlapping texture copies (Metal races)
191gapEmptyFillPatternnonea fill of no pattern bytes through the Apple-private fillTexture:...:bytes:length:
192gapRebindTexturesnonea runtime extension's rebind with a live texture
193gapDetachTexturesnonea runtime extension's detach with a texture no stand-in presents exactly
194gapDetachedTexelAccessnoneCPU texel access while a runtime extension detached the bytes
195gapTextureBufferLevelsrarea texture buffer of more than one level (public, unusual)
196gapWriteSwizzlenoneApple-private writeSwizzleEnabled with a swizzle that writes
197gapPvrtcBlockOrderrarePVRTC regions off whole levels
198gapDecodedHeapTextureappan ASTC texture in a heap on a device without ASTC
199gapVertexFetchPast4GiBrarevertex fetch past 4 GiB of a bind offset
200gapStageInFetchPast4GiBrarestage-in fetch past 4 GiB of a bind offset
201appleProtectedContentnoneApple-private (no public header)
202appleViewportTransformDisablednoneApple-private (no public header)
203appleVertexAmplificationModenoneApple-private (no public header)
204appleDepthClearednoneApple-private (no public header)
205appleStencilClearednoneApple-private (no public header)
206appleSurfaceClientDirectionnonean IOSurface key in no public header
207bindDescriptorRangeExceededappa buffer window past a device's descriptor range
208bindTexelBufferTooLargerarea texture buffer past maxTexelBufferElements its parts do not bind
209bindHeapTooLargeraremore resident textures than the pipeline's heap holds (bindless at scale)
210bindTessellationFactorRangeraretessellation factors past one storage descriptor
211bindPatchIndexRangerarepatch indices past one storage descriptor
212bindControlPointIndexRangerarecontrol-point indices past one storage descriptor
213bindMissingStageInRegionnonea stage-in region never set, which Metal leaves undefined
214bindUniformViewAliasedrareProfile F's uniform-view fallback aliased by a write
215bindMissingDeviceAddressrarea slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses
216limitInlinedInstructionsrarevery large shaders after inlining
217limitOutputBlocksrarevery large control flow
218limitIrreducibleDepthnonedeeply nested irreducible loops
219limitSpirvWordsrarevery large output modules
220limitWorkUnitsrarevery large shaders
221limitLedgerBytesrarevery large shaders
222limitTypeCountnonea type table past the cap
223limitMetadataNodesnonemetadata past the cap
224limitBitstreamNestingnonemalformed nesting
225limitInstructionCountrarevery large modules
226limitLayoutNestingnoneargument-buffer layouts nested past the cap
227limitConstructNestingnonecontrol flow nested past the cap
228limitPrivateArenaBytesnonea private arena past 4 GiB
229limitCallStackBytesraredeep visible-function call stacks
230gapMappedTextureSamplingnonea runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path
231ratemapScreenExtentrarea rate map whose screen is past 16384 a side
232ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
233ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
234ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
235ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
236budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
237gapLibrarySourceappa library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR
238gapRestartedStripnonea strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws
239gapProvokingVertexnonea draw after the Apple-private setProvokingVertexMode: 1, on a device without the last provoking vertex, whose rotated list cannot draw as Metal draws
240gapPrivatePrimitivesnonea draw of an Apple-private primitive type (OpenGL on Metal's quads and kin) whose list cannot draw as Metal draws: a list past a u32 or one storage range, indices or arguments an unordered earlier draw wrote
241gapPrimitiveIdIndicesrarean indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier
242featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
243gapSurfaceDepthStencilrarea 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
244featureExtendedRangeBlendsysteman extended-range (XR10) attachment blended from an output other than four half or float lanes; a 16-bit float attachment's storage-form blend of a second-source factor or a one-color-channel mask under fast math; the consumer's guests blend RGB10A8_2P_XR10 attachments
245featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
246featureProgramScopeBindingappMSL 3.2 program-scope buffer bindings (macOS 15 and later)
247featureGenericPointersystemMSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
248featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
249gapMultisampledBufferCopyrarea 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 on a driver whose codes the fragment-depth draw is not measured to keep, or a depth or stencil texture they cannot sample or render to (emulated elsewhere; the consumer's Maps pans and screensaver make the copy)
250gapMultisampledBufferLayoutrarea 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
251gapColorAttachmentGroupsappin 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
252gapMadeBeforeRecoveryappany object a program made before its device recovered from a lost VkDevice that the recovery does not carry (a pooled Shared or Managed buffer in memory the device allocated, a texture, a pipeline state), used after the recovery
253gapAdoptedDeviceRecoverynonethe recovery test hook on a device the consumer made itself
254gapRemadeAfterRecoveryFailedappa pipeline state made before its device recovered from a lost VkDevice whose making again on the new one failed, bound after the recovery
255featureWideLinesnonea 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)
256gapWideLinesnoneunder the Apple-private setLineWidth: at a width other than 1, a line strip drawn as the band whose list of segments the runtime cannot draw (past what a u32 counts or one storage range binds, or indices an unordered draw wrote)