Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal 3dd70970df Reach the execution status through a binding where the device addresses no buffer
The execution-status work packet: where the device addresses no buffer, the command buffer's status
words are reached through a binding the plan asks for (WriteSource::ExecutionStatus), bound by the
runtime and by both Vulkan executors, documented, with the refusal surface regenerated.

What: a stage that writes the command buffer's ExecutionStatus (an absent argument's read, a
seq_cst fence, an argument buffer's cubic-sampler test) reaches it by device address where the
device addresses buffers (bufferDeviceAddress and shaderInt64), as before, and elsewhere through
a set-0 storage buffer of its own: ResourceSlot { stage, Synthetic(ExecutionStatus), 0 }, a
storage word view the status words are written through. absent::state_status states the form;
the binding counts once in the stage's storage-buffer descriptors, so the per-stage limit check
in lower::select sees it. The ExecutionStatus fact's mechanism is SyntheticBinding on such a
device, PushConstant elsewhere. Profiles that address buffers produce the same modules as before.

Two needs, two answers past a limit (absent::StatusBinding):
- Required (an absent read, a fence): a stage past its storage-buffer limit with the binding is
  refused as DescriptorCount, naming MaxPerStageDescriptorStorageBuffers.
- CubicMark (only the argument samplers' cubic test): absent::finish gives the binding back and
  the stage states no cubic reach, as a fragment stage does. The mark is a may-need: only a cubic
  sampler a command later lists in the argument buffer needs it, and that sampler then meets the
  planner's typed refusal (SamplerBicubicFilter), so nothing is dropped silently. Refusing the
  stage instead would refuse every stage near its limit that samples through an argument
  buffer, cubic sampler or not, all of which compile today.

FunctionConstantArgument and SeqCstFence are now refused only where the stage lacks its stores
and atomics (a vertex or fragment stage without them), no longer for want of buffer addresses.

Why: on vk12-floor, vk12-bare, lunarg-desktop-baseline-2023, roadmap-2022 and swiftshader every
absent read and seq_cst fence was refused (on vk12-floor's census, 22 FunctionConstantArgument
and 9 SeqCstFence rows), though the device can write a storage buffer.

Tests: the absent-read, threadgroup, function-constant, seq_cst and atomics tests compile on
every profile and assert the status's reach per profile (testing::status_reach_on); a floor
interpreter run of device_fence_store binds the status by slot (word 0 is 42);
an_absent_reads_binding_counts_against_the_storage_buffer_limit (vk12-floor at its count less
one: DescriptorCount on MaxPerStageDescriptorStorageBuffers);
the_cubic_tests_binding_gives_way_to_the_storage_buffer_limit (lunarg, the limit lowered step by
step: the binding given back below the kernel's own count, every compile within the limit and
L3-valid); the kernel tests its argument samplers for a cubic filter on every heap profile.

Verified on msi-laptop (Linux, debug, LLVM 21) on this change with the binder, runtime and
validation commits that follow: clippy --workspace --all-targets --all-features -D warnings clean
by default, under --cfg m2v_cpu_icd and under --cfg m2v_gpu; rustdoc -D warnings clean; the
focused tests (engine_absent*, engine_seq_cst, engine_atomics, engine_dispatch, engine_handles,
engine_binder, engine_function_constant*, mechanism) 122/122; the metal2vulkan, air, runtime and
devtools suites 4592/4598, the 6 reds the table moves below.

Moves (blessed elsewhere, on macOS): public_fixture_expectations_engine.tsv, .ll rows, exactly 50
cells, 10 rows x the 5 profiles above, none on a profile that addresses buffers: 42 from
Unsupported{FunctionConstantArgument|SeqCstFence} to ok, and 8 to
NeedsInput{StorageTextureFormat} (absent_texture_reads_zero, fc_kernel_absent_resources,
fc_kernel_absent_sampler, fc_kernel_sampler_select on roadmap-2022 and vk12-bare: the next gate
there, which the refusal hid). golden_hashes.tsv: 104 cells, those 50 plus 54 hash changes, 18
argument-sampler rows (msf_runtime_samplers, tail_argument_samplers,
tail_argument_cube_gradient, unv_runtime_levels) on lunarg-desktop-baseline-2023, roadmap-2022
and swiftshader, which now test the cubic bit; no cell of a profile that addresses buffers.
Expected, not run here (metal-as needs macOS): the .air.ll rows of function_constant_interface
and rfs_absent_reads.

Plan the execution status's binding as WriteSource::ExecutionStatus:
What: a compute or render plan writes a stage's SyntheticBinding::ExecutionStatus binding as the
new WriteSource::ExecutionStatus: the command buffer's ExecutionStatus buffer, the one every
command of it writes, ExecutionStatus::BYTES bound. The bind module docs say how a command
reaches the status on each kind of device. WriteSource is #[non_exhaustive] and not encoded, so
neither the cache codec nor the api_surface table changes.

Why: the previous part binds the status on devices that address no buffer; the planner
refused such a binding as internal ("a compute binding ExecutionStatus").

Tests: a_seq_cst_fence_reaches_the_status_by_binding_or_address_as_the_device_allows runs
dispatch_builtins' device_fence_store through the binder harness on vk12-floor and
lunarg-desktop-baseline-2023 (one ExecutionStatus write, no status push hole) and moltenvk-m3
(the push hole, no write): each of the 24 threads increments StatusWord::SeqCstFences of the one
status (24), and the store after the fence lands (42).

Verified on msi-laptop (Linux, debug, LLVM 21) with the change's other commits: the test passes
among the 122 focused tests; clippy clean in the three cfgs; rustdoc -D warnings clean.

Bind the command buffer's status words where a plan asks for them:
What: the runtime's descriptor writer binds WriteSource::ExecutionStatus to the command buffer's
status words (command_buffer::State::status_words), the buffer whose address it pushes on a device
that addresses buffers, whole. The command buffer reads and reports it on completion as before.

Why: on a device that addresses no buffer a stage with an absent read, a seq_cst fence or an
argument-sampler cubic test now binds the status (the translator commit before); the runtime has
to bind the same buffer it reads.

Verified on msi-laptop (Linux, lavapipe, --cfg m2v_cpu_icd, debug) with the validation commit
that follows: runtime_lane::absent_reads, 3/3, on the device as it is (the status reached by
address), without shaderInt64 and restricted to vk12-floor by VK_LAYER_KHRONOS_profiles (both by
binding): each of rfs_absent_query, rfs_absent_read and rfs_absent_sampler reads zero at flag 1,
its command buffer completes with no error, and its status report states the absent read.

Bind the execution status in the Vulkan executors and prove the bound form on lavapipe:
What: the candidate executors (compute, its replays, render) hand plan_resources the status
buffer they already keep (Guest::status), and plan_resources binds WriteSource::ExecutionStatus
to it, ExecutionStatus::BYTES; device replay has none. runtime_lane::absent_reads checks, for
each of rfs_absent_query, rfs_absent_read and rfs_absent_sampler, the reach the executed pipeline
took (Ran's Reach: a SyntheticBinding::ExecutionStatus binding in its layout or the status
address in its push fields) at both flags, besides reading zero, the command buffer completing
and the report stating the absent read at flag 1. Three tests: the device as it is (address where
it addresses buffers, binding elsewhere), the device without shaderInt64 (binding), and the
device restricted to vk12-floor by VK_LAYER_KHRONOS_profiles (binding; it prints RESTRICTED and
skips visibly without the layer). device::lane_restriction (tests only) builds that restriction
for a committed profile stem, through the same restricting() runtime_restriction now uses.

Why: the translator now binds the status on devices that address no buffer; the executors must
bind it, and the evidence has to show the binding was the path that ran.

Verified on msi-laptop (Linux, lavapipe llvmpipe LLVM 23.1.1, --cfg m2v_cpu_icd, debug,
LP_NUM_THREADS=1): runtime_lane::absent_reads 3/3 with --no-capture: ABSENT-READ-COMPLETED
"reached Address" for the device as it is, "reached Binding" for the other two, RESTRICTED printed
for vk12-floor; clippy --workspace --all-targets --all-features -D warnings clean by default,
under --cfg m2v_cpu_icd and under --cfg m2v_gpu. The whole validation suites run after the
rebase onto the round.

Document the execution status's binding and regenerate the refusal surface:
What: docs/API.md section 5 says how a stage reaches the command buffer's ExecutionStatus (its
device address where the device addresses buffers, else a set-0 storage buffer of its own,
SyntheticBinding::ExecutionStatus, which counts against the stage's storage-buffer limits), and
what happens past a limit: an absent read or a fence is refused as DescriptorCount, and a stage
that would bind it only for the cubic test binds nothing, so the plan refuses a cubic sampler
listed beside it (SamplerBicubicFilter). Section 6's Status bullet says to bind the same status
buffer where a plan asks for WriteSource::ExecutionStatus. reach.tsv's SeqCstFence line now
reads "a seq_cst fence in a vertex or fragment stage without its stores and atomics".
docs/REFUSALS.md is regenerated at 43578ea93: FunctionConstantArgument and SeqCstFence no longer
list devices without buffer device addresses, and lose the sites that refused them; the rest of
the diff is the line moves since the table's last generation (f28f418da).

Verified on msi-laptop: scripts/refusal-surface/refusal_surface.py regenerates the table, then
--check and --missing-reach pass, at 43578ea93 with these docs.

Versions: SEMANTICS_VERSION 1696 -> 1698 and RUNTIME_VERSION 1203 -> 1204. SEMANTICS_VERSION moves:
absent reads and seq_cst fences compile where they were refused, and argument-sampler stages test
the cubic bit through the status. RUNTIME_VERSION moves: the status's binding is planned and bound.
ARTIFACT_FORMAT_VERSION stays: no encoded type or codec changed (WriteSource is not encoded;
SyntheticBinding::ExecutionStatus and Mechanism::SyntheticBinding already existed).
ENGINE_EXECUTOR_ABI stays: the executors bind WriteSource::ExecutionStatus only where a plan asks
for it, and no plan an earlier row recorded asks for it, so running those rows is unchanged.
crates/metal2vulkan-validation/runtime-sources.sha256 holds
d92b3692f9ec6dd09aa276901b3e5e2ca89520a9fe474835a57c7a22aeb4b85e, the hash of this tree's runtime
inputs (runtime-pin.py, which reproduces build.rs's). Version numbers quoted above are the values
the work's branch built with. Each part's Verified lines name the tree it ran at.
2026-10-14 20:17:39 +03:00

18 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 constexpr samplers 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
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
112featureCentroidVaryingrarecentroid varyings in a multisampled pipeline
113featurePrivateMemoryrarevery large per-thread arrays
114featureSparseTexturesraresparse heaps on a device without sparse images
115featureSparseMappingraresparse mappings off the device's blocks
116featureTimelineSemaphoresnonea device below the runtime's floor
117featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
118featureHeapTextureTilingapptextures in Shared heaps on a device whose optimal images take no host memory
119featureViewportDepthRangerareviewport depth outside [0, 1]
120featureUndeclaredTextureUsageappa shader write to a texture made without ShaderWrite, which plain Metal runs
121featureRenderTargetSizerarea render area past a device's framebuffer limits
122featureIndirectRenderStaterarerender state set by a kernel on an indirect command
123featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
124gapTexturesraretexture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views)
125gapResourceHeaprarethe resource-ID heap's remaining forms
126gapSparseHeapsraresparse heaps
127gapSparseTileMapsraresparse texture emulation's unbuilt pieces
128gapHeapPastMaxBufferSizerarea heap past maxBufferSize
129gapRotatedTexturerarea rotated drawable's views, blits with images over overlapping rows, rows past its buffer
130gapHeapTextureAlignmentrarea heap texture needing more than 256 KiB alignment
131gapHeapTextureMemoryappa heap texture the heap's memory type does not take
132gapFunctionTablePastMaxBufferLengthnonea function table past one buffer
133gapIndirectCommandBufferPastMaxBufferLengthnonean ICB past one buffer
134gapIndirectRenderCommandsrareindirect render commands' remaining pieces
135gapIndirectImageblockSizenonean imageblock side past 65535
136gapCommandReplayrarethe device replay of indirect command buffers
137gapRenderAttachmentsrarerender attachment forms not built
138gapAccelerationStructuresrareray tracing (out of scope by ruling)
139gapFeatureEnablenonedevice creation with a feature the runtime's chain lacks
140gapExtensionEnablenonedevice creation with an extension under an unknown name
141gapRendersystemrender pass, resolve and attachment forms not built (20 sites: see the appendix)
142gapTexelsPastBufferLengthrarea 2D array over a buffer past its length
143gapOverlappingSurfaceRowsrarean IOSurface plane whose rows overlap
144gapSamplePositionsAtBeginrarecustom sample positions Vulkan takes only at begin
145gapSharedEventAcrossDevicesrarea shared event opened on another device
146gapViewportDepthRangerareviewport depth outside [0, 1] without the device features
147gapNonFiniteDepthBiasrareNaN or infinite depth bias
148gapDepthNeverWithoutAttachmentraredepth compare Never with no depth attachment
149gapHiddenDepthStencilappa depth-stencil state using depth or stencil the pass lacks
150gapIndirectDrawArgumentsrareindirect draws whose arguments the CPU must read
151gapDepthStencilResolveraredepth/stencil resolve modes a device lacks
152gapTileAtSampleCountnonetile memory at a sample count Apple's GPUs lack
153gapImageblockMastersrareimageblocks of mixed sizes in one pass
154gapTileAndFragmentImageblocksrareexplicit imageblocks shared by tile and fragment functions
155gapMetal4ApiappMetal 4 (the API is missing: METAL-COVERAGE.md)
156gapCounterSampleBuffersappGPU counters and timestamps by sample buffer (missing API)
157gapResidencySetsappresidency sets (missing API)
158gapTextureAccessCountersraresparse texture access counters
159gapIoCommandQueuesrarefast resource loading (missing API)
160gapTextureViewPoolsraretexture view pools (missing API)
161gapColorAttachmentMappingrarecolor attachment mapping (missing API)
162gapLossyTextureCompressionrarelossy texture compression
163gapShaderValidationrareper-pipeline shader validation
164gapShaderLoggingrareshader os_log
165gapDeviceNotificationsraredevice hotplug notifications (deprecated)
166gapRateMapRegionsraredraws in rate-mapped passes the region path does not draw
167gapLayeredPassrarelayered passes needing a per-layer color resolve
168gapFunctionOptionsrarefunction descriptor options beyond CompileToBinary
169gapOverlappingTextureCopiesrareoverlapping texture copies (Metal races)
170gapRebindTexturesnonea runtime extension's rebind with a live texture
171gapDetachTexturesnonea runtime extension's detach with a texture no stand-in presents exactly
172gapDetachedTexelAccessnoneCPU texel access while a runtime extension detached the bytes
173gapTextureBufferLevelsrarea texture buffer of more than one level (public, unusual)
174gapWriteSwizzlenoneApple-private writeSwizzleEnabled with a swizzle that writes
175gapPvrtcBlockOrderrarePVRTC regions off whole levels
176gapVertexFetchPast4GiBrarevertex fetch past 4 GiB of a bind offset
177gapStageInFetchPast4GiBrarestage-in fetch past 4 GiB of a bind offset
178appleProtectedContentnoneApple-private (no public header)
179appleLineWidthnoneApple-private (no public header)
180appleProvokingVertexModenoneApple-private (no public header)
181appleViewportTransformDisablednoneApple-private (no public header)
182appleVertexAmplificationModenoneApple-private (no public header)
183appleDepthClearednoneApple-private (no public header)
184appleStencilClearednoneApple-private (no public header)
185appleSurfaceClientDirectionnonean IOSurface key in no public header
186appleFillUnmeasuredsystemApple-private texture fills, which macOS system software encodes
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
219featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
220gapSurfaceDepthStencilrarea 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
221featureExtendedRangeBlendsystemthe 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
222featureTileReachappthe tiles a pass's draws reach, binned on a device without shaderInt64
223gapHostHeapUncompressedMultisamplenonea multisample texture Metal keeps uncompressed in a runtime extension's heap over host pages
224featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
225featureProgramScopeBindingappMSL 3.2 program-scope buffer bindings (macOS 15 and later)
226featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
227gapPredicationUnbalancednonean unbalanced Apple-private command-predication record, whose dropped work Metal decides by no rule measured
228gapPredicationOpenAtUnitEndnonean Apple-private predication If left open, live, where its unit ends
229gapPredicationWordPastBuffernonean Apple-private predication condition word past its buffer
230gapPredicatedLoopDepthnonean Apple-private predicated loop four deep
231gapPredicatedLoopAcrossEncodersnonea live Apple-private predicated loop spanning compute encoders
232gapMultisampledBufferCopyrarea 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, a depth or stencil texture they cannot sample or render to, or a 32-bit float depth on a driver whose fragment depth is unmeasured (emulated elsewhere; the consumer's Maps pans and screensaver make the copy)