Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal a8af53b32a Answer supportsPullModelInterpolation and refuse sample reads at custom positions
The runtime had no answer for supportsPullModelInterpolation (the M3 Max, a
Radeon Pro 5300M and a UHD 630 answer 1), so the consumer passed none.

- DeviceProperties::supports_pull_model_interpolation (Query::
  PullModelInterpolation) answers yes where the compile layer lowers every
  interpolation function: DeviceProfile::interpolation_function_needs is
  empty (sampleRateShading, and MoltenVK's
  shaderSampleRateInterpolationFunctions), the same predicate the lowering
  refuses by.
- A draw at custom sample positions through a pipeline whose fragment
  function reads an interpolant at a sample
  (GraphicsState::interpolates_at_sample) is refused
  NotImplemented(RuntimeGap::InterpolateAtSampleWithPositions) in
  settle_draw, which direct and indirect-command draws share: Vulkan takes
  no InterpolateAtSample in a pipeline made with custom sample locations
  (VUID-VkGraphicsPipelineCreateInfo-sampleLocationsEnable-01524), and
  Metal's answer there is not measured.

Tests:
- runtime tests::capabilities: every committed profile answers from the
  enabled features; every venue (moltenvk-m3, both lavapipe gates, 780M
  RADV, both ANV, RTX 5080) answers yes; vk12-floor no; moltenvk-m3 without
  the portability member no; every query answers on moltenvk-m3.
- validation runtime_lane::pull_model_interpolation (--cfg m2v_gpu or
  m2v_cpu_icd): the probe's lane draws (one triangle of w 1, 2, 4 over 6x6,
  at 1 and 4 samples: center, centroid, each sample, sample_id, five
  offsets, the float2/float/half and half4 interpolants) against Metal's
  reading pull_model_interpolation_m3_max.txt, every sample's coverage
  equal; word for word where the profile takes MetalInterpolation, else
  within the device's interpolation plus the location Vulkan leaves to it;
  the offset pipelines alone record DeviceInterpolationOffset and require
  the device's origin property. A pm_sample draw at custom positions is
  refused; a pm_offset draw there runs.

Verified on the M3 Max (MoltenVK 1.4.2, macOS 27.0.1) through the Mac GPU
lock: 25 draws, 14 samples at 1x and 55 at 4x each, every word Metal's
(most apart 0); the refusal and the offset draw at custom positions as
stated. Negative control: the MoltenVK origin set to 1/2 put every offset
draw 0.06 to 0.11 off Metal's. Not run on lavapipe here (no container
runtime up); CI's lavapipe lane runs it. Runtime capabilities, degradation
and families tests 47/47; clippy all features and --cfg m2v_gpu.

(cherry picked from commit e9f45f7c85309ba6d1e6bc57f3b10fd47585893e)
2026-11-01 23:38:39 -08:00

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