Metal's MTLDevice survives a GPU recovery; the runtime's device refused every call with DeviceLost from the first loss on, and the consumer ends its VM at the first refusal. Now a device the runtime made is a line of generations (device/line.rs), each a DeviceShared over its own VkDevice, and the first call that needs the device after a loss makes a new VkDevice of the same physical device, options, queue families and extensions. - Two kinds of handle. The program's device (and its clones) is a root handle: it holds the line, pins no generation, and every public Device call goes to the generation that serves (each public method forwards to its *_now body). Objects hold generation handles, so their Vulkan calls, drops included, reach their own VkDevice alone. A generation handle's check is one relaxed load of the line's generation (Device::generation_serves). - A draw pays nothing for it. A command buffer takes its generation once, as it is made (CommandBuffer::generation); its encoders' per-draw reaches (work counts, fresh-unwritten and alias records, sampler-slot changes, attachment read notices) read it there, not through a device handle's kind. A bind's device check is one compare of the cells the two handles hold, inlined, its refusal (Device::foreign) out of line. - The state machine (Live, Lost, Failed): the claiming call recovers, every other call waits (a notice past 10 s, waiting on); threads command buffers' completion depends on never wait. Recovery: the lost generation's command buffers in flight fail through its completion path, its queues drain under their locks, create_on makes the next VkDevice, the queues are retired. - Command-buffer answers, as a real loss is one more hang: the oldest incomplete batch's command buffer fails GpuHang (exact on one VkQueue; on two or more the queue whose oldest incomplete batch was submitted first, said so in the notice), counted against its queue so the second revokes it (AccessRevoked); the others GpuRecoveryVictim; one committed on the hang's queue before the recovery runs nothing and completes with no error; one made before and committed after fails GpuRecoveryVictim. One loss names one hang: a batch that went to the driver just before the loss and reached the lost device's completion after the loss took the pending batches fails with it, as a victim (its own wait need not fail: the test hook's VkDevice runs it), and no later failure of the lost device names a second hang. - Command queues survive: a queue is a root handle and a cell of its place on one generation (VkQueue, slots, pools, hangs), which a recovery retires and the next command buffer re-makes; label and GPU-error count go on. - Objects made before a recovery are refused where they meet the new VkDevice or need their lost one: RuntimeGap::MadeBeforeRecovery, at the 38 lost-device checks (Device::lost_refusal) and at every foreign-object check of one line (Device::foreign). DeviceLost stays for a device the consumer made. - Carried across generations: the address space, resource IDs and the passing holds a making waits out before it takes one, unique identifiers, counters and the announced notice kinds. - A device handle is an enum of the two kinds (24 bytes, was 16): the shadow merge's copy-back dispatch, which holds handles, is boxed (clippy's large_enum_variant). - Device::recover_for_test (public, documented) runs the whole path with no GPU fault; RuntimeGap::AdoptedDeviceRecovery on an adopted device. - Degradation::DeviceRecovered (device-recovered), announced at each recovery with the culprit and its time. WorkCounts::vk_devices_live, vk_devices_made, device_recoveries: two VkDevices while objects of the lost one live, one after. Docs: docs/API.md catalogue entry, the runtime README's device-loss section, FAST-PATHS known gap (a make whose own submission first meets the loss is refused DeviceLost), docs/REFUSALS.md regenerated (refusal_surface.py names a forwarded body's sites by its public method), api_signatures blessed. Tests: runtime_lane::device_recovery (hang and victims, command buffers on their way to the driver at a recovery, MadeBeforeRecovery and the VkDevice bound, revocation at the second hang, a command buffer made before fails as victim, all under the validation layer; a recovery that finds nothing of the queue scheduled names no hang, its command buffers victims), tests::device_recovery (the hold of the hang's queue between a loss and the recovery), detach_lost and the MoltenVK lost-device lanes updated to the recovery's answers. Verified: - lavapipe: runtime suite and touched validation tests 1850/1850, surface 19/19 (m3-max-5695, gem10, before the rebase onto7e039f062a); on7e039f062a, before the one-hang fix, 1853/1853, surface 19/19, clippy clean (m3-max-6150, ms01). This tree: clippy clean (m3-max-6278, msi). - RADV RX 7900 XTX: 81/81 touched device tests (m3-max-5709). Iris Xe (ANV): 80/81 (m3-max-5766), the 81st kept_images, which fails so at development too and the last of these three commits fixes; the recovery tests alone 3 rounds of 3 (m3-max-5852). RTX 5080 Laptop GPU: 80/81 (b5080 entry devloss-devloss-tip1-nine-163410), the 81st the test's own 20 s bound on the recovery, which took 39.5 s beside another entry; the test now prints the recovery beside the device's first making and bounds neither. - MoltenVK on the M3 Max: the device_recovery tests 8 rounds of 8 (m3-max-6135); with the one-hang fix 12 of 12 (m3-max-6242), where without it 3 rounds of about 20 failed with a command buffer Completed after the hang (m3-max-6219, m3-max-6233). The RTX 5080 failed the second-hang test so in 2 runs of 3 (devloss-devloss-rec-alone-170457). - Recovery time, alone, under the validation layer: llvmpipe 29.9 ms, RX 7900 XTX 20.4 ms, Iris Xe 15 to 21 ms (its first making 30 to 41 ms), M3 Max (MoltenVK) 35 to 40 ms (42 to 50 ms), RTX 5080 530 to 559 ms (602 to 635 ms). VK_EXT_device_fault listed: llvmpipe 0, XTX 1, Iris 0, 5080 1. - Per draw (draw_costs, release, --heap, M3 Max, base7e039f062aand the tip alternating, 4 rounds, m3-max-6121): instructions a draw ws +0.03%, many -0.05%, 10k -0.31%; draw_primitives +10, +8 and -26 of 17,172, 11,245 and 7,736 a call; each set_* call +3 to +4 (of 425 to 860); a command buffer's creation +170 to +370, an encoder's end +120 to +390. (cherry picked from commit 3d7758c074fc9895d5d6c9766604c6c4eae9166d)
21 KiB
21 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). | |||
| 5 | feature | LibraryKind | none | a metallib file type Apple's toolchain is not seen to write |
| 6 | feature | Stage | none | a stage outside AIR's public stages |
| 7 | feature | AddressSpace | none | Apple's AGX library address spaces |
| 8 | feature | ModuleRecord | none | LLVM constructs AIR does not emit |
| 9 | feature | Instruction | none | LLVM instructions AIR does not emit |
| 10 | feature | Type | none | LLVM types AIR does not emit |
| 11 | feature | CallingConvention | none | LLVM calling conventions AIR does not use |
| 12 | feature | UnknownIntrinsic | rare | AIR from a newer compiler (macOS 27 AIR 2.9) |
| 13 | feature | AgxUnmodeled | rare | Apple's own libraries' AGX intrinsics |
| 14 | feature | StaticInitializer | none | LLVM initializers AIR does not emit |
| 15 | feature | Recursion | rare | recursion through visible functions |
| 16 | feature | DynamicCall | rare | function pointers and function tables |
| 17 | feature | Linking | rare | dynamic libraries and linked functions |
| 18 | feature | SimdWidth | app | simdgroup functions on a device whose subgroups cannot run 32 wide for the use |
| 19 | feature | LocalSize | app | a threadgroup size past a smaller device's limit |
| 20 | feature | IrreducibleConvergent | rare | irreducible loops around barriers or simd operations |
| 21 | feature | ComputeDerivativesWithSimd | rare | derivatives in a kernel |
| 22 | feature | ComputeDerivatives | rare | derivatives in a kernel |
| 23 | feature | QuadOperations | app | quad shuffles in kernels on devices without quad operations there |
| 24 | feature | SimdgroupMatrix | rare | simdgroup matrix kernels |
| 25 | feature | ArgumentBufferPointers | app | argument buffers holding buffer pointers |
| 26 | feature | ArgumentBufferTextures | app | argument buffers holding textures and samplers (bindless) |
| 27 | feature | ArgumentBufferObjects | rare | pipeline states and ICBs in argument buffers |
| 28 | feature | DereferenceLoadedPointer | app | pointers loaded from argument buffers |
| 29 | feature | PointerToInteger | rare | pointer to integer casts |
| 30 | feature | PointerCompare | rare | comparing pointers of different roots |
| 31 | feature | HandleAsPointer | rare | resource handles used as byte pointers |
| 32 | feature | ConstantGlobalEscaping | rare | a constant global whose address escapes |
| 33 | feature | ThreadgroupMemorySize | rare | threadgroup memory past a smaller device's limit |
| 34 | feature | CoherentMemory | rare | coherent(device) accesses |
| 35 | feature | Int64Atomics | rare | 64-bit atomics |
| 36 | feature | ImageAtomics | rare | texture atomics beyond 32-bit integers |
| 37 | feature | DescriptorCount | app | many textures or buffers in one stage on a smaller device |
| 38 | feature | BufferRange | app | a buffer window past a device's descriptor range |
| 39 | feature | Int64Arithmetic | rare | 64-bit integers on a device without shaderInt64 |
| 40 | feature | Float64Arithmetic | rare | doubles (MSL has none outside Apple's own code) |
| 41 | feature | Format | system | pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
| 42 | feature | DivergentImplicitLod | app | implicit-LOD sampling through a dynamically chosen texture |
| 43 | feature | ImplicitLodOutsideFragment | rare | implicit-LOD sampling outside fragment functions |
| 44 | feature | MinLodClamp | rare | min_lod_clamp on a device without shaderResourceMinLod |
| 45 | feature | TexelOffset | app | texel offsets a device cannot apply |
| 46 | feature | GatherExtended | rare | gathers with dynamic offsets or components |
| 47 | feature | StorageImageMultisample | rare | writable multisampled textures |
| 48 | feature | StorageTextureInVertexStage | rare | writable textures in vertex functions |
| 49 | feature | CubeArray | rare | cube arrays on a device without imageCubeArray |
| 50 | feature | SamplerAnisotropy | app | anisotropic samplers an argument buffer lists, on a device without samplerAnisotropy |
| 51 | feature | SamplerBorderColor | app | border colors a device cannot express |
| 52 | feature | SamplerLodBias | app | constexpr samplers with an LOD bias |
| 53 | feature | SamplerCompare | app | compare samplers a device cannot apply to the image |
| 54 | feature | PixelSamplerCompare | none | Apple's compiler rejects it |
| 55 | feature | TexelBuffer | app | texture buffers past a device's texel-buffer limits |
| 56 | feature | RasterOrderGroups | rare | raster order groups |
| 57 | feature | FramebufferFetch | system | programmable 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) |
| 58 | feature | PrimitiveId | rare | primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function |
| 59 | feature | PrivatePrimitives | rare | a 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 |
| 60 | feature | VertexAmplification | rare | vertex amplification |
| 61 | feature | LayeredRendering | rare | layered rendering on a device without its features |
| 62 | feature | ClipDistance | rare | clip distances on a device without them |
| 63 | feature | DualSourceBlending | rare | dual-source blending on a device without it |
| 64 | feature | Barycentrics | rare | barycentric coordinates |
| 65 | feature | StencilExport | rare | stencil from the shader |
| 66 | feature | SampleRateShading | rare | per-sample shading |
| 67 | feature | PullModelInterpolation | rare | interpolant inputs read at the centroid, a sample or an offset |
| 68 | feature | SamplePositions | rare | custom sample positions on a device that takes none at the pass's sample count |
| 69 | feature | PixelCoverageAtSampleRate | rare | coverage read at sample rate |
| 70 | feature | InterfaceComponents | rare | too many varyings or attachments for a device |
| 71 | feature | UnmatchedVarying | none | a Metal link error |
| 72 | feature | KernelStageIn | rare | kernel stage-in combinations Metal leaves unestablished |
| 73 | feature | Tessellation | rare | tessellation |
| 74 | feature | MeshShading | rare | mesh pipelines |
| 75 | feature | TileShading | rare | tile shaders (Apple GPU families) |
| 76 | feature | Imageblocks | rare | imageblocks (Apple GPU families) |
| 77 | feature | RayTracing | rare | ray tracing (out of scope by ruling) |
| 78 | feature | Tensors | rare | shader tensors |
| 79 | feature | RasterizationRateMap | rare | rasterization rate maps |
| 80 | feature | GpuEncodedIndirectCommands | rare | indirect command buffers encoded by a kernel |
| 81 | feature | VulkanVersion | none | a device below Vulkan 1.2 |
| 82 | feature | Constant | none | LLVM constant forms AIR does not emit |
| 83 | feature | Attribute | none | LLVM ABI attributes AIR does not use |
| 84 | feature | BitcodeRecord | none | bitcode records AIR does not emit |
| 85 | feature | SyncScope | none | synchronization scopes AIR does not use |
| 86 | feature | SubgroupOperations | app | simdgroup functions in a stage a device's subgroups do not support |
| 87 | feature | DirectCall | rare | variadic or byval calls the inliner cannot take |
| 88 | feature | WideSwitchLiteral | rare | 64-bit switch literals |
| 89 | feature | Lowering | system | the catch-all of lowering families not landed: any shader can meet one |
| 90 | feature | SamplerAddressMode | app | mirror-clamp-to-edge on a device without it |
| 91 | feature | AlphaToOne | rare | alphaToOneEnabled on a device without alphaToOne |
| 92 | feature | StageStoresAndAtomics | app | stores or atomics in vertex or fragment functions on a device without the feature |
| 93 | feature | FunctionConstantArgument | rare | a function-constant-removed argument read |
| 94 | feature | SamplerBicubicFilter | system | bicubic 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 |
| 95 | feature | GroupCount | rare | more threadgroups than a device dispatches, past the binder's split |
| 96 | feature | IntersectionFunctionTable | rare | ray tracing (out of scope by ruling) |
| 97 | feature | IndependentBlending | rare | per-attachment blending on a device without independentBlend |
| 98 | feature | RasterSampleCount | app | a sample count a device lacks for the attachments |
| 99 | feature | TriangleFillLines | app | wireframe on a device without fillModeNonSolid |
| 100 | feature | DepthClipClamp | app | depth clamp on a device without depthClamp |
| 101 | feature | DepthBiasClamp | app | depth bias clamp on a device without depthBiasClamp |
| 102 | feature | ConstantAlphaBlendFactor | app | blend-alpha factors on a portability-subset device without them |
| 103 | feature | SparseTexture | rare | sparse residency reads |
| 104 | feature | TextureSize | app | a texture past a device's image limits |
| 105 | feature | TextureSampleCount | app | a sample count a device lacks for the texture |
| 106 | feature | TextureView | app | a texture view Vulkan cannot make exactly |
| 107 | feature | TextureSwizzle | app | texture swizzles whose Metal behaviour is unmeasured |
| 108 | feature | MipmapGeneration | app | generateMipmapsForTexture: of a format or chain neither the device's blits nor the compute filter can run |
| 109 | feature | HostMemory | system | newBufferWithBytesNoCopy: where the device cannot import the memory |
| 110 | feature | GpuTimes | rare | GPU times on a queue without timestamps |
| 111 | feature | CountingVisibility | rare | counting occlusion queries on a device without precise queries |
| 112 | feature | ViewFormatReinterpretation | app | a view of another component layout on a portability subset (MoltenVK) |
| 113 | feature | SeparateMultisampledDepthStencil | rare | separate multisampled depth and stencil textures |
| 114 | feature | PixelCoverage | rare | coverage reads at pixel rate in a multisampled pipeline |
| 115 | feature | PostDepthCoverage | rare | the coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage |
| 116 | feature | CentroidVarying | rare | centroid varyings in a multisampled pipeline |
| 117 | feature | PrivateMemory | rare | very large per-thread arrays |
| 118 | feature | SparseTextures | rare | sparse heaps on a device without sparse images |
| 119 | feature | TimelineSemaphores | none | a device below the runtime's floor |
| 120 | feature | Reflection | rare | reflection of argument kinds Metal's answer is unmeasured for |
| 121 | feature | HeapTextureTiling | app | textures in Shared heaps on a device whose optimal images take no host memory |
| 122 | feature | ViewportDepthRange | rare | viewport depth outside [0, 1] |
| 123 | feature | UndeclaredTextureUsage | app | a shader write to a texture made without ShaderWrite, which plain Metal runs |
| 124 | feature | RenderTargetSize | rare | a render area past a device's framebuffer limits |
| 125 | feature | IndirectRenderState | rare | render state set by a kernel on an indirect command |
| 126 | feature | GlobalBuiltinInFragment | rare | Metal 3.1 global built-ins in fragment functions |
| 127 | gap | Textures | rare | texture forms the runtime has not built (texture buffers of some forms, X24Stencil8 views) |
| 128 | gap | ResourceHeap | rare | the resource-ID heap's remaining forms |
| 129 | gap | SparseHeaps | rare | sparse heaps |
| 130 | gap | SparseTileMaps | rare | sparse texture emulation's unbuilt pieces |
| 131 | gap | HeapPastMaxBufferSize | rare | a heap past maxBufferSize |
| 132 | gap | RotatedTexture | rare | a rotated drawable's views, rows past its buffer |
| 133 | gap | HeapTextureAlignment | rare | a heap texture needing more than 256 KiB alignment |
| 134 | gap | HeapTextureMemory | app | a heap texture the heap's memory type does not take |
| 135 | gap | FunctionTablePastMaxBufferLength | none | a function table past one buffer |
| 136 | gap | IndirectCommandBufferPastMaxBufferLength | none | an ICB past one buffer |
| 137 | gap | IndirectRenderCommands | rare | indirect render commands' remaining pieces |
| 138 | gap | IndirectImageblockSize | none | an imageblock side past 65535 |
| 139 | gap | CommandReplay | rare | the device replay of indirect command buffers |
| 140 | gap | RenderAttachments | rare | render attachment forms not built |
| 141 | gap | AccelerationStructures | rare | ray tracing (out of scope by ruling) |
| 142 | gap | FeatureEnable | none | device creation with a feature the runtime's chain lacks |
| 143 | gap | ExtensionEnable | none | device creation with an extension under an unknown name |
| 144 | gap | Render | system | render pass, resolve and attachment forms not built (20 sites: see the appendix) |
| 145 | gap | TexelsPastBufferLength | rare | a YCbCr, two-plane, 4:2:2, depth, BC or rotated texture over an IOSurface plane past its surface |
| 146 | gap | OverlappingSurfaceRows | rare | an IOSurface plane whose rows overlap |
| 147 | gap | MemorylessSurfacePlane | rare | a memoryless texture over an IOSurface plane |
| 148 | gap | SurfacePlaneShape | rare | a texture over an IOSurface plane past one 2D image of its rows, or a BC one of 16-byte blocks off 16 |
| 149 | gap | IndirectCommandPastSize | none | an indirect command at or past the buffer's size |
| 150 | gap | ExecutionRangePastBuffer | rare | an execution range whose 8 bytes run past its buffer |
| 151 | gap | ExecutionRangeOffFour | rare | an execution range at an offset off 4 bytes |
| 152 | gap | IndirectCommandUnstridedBuffer | rare | an 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) |
| 153 | gap | SamplePositionsAtBegin | rare | custom sample positions Vulkan takes only at begin |
| 154 | gap | InterpolateAtSampleWithPositions | rare | interpolate_at_sample in a pass at custom sample positions |
| 155 | gap | ExportableMemory | none | a runtime extension's exportable buffer on a device without the opaque-fd export |
| 156 | gap | ExportableSemaphore | none | a runtime extension's exportable shared event on a device without the opaque-fd export |
| 157 | gap | SharedEventAcrossDevices | rare | a shared event opened on another device |
| 158 | gap | VkImagePlaneCopy | none | a runtime extension's texture over a plane of the caller's VkImage copied, filled, mipmapped or rendered to |
| 159 | gap | ViewportDepthRange | rare | viewport depth outside [0, 1] without the device features |
| 160 | gap | NonFiniteDepthBias | rare | NaN or infinite depth bias |
| 161 | gap | DepthNeverWithoutAttachment | rare | depth compare Never with no depth attachment |
| 162 | gap | HiddenDepthStencil | app | a depth-stencil state using depth or stencil the pass lacks |
| 163 | gap | IndirectDrawArguments | rare | indirect draws whose arguments the CPU must read |
| 164 | gap | DepthStencilResolve | rare | depth/stencil resolve modes a device lacks |
| 165 | gap | TileAtSampleCount | none | tile memory at a sample count Apple's GPUs lack |
| 166 | gap | ImageblockMasters | rare | imageblocks of mixed sizes in one pass |
| 167 | gap | TileAndFragmentImageblocks | rare | explicit imageblocks shared by tile and fragment functions |
| 168 | gap | Metal4Api | app | Metal 4 (the API is missing: METAL-COVERAGE.md) |
| 169 | gap | CounterSampleBuffers | app | GPU counters and timestamps by sample buffer (missing API) |
| 170 | gap | ResidencySets | app | residency sets (missing API) |
| 171 | gap | TextureAccessCounters | rare | sparse texture access counters |
| 172 | gap | IoCommandQueues | rare | fast resource loading (missing API) |
| 173 | gap | TextureViewPools | rare | texture view pools (missing API) |
| 174 | gap | ColorAttachmentMapping | rare | color attachment mapping (missing API) |
| 175 | gap | LossyTextureCompression | rare | lossy texture compression |
| 176 | gap | ShaderValidation | rare | per-pipeline shader validation |
| 177 | gap | ShaderLogging | rare | shader os_log |
| 178 | gap | DeviceNotifications | rare | device hotplug notifications (deprecated) |
| 179 | gap | RateMapRegions | rare | draws in rate-mapped passes the region path does not draw |
| 180 | gap | LayeredPass | rare | layered passes needing a per-layer color resolve |
| 181 | gap | OverlappingTextureCopies | rare | overlapping texture copies (Metal races) |
| 182 | gap | EmptyFillPattern | none | a fill of no pattern bytes through the Apple-private fillTexture:...:bytes:length: |
| 183 | gap | RebindTextures | none | a runtime extension's rebind with a live texture |
| 184 | gap | DetachTextures | none | a runtime extension's detach with a texture no stand-in presents exactly |
| 185 | gap | DetachedTexelAccess | none | CPU texel access while a runtime extension detached the bytes |
| 186 | gap | TextureBufferLevels | rare | a texture buffer of more than one level (public, unusual) |
| 187 | gap | WriteSwizzle | none | Apple-private writeSwizzleEnabled with a swizzle that writes |
| 188 | gap | PvrtcBlockOrder | rare | PVRTC regions off whole levels |
| 189 | gap | DecodedHeapTexture | app | an ASTC texture in a heap on a device without ASTC |
| 190 | gap | VertexFetchPast4GiB | rare | vertex fetch past 4 GiB of a bind offset |
| 191 | gap | StageInFetchPast4GiB | rare | stage-in fetch past 4 GiB of a bind offset |
| 192 | apple | ProtectedContent | none | Apple-private (no public header) |
| 193 | apple | ViewportTransformDisabled | none | Apple-private (no public header) |
| 194 | apple | VertexAmplificationMode | none | Apple-private (no public header) |
| 195 | apple | DepthCleared | none | Apple-private (no public header) |
| 196 | apple | StencilCleared | none | Apple-private (no public header) |
| 197 | apple | SurfaceClientDirection | none | an IOSurface key in no public header |
| 198 | bind | DescriptorRangeExceeded | app | a buffer window past a device's descriptor range |
| 199 | bind | TexelBufferTooLarge | rare | a texture buffer past maxTexelBufferElements |
| 200 | bind | HeapTooLarge | rare | more resident textures than the pipeline's heap holds (bindless at scale) |
| 201 | bind | TessellationFactorRange | rare | tessellation factors past one storage descriptor |
| 202 | bind | PatchIndexRange | rare | patch indices past one storage descriptor |
| 203 | bind | ControlPointIndexRange | rare | control-point indices past one storage descriptor |
| 204 | bind | MissingStageInRegion | none | a stage-in region never set, which Metal leaves undefined |
| 205 | bind | UniformViewAliased | rare | Profile F's uniform-view fallback aliased by a write |
| 206 | bind | MissingDeviceAddress | rare | a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
| 207 | limit | InlinedInstructions | rare | very large shaders after inlining |
| 208 | limit | OutputBlocks | rare | very large control flow |
| 209 | limit | IrreducibleDepth | none | deeply nested irreducible loops |
| 210 | limit | SpirvWords | rare | very large output modules |
| 211 | limit | WorkUnits | rare | very large shaders |
| 212 | limit | LedgerBytes | rare | very large shaders |
| 213 | limit | TypeCount | none | a type table past the cap |
| 214 | limit | MetadataNodes | none | metadata past the cap |
| 215 | limit | BitstreamNesting | none | malformed nesting |
| 216 | limit | InstructionCount | rare | very large modules |
| 217 | limit | LayoutNesting | none | argument-buffer layouts nested past the cap |
| 218 | limit | ConstructNesting | none | control flow nested past the cap |
| 219 | limit | PrivateArenaBytes | none | a private arena past 4 GiB |
| 220 | limit | CallStackBytes | rare | deep visible-function call stacks |
| 221 | gap | MappedTextureSampling | none | a runtime extension's texture (address_mode_map) sampled where the runtime cannot map it; no Metal API path |
| 222 | ratemap | ScreenExtent | rare | a rate map whose screen is past 16384 a side |
| 223 | ratemap | LayerCount | none | a rate map of more than two layers, which Apple's compile crashes on |
| 224 | ratemap | DenseSamples | rare | a rate map axis with more quality samples than screen pixels |
| 225 | ratemap | SampleOutOfRange | rare | a rate map quality sample outside [0, 1] among others |
| 226 | ratemap | SampleCount | rare | a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
| 227 | budget | Time | none | a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
| 228 | gap | LibrarySource | app | a library compiled from Metal source (newLibraryWithSource:); the runtime takes metallibs and AIR |
| 229 | gap | RestartedStrip | none | a strip after the Apple-private setPrimitiveRestartEnabled:index: whose rewrite pass cannot run as Metal draws |
| 230 | gap | ProvokingVertex | none | a draw after the Apple-private setProvokingVertexMode: 1, on a device without the last provoking vertex, whose rotated list cannot draw as Metal draws |
| 231 | gap | PrivatePrimitives | none | a 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 |
| 232 | gap | PrimitiveIdIndices | rare | an indexed draw of a primitive_id pipeline, on a device without geometry or tessellation shaders, whose indices the encoder wrote since its last barrier |
| 233 | feature | PrivateRenderState | none | Apple-private pipeline fields of OpenGL on Metal (no public header) |
| 234 | gap | SurfaceDepthStencil | rare | a 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 |
| 235 | feature | ExtendedRangeBlend | system | an 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 |
| 236 | feature | CommandPredication | none | Apple-private command predication on a device without buffer device addresses |
| 237 | feature | ProgramScopeBinding | app | MSL 3.2 program-scope buffer bindings (macOS 15 and later) |
| 238 | feature | SeqCstFence | rare | a seq_cst fence in a vertex or fragment stage without its stores and atomics |
| 239 | gap | MultisampledBufferCopy | rare | a 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) |
| 240 | gap | MultisampledBufferLayout | rare | a 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 |
| 241 | gap | ColorAttachmentGroups | app | in 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 |
| 242 | gap | MadeBeforeRecovery | app | any object a program made before its device recovered from a lost VkDevice, used after the recovery |
| 243 | gap | AdoptedDeviceRecovery | none | the recovery test hook on a device the consumer made itself |
| 244 | feature | WideLines | none | a 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) |
| 245 | gap | WideLines | none | under 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) |