Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal 2bd067d6c7 RUNTIME 2254: a command buffer's completion exports as a SYNC_FD sync file
A consumer that composites one GPU's frames on another vendor's GPU has to order the second
device's work after a runtime command buffer. The only semaphore export was
SharedEvent::export_semaphore_fd: a timeline semaphore as OPAQUE_FD, which Vulkan imports only on a
device with the same deviceUUID and driverUUID, so it cannot cross from NVIDIA to RADV. The consumer
waited on the CPU instead, about 3.5 ms a present on its window thread. A cross-driver handle needs
SYNC_FD, which only binary semaphores export.

New (unix only, no Metal counterpart):
- CommandBuffer::add_completion_sync_file(), before the commit: the command buffer's last batch
  also signals a binary semaphore exportable as SYNC_FD, after its to-host barrier. That batch never
  joins a submission group. A command buffer with no GPU work submits the signal alone, after its
  queue's earlier work.
- CommandBuffer::export_completion_sync_file() -> Result<Option<OwnedFd>, Error>, after the
  commit. It blocks only until the signalling batch's vkQueueSubmit has returned, never on the GPU.
  None means the work already ended, or the driver answered -1; the importer imports -1 or skips
  the wait.
- Spec: the export follows the signal's submission (VUID-03254), with copy transference. One export
  per command buffer. Event::reserve_vk_signal's doc carries the contract for a reserved signal
  that the batch waits on.
- The semaphore goes back to an idle pool of up to 8 per device once the command buffer completes
  with its fd exported, and is released otherwise.

Where the host writes the caller's pages after the GPU work (a copied host buffer's merge back, or a
managed two-copy buffer's copy-out), no GPU signal can come after those writes. There the export
waits for completion and answers None, announced by a NEW Degradation: SyncFileAfterHostCopies
(sync-file-after-host-copies, performance). Also new: WorkCounts::sync_files_exported and
sync_files_after_host_copies; RuntimeGap::SyncFileExport, for a device without
VK_KHR_external_semaphore_fd or without binary SYNC_FD export (MoltenVK, an adopted device without
the extension); Problem::SyncFile(SyncFileProblem { Committed, NotCommitted, Exported }).
docs/API.md (catalogue entry), the runtime README, REFUSALS.md (regenerated), the reach table and
api_signatures are updated.

Verified (syncfile, 8f9caba0ae on d72dc03519, msi):
- Runtime suite: 1538 passed, 6 skipped (27758).
- tests::sync_file on lavapipe (27733). llvmpipe exports and imports SYNC_FD. The no-copy buffer
  was imported by pointer. A second VkDevice imported the fd and read every byte filled. The export
  came while the status was Scheduled.
- The lane test a_sync_file_after_host_copies_waits_for_them_announced (27759): the export over a
  copied buffer's merge back waited, the pages held the fill, and the kind was announced once and
  counted.
- clippy plain, m2v_cpu_icd and m2v_gpu 0 (27709, 27737, 27760); rustdoc 0 (27730).
- Owed: the cross-vendor run on um790, the 2080 writing and an XTX VkDevice importing (27739,
  queued).

RUNTIME_VERSION 2253 -> 2254.
2026-11-13 19:06:19 -08:00

22 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
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
38featureStageSizerarea kernel too large for a driver's compiler, on a driver measured to corrupt one past its bound or to outgrow host memory below it
39featureBufferRangeappa buffer window past a device's descriptor range
40featureInt64Arithmeticrare64-bit integers on a device without shaderInt64
41featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
42featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
43featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
44featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
45featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
46featureTexelOffsetapptexel offsets a device cannot apply
47featureGatherExtendedraregathers with dynamic offsets or components
48featureStorageImageMultisamplerarewritable multisampled textures
49featureStorageTextureInVertexStagerarewritable textures in vertex functions
50featureCubeArrayrarecube arrays on a device without imageCubeArray
51featureSamplerAnisotropyappanisotropic samplers an argument buffer lists, on a device without samplerAnisotropy
52featureSamplerBorderColorappborder colors a device cannot express
53featureSamplerLodBiasappconstexpr samplers with an LOD bias
54featureSamplerCompareappcompare samplers a device cannot apply to the image
55featurePixelSamplerComparenoneApple's compiler rejects it
56featureTexelBufferapptexture buffers past a device's texel-buffer limits
57featureRasterOrderGroupsrareraster order groups
58featureFramebufferFetchsystemprogrammable 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)
59featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
60featurePrivatePrimitivesrarea 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
61featureVertexAmplificationrarevertex amplification
62featureLayeredRenderingrarelayered rendering on a device without its features
63featureClipDistancerareclip distances on a device without them
64featureDualSourceBlendingraredual-source blending on a device without it
65featureBarycentricsrarebarycentric coordinates
66featureStencilExportrarestencil from the shader
67featureSampleRateShadingrareper-sample shading
68featurePullModelInterpolationrareinterpolant inputs read at the centroid, a sample or an offset
69featureSamplePositionsrarecustom sample positions on a device that takes none at the pass's sample count
70featurePixelCoverageAtSampleRaterarecoverage read at sample rate
71featureInterfaceComponentsraretoo many varyings or attachments for a device
72featureUnmatchedVaryingnonea Metal link error
73featureKernelStageInrarekernel stage-in combinations Metal leaves unestablished
74featureTessellationraretessellation
75featureMeshShadingraremesh pipelines
76featureTileShadingraretile shaders (Apple GPU families)
77featureImageblocksrareimageblocks (Apple GPU families)
78featureRayTracingrareray tracing (out of scope by ruling)
79featureTensorsrareshader tensors
80featureRasterizationRateMaprarerasterization rate maps
81featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
82featureVulkanVersionnonea device below Vulkan 1.2
83featureConstantnoneLLVM constant forms AIR does not emit
84featureAttributenoneLLVM ABI attributes AIR does not use
85featureBitcodeRecordnonebitcode records AIR does not emit
86featureSyncScopenonesynchronization scopes AIR does not use
87featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
88featureDirectCallrarevariadic or byval calls the inliner cannot take
89featureWideSwitchLiteralrare64-bit switch literals
90featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
91featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
92featureAlphaToOnerarealphaToOneEnabled on a device without alphaToOne
93featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
94featureFunctionConstantArgumentrarea function-constant-removed argument read
95featureSamplerBicubicFiltersystembicubic 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
96featureGroupCountraremore threadgroups than a device dispatches, past the binder's split
97featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
98featureIndependentBlendingrareper-attachment blending on a device without independentBlend
99featureRasterSampleCountappa sample count a device lacks for the attachments
100featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
101featureTriangleFillPointssystemApple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
102featureDepthClipClampappdepth clamp on a device without depthClamp
103featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
104featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
105featureSparseTextureraresparse residency reads
106featureTextureSizeappa texture past a device's image limits
107featureTextureSampleCountappa sample count a device lacks for the texture
108featureTextureViewappa texture view Vulkan cannot make exactly
109featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
110featureMipmapGenerationappgenerateMipmapsForTexture: of a format or chain neither the device's blits nor the compute filter can run
111featureHostMemorysystemnewBufferWithBytesNoCopy: where the device cannot import the memory
112featureGpuTimesrareGPU times on a queue without timestamps
113featureCountingVisibilityrarecounting occlusion queries on a device without precise queries
114featureViewFormatReinterpretationappa view of another component layout on a portability subset (MoltenVK)
115featureSeparateMultisampledDepthStencilrareseparate multisampled depth and stencil textures
116featurePixelCoveragerarecoverage reads at pixel rate in a multisampled pipeline
117featurePostDepthCoveragerarethe coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage
118featureCentroidVaryingrarecentroid varyings in a multisampled pipeline
119featurePrivateMemoryrarevery large per-thread arrays
120featureSparseTexturesraresparse heaps on a device without sparse images
121featureTimelineSemaphoresnonea device below the runtime's floor
122featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
123featureHeapTextureTilingapptextures in Shared heaps on a device whose optimal images take no host memory
124featureViewportDepthRangerareviewport depth outside [0, 1]
125featureUndeclaredTextureUsageappa shader write to a texture made without ShaderWrite, which plain Metal runs
126featureRenderTargetSizerarea render area past a device's framebuffer limits
127featureIndirectRenderStaterarerender state set by a kernel on an indirect command
128featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
129gapTexturesraretexture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views)
130gapResourceHeaprarethe resource-ID heap's remaining forms
131gapSparseHeapsraresparse heaps
132gapSparseTileMapsraresparse texture emulation's unbuilt pieces
133gapHeapPastMaxBufferSizerarea heap past maxBufferSize
134gapRotatedTexturerarea rotated drawable's views, rows past its buffer
135gapHeapTextureAlignmentrarea heap texture needing more than 256 KiB alignment
136gapHeapTextureMemoryappa heap texture the heap's memory type does not take
137gapFunctionTablePastMaxBufferLengthnonea function table past one buffer
138gapIndirectCommandBufferPastMaxBufferLengthnonean ICB past one buffer
139gapIndirectRenderCommandsrareindirect render commands' remaining pieces
140gapIndirectImageblockSizenonean imageblock side past 65535
141gapCommandReplayrarethe device replay of indirect command buffers
142gapRenderAttachmentsrarerender attachment forms not built
143gapAccelerationStructuresrareray tracing (out of scope by ruling)
144gapFeatureEnablenonedevice creation with a feature the runtime's chain lacks
145gapExtensionEnablenonedevice creation with an extension under an unknown name
146gapRendersystemrender pass, resolve and attachment forms not built (20 sites: see the appendix)
147gapTexelsPastBufferLengthrarea YCbCr, two-plane, 4:2:2, depth, BC or rotated texture over an IOSurface plane past its surface
148gapOverlappingSurfaceRowsrarean IOSurface plane whose rows overlap
149gapMemorylessSurfacePlanerarea memoryless texture over an IOSurface plane
150gapSurfacePlaneShaperarea texture over an IOSurface plane past one 2D image of its rows, or a BC one of 16-byte blocks off 16
151gapIndirectCommandPastSizenonean indirect command at or past the buffer's size
152gapExecutionRangePastBufferrarean execution range whose 8 bytes run past its buffer
153gapExecutionRangeOffFourrarean execution range at an offset off 4 bytes
154gapIndirectCommandUnstridedBufferrarean 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)
155gapSamplePositionsAtBeginrarecustom sample positions Vulkan takes only at begin
156gapInterpolateAtSampleWithPositionsrareinterpolate_at_sample in a pass at custom sample positions
157gapExportableMemorynonea runtime extension's exportable buffer on a device without the opaque-fd export
158gapDmaBufExportnonea runtime extension's dma-buf-exportable buffer on a device without the dma-buf export
159gapExportableSemaphorenonea runtime extension's exportable shared event on a device without the opaque-fd export
160gapSyncFileExportnonea runtime extension's completion sync file on a device without the sync-file export
161gapSharedEventAcrossDevicesrarea shared event opened on another device
162gapVkImagePlaneCopynonea runtime extension's texture over a plane of the caller's VkImage copied, filled, mipmapped or rendered to
163gapViewportDepthRangerareviewport depth outside [0, 1] without the device features
164gapNonFiniteDepthBiasrareNaN or infinite depth bias
165gapDepthNeverWithoutAttachmentraredepth compare Never with no depth attachment
166gapHiddenDepthStencilappa depth-stencil state using depth or stencil the pass lacks
167gapIndirectDrawArgumentsrareindirect draws whose arguments the CPU must read
168gapDepthStencilResolveraredepth/stencil resolve modes a device lacks
169gapTileAtSampleCountnonetile memory at a sample count Apple's GPUs lack
170gapImageblockMastersrareimageblocks of mixed sizes in one pass
171gapTileAndFragmentImageblocksrareexplicit imageblocks shared by tile and fragment functions
172gapMetal4ApiappMetal 4 (the API is missing: METAL-COVERAGE.md)
173gapCounterSampleBuffersappGPU counters and timestamps by sample buffer (missing API)
174gapResidencySetsappresidency sets (missing API)
175gapTextureAccessCountersraresparse texture access counters
176gapIoCommandQueuesrarefast resource loading (missing API)
177gapTextureViewPoolsraretexture view pools (missing API)
178gapColorAttachmentMappingrarecolor attachment mapping (missing API)
179gapLossyTextureCompressionrarelossy texture compression
180gapShaderValidationrareper-pipeline shader validation
181gapShaderLoggingrareshader os_log
182gapDeviceNotificationsraredevice hotplug notifications (deprecated)
183gapRateMapRegionsraredraws in rate-mapped passes the region path does not draw
184gapLayeredPassrarelayered passes needing a per-layer color resolve
185gapOverlappingTextureCopiesrareoverlapping texture copies (Metal races)
186gapEmptyFillPatternnonea fill of no pattern bytes through the Apple-private fillTexture:...:bytes:length:
187gapRebindTexturesnonea runtime extension's rebind with a live texture
188gapDetachTexturesnonea runtime extension's detach with a texture no stand-in presents exactly
189gapDetachedTexelAccessnoneCPU texel access while a runtime extension detached the bytes
190gapTextureBufferLevelsrarea texture buffer of more than one level (public, unusual)
191gapWriteSwizzlenoneApple-private writeSwizzleEnabled with a swizzle that writes
192gapPvrtcBlockOrderrarePVRTC regions off whole levels
193gapDecodedHeapTextureappan ASTC texture in a heap on a device without ASTC
194gapVertexFetchPast4GiBrarevertex fetch past 4 GiB of a bind offset
195gapStageInFetchPast4GiBrarestage-in fetch past 4 GiB of a bind offset
196appleProtectedContentnoneApple-private (no public header)
197appleViewportTransformDisablednoneApple-private (no public header)
198appleVertexAmplificationModenoneApple-private (no public header)
199appleDepthClearednoneApple-private (no public header)
200appleStencilClearednoneApple-private (no public header)
201appleSurfaceClientDirectionnonean IOSurface key in no public header
202bindDescriptorRangeExceededappa buffer window past a device's descriptor range
203bindTexelBufferTooLargerarea texture buffer past maxTexelBufferElements
204bindHeapTooLargeraremore resident textures than the pipeline's heap holds (bindless at scale)
205bindTessellationFactorRangeraretessellation factors past one storage descriptor
206bindPatchIndexRangerarepatch indices past one storage descriptor
207bindControlPointIndexRangerarecontrol-point indices past one storage descriptor
208bindMissingStageInRegionnonea stage-in region never set, which Metal leaves undefined
209bindUniformViewAliasedrareProfile F's uniform-view fallback aliased by a write
210bindMissingDeviceAddressrarea slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses
211limitInlinedInstructionsrarevery large shaders after inlining
212limitOutputBlocksrarevery large control flow
213limitIrreducibleDepthnonedeeply nested irreducible loops
214limitSpirvWordsrarevery large output modules
215limitWorkUnitsrarevery large shaders
216limitLedgerBytesrarevery large shaders
217limitTypeCountnonea type table past the cap
218limitMetadataNodesnonemetadata past the cap
219limitBitstreamNestingnonemalformed nesting
220limitInstructionCountrarevery large modules
221limitLayoutNestingnoneargument-buffer layouts nested past the cap
222limitConstructNestingnonecontrol flow nested past the cap
223limitPrivateArenaBytesnonea private arena past 4 GiB
224limitCallStackBytesraredeep visible-function call stacks
225gapMappedTextureSamplingnonea runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path
226ratemapScreenExtentrarea rate map whose screen is past 16384 a side
227ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
228ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
229ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
230ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
231budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
232gapLibrarySourceappa library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR
233gapRestartedStripnonea strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws
234gapProvokingVertexnonea draw after the Apple-private setProvokingVertexMode: 1, on a device without the last provoking vertex, whose rotated list cannot draw as Metal draws
235gapPrivatePrimitivesnonea 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
236gapPrimitiveIdIndicesrarean indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier
237featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
238gapSurfaceDepthStencilrarea 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
239featureExtendedRangeBlendsysteman 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
240featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
241featureProgramScopeBindingappMSL 3.2 program-scope buffer bindings (macOS 15 and later)
242featureGenericPointersystemMSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
243featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
244gapMultisampledBufferCopyrarea 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)
245gapMultisampledBufferLayoutrarea 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
246gapColorAttachmentGroupsappin 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
247gapMadeBeforeRecoveryappany 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
248gapAdoptedDeviceRecoverynonethe recovery test hook on a device the consumer made itself
249gapRemadeAfterRecoveryFailedappa pipeline state made before its device recovered from a lost VkDevice whose making again on the new one failed, bound after the recovery
250featureWideLinesnonea 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)
251gapWideLinesnoneunder 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)