The planner's ruling. A fragment function that runs its draw's depth test itself at more than one sample, without returning its depth, needs each sample's depth. The two forms that gave it were keyed on measured facts (VkProperty::SampleFragCoordDepth on RADV, CenterFragCoordDepth on MoltenVK) that no query produces, so development already refused it on every device, as Unsupported(FramebufferFetch, NotImplemented) at the depth attachment, which a play cannot count apart from framebuffer fetch's own refusals. It is now its own kind. - error/mod.rs: Feature::MultisampledShaderDepthTest. - lower/fragment/depth_test.rs: depth_test_form refuses with it; the module docs say why. - docs/REFUSALS.md regenerated with its reach row (--check passes); api_signatures.tsv blessed (it also takes the extrapolation commit's removal of DriverWorkaround::PerspectiveReadsExtrapolated). - Tests: engine_fragment's per-sample depth and stencil-before-depth refusals, and engine_fragment_imageblock's multisampled tested write, assert the new kind at the depth attachment. The forms keyed on the two never-produced properties, and the window-depth varying that feeds the computed one, go with the other never-produced vocabulary.
14 KiB
14 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 | SimdgroupMatrix16x16x16 | rare | 16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later) |
| 26 | feature | ArgumentBufferPointers | app | argument buffers holding buffer pointers |
| 27 | feature | ArgumentBufferTextures | app | argument buffers holding textures and samplers (bindless) |
| 28 | feature | ArgumentBufferObjects | rare | pipeline states and ICBs in argument buffers |
| 29 | feature | DereferenceLoadedPointer | app | pointers loaded from argument buffers |
| 30 | feature | PointerToInteger | rare | pointer to integer casts |
| 31 | feature | PointerCompare | rare | comparing pointers of different roots |
| 32 | feature | HandleAsPointer | rare | resource handles used as byte pointers |
| 33 | feature | ConstantGlobalEscaping | rare | a constant global whose address escapes |
| 34 | feature | ThreadgroupMemorySize | rare | threadgroup memory past a smaller device's limit |
| 35 | feature | ZeroedThreadgroupMemory | rare | threadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires |
| 36 | feature | CoherentMemory | rare | coherent(device) accesses |
| 37 | feature | Int64Atomics | rare | 64-bit atomics |
| 38 | feature | ImageAtomics | rare | texture atomics beyond 32-bit integers |
| 39 | feature | DescriptorCount | app | many textures or buffers in one stage on a smaller device |
| 40 | feature | StageSize | rare | a kernel heavier than the heaviest stage measured to compile within host-sized memory, as the device's plan writes it (from_queries), or too large for a driver measured to corrupt one past its bound or to outgrow host memory below it |
| 41 | feature | BufferRange | app | a buffer window past a device's descriptor range |
| 42 | feature | Int64Arithmetic | rare | 64-bit integers on a device without shaderInt64 |
| 43 | feature | Float64Arithmetic | rare | doubles (MSL has none outside Apple's own code) |
| 44 | feature | Format | system | pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
| 45 | feature | DivergentImplicitLod | app | implicit-LOD sampling through a dynamically chosen texture |
| 46 | feature | ImplicitLodOutsideFragment | rare | implicit-LOD sampling outside fragment functions |
| 47 | feature | MinLodClamp | rare | min_lod_clamp on a device without shaderResourceMinLod |
| 48 | feature | TexelOffset | app | texel offsets a device cannot apply |
| 49 | feature | GatherExtended | rare | gathers with dynamic offsets or components |
| 50 | feature | StorageImageMultisample | rare | writable multisampled textures |
| 51 | feature | StorageTextureInVertexStage | rare | writable textures in vertex functions |
| 52 | feature | CubeArray | rare | cube arrays on a device without imageCubeArray |
| 53 | feature | SamplerAnisotropy | app | anisotropic samplers an argument buffer lists, on a device without samplerAnisotropy |
| 54 | feature | SamplerBorderColor | app | border colors a device cannot express |
| 55 | feature | SamplerLodBias | app | constexpr samplers with an LOD bias |
| 56 | feature | SamplerCompare | app | compare samplers a device cannot apply to the image |
| 57 | feature | PixelSamplerCompare | none | Apple's compiler rejects it |
| 58 | feature | TexelBuffer | app | texture buffers past a device's texel-buffer limits |
| 59 | feature | RasterOrderGroups | rare | raster order groups |
| 60 | 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) |
| 61 | feature | PrimitiveId | rare | primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function |
| 62 | 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 |
| 63 | feature | VertexAmplification | rare | vertex amplification |
| 64 | feature | LayeredRendering | rare | layered rendering on a device without its features |
| 65 | feature | ClipDistance | rare | clip distances on a device without them |
| 66 | feature | DualSourceBlending | rare | dual-source blending on a device without it |
| 67 | feature | Barycentrics | rare | barycentric coordinates |
| 68 | feature | StencilExport | rare | stencil from the shader |
| 69 | feature | SampleRateShading | rare | per-sample shading |
| 70 | feature | MultisampledShaderDepthTest | rare | a fragment function whose draw's depth test runs in the shader at more than one sample (tested storage writes, framebuffer fetch beside depth) |
| 71 | feature | PullModelInterpolation | rare | interpolant inputs read at the centroid, a sample or an offset |
| 72 | feature | DivergentInterpolation | rare | an interpolant read at a sample or an offset in a branch, a loop or after a discard |
| 73 | feature | SamplePositions | rare | custom sample positions on a device that takes none at the pass's sample count |
| 74 | feature | PixelCoverageAtSampleRate | rare | coverage read at sample rate |
| 75 | feature | InterfaceComponents | rare | too many varyings or attachments for a device |
| 76 | feature | UnmatchedVarying | none | a Metal link error |
| 77 | feature | KernelStageIn | rare | kernel stage-in combinations Metal leaves unestablished |
| 78 | feature | VertexStepRate | app | instanced vertex layouts stepped at a rate above 1 |
| 79 | feature | VertexInputLayout | rare | vertex offsets or strides off their format's alignment, or past a device's limits |
| 80 | feature | Tessellation | rare | tessellation |
| 81 | feature | MeshShading | rare | mesh pipelines |
| 82 | feature | TileShading | rare | tile shaders (Apple GPU families) |
| 83 | feature | Imageblocks | rare | imageblocks (Apple GPU families) |
| 84 | feature | RayTracing | rare | ray tracing (out of scope by ruling) |
| 85 | feature | Tensors | rare | shader tensors |
| 86 | feature | RasterizationRateMap | rare | rasterization rate maps |
| 87 | feature | GpuEncodedIndirectCommands | rare | indirect command buffers encoded by a kernel |
| 88 | feature | VulkanVersion | none | a device below Vulkan 1.2 |
| 89 | feature | IdentityDomains | none | the identity domains, which the new runtime alone takes and which lower only kernels over buffer slots, textures in slots or argument buffers, and runtime samplers, so far |
| 90 | feature | Constant | none | LLVM constant forms AIR does not emit |
| 91 | feature | Attribute | none | LLVM ABI attributes AIR does not use |
| 92 | feature | BitcodeRecord | none | bitcode records AIR does not emit |
| 93 | feature | SyncScope | none | synchronization scopes AIR does not use |
| 94 | feature | SubgroupOperations | app | simdgroup functions in a stage a device's subgroups do not support |
| 95 | feature | DirectCall | rare | variadic or byval calls the inliner cannot take |
| 96 | feature | WideSwitchLiteral | rare | 64-bit switch literals |
| 97 | feature | Lowering | system | the catch-all of lowering families not landed: any shader can meet one |
| 98 | feature | SamplerAddressMode | app | mirror-clamp-to-edge on a device without it |
| 99 | feature | AlphaToOne | rare | alphaToOneEnabled on a device without alphaToOne |
| 100 | feature | StageStoresAndAtomics | app | stores or atomics in vertex or fragment functions on a device without the feature |
| 101 | feature | FunctionConstantArgument | rare | a function-constant-removed argument read |
| 102 | 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 |
| 103 | feature | GroupCount | rare | more threadgroups than a device dispatches, past the binder's split |
| 104 | feature | IntersectionFunctionTable | rare | ray tracing (out of scope by ruling) |
| 105 | feature | IndependentBlending | rare | per-attachment blending on a device without independentBlend |
| 106 | feature | RasterSampleCount | app | a sample count a device lacks for the attachments |
| 107 | feature | TriangleFillLines | app | wireframe on a device without fillModeNonSolid |
| 108 | feature | TriangleFillPoints | system | Apple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK) |
| 109 | feature | DepthClipClamp | app | depth clamp on a device without depthClamp |
| 110 | feature | DepthBiasClamp | app | depth bias clamp on a device without depthBiasClamp |
| 111 | feature | ConstantAlphaBlendFactor | app | blend-alpha factors on a portability-subset device without them |
| 112 | feature | SparseTexture | rare | sparse residency reads |
| 113 | feature | TextureSize | app | a texture past a device's image limits |
| 114 | feature | TextureSampleCount | app | a sample count a device lacks for the texture |
| 115 | feature | TextureView | app | a texture view Vulkan cannot make exactly |
| 116 | feature | TextureSwizzle | app | texture swizzles whose Metal behaviour is unmeasured |
| 117 | feature | MipmapGeneration | app | generateMipmapsForTexture: of a format or chain neither the device's blits nor the compute filter can run |
| 118 | feature | HostMemory | system | newBufferWithBytesNoCopy: where the device cannot import the memory |
| 119 | feature | GpuTimes | rare | GPU times on a queue without timestamps |
| 120 | feature | CountingVisibility | rare | counting occlusion queries on a device without precise queries |
| 121 | feature | ViewFormatReinterpretation | app | a view of another component layout on a portability subset (MoltenVK) |
| 122 | feature | SeparateMultisampledDepthStencil | rare | separate multisampled depth and stencil textures |
| 123 | feature | PixelCoverage | rare | coverage reads at pixel rate in a multisampled pipeline |
| 124 | feature | PostDepthCoverage | rare | the coverage after early depth and stencil tests on a device without VK_EXT_post_depth_coverage |
| 125 | feature | CentroidVarying | rare | centroid varyings in a multisampled pipeline |
| 126 | feature | PrivateMemory | rare | very large per-thread arrays |
| 127 | feature | SparseTextures | rare | sparse heaps on a device without sparse images |
| 128 | feature | TimelineSemaphores | none | a device below the runtime's floor |
| 129 | feature | Reflection | rare | reflection of argument kinds Metal's answer is unmeasured for |
| 130 | feature | HeapTextureTiling | app | textures in Shared heaps on a device whose optimal images take no host memory |
| 131 | feature | ViewportDepthRange | rare | viewport depth outside [0, 1] |
| 132 | feature | UndeclaredTextureUsage | app | a shader write to a texture made without ShaderWrite, which plain Metal runs |
| 133 | feature | RenderTargetSize | rare | a render area past a device's framebuffer limits |
| 134 | feature | IndirectRenderState | rare | render state set by a kernel on an indirect command |
| 135 | feature | GlobalBuiltinInFragment | rare | Metal 3.1 global built-ins in fragment functions |
| 136 | bind | DescriptorRangeExceeded | app | a buffer window past a device's descriptor range |
| 137 | bind | TexelBufferTooLarge | rare | a texture buffer past maxTexelBufferElements its parts do not bind |
| 138 | bind | HeapTooLarge | rare | more resident textures than the pipeline's heap holds (bindless at scale) |
| 139 | bind | TessellationFactorRange | rare | tessellation factors past one storage descriptor |
| 140 | bind | PatchIndexRange | rare | patch indices past one storage descriptor |
| 141 | bind | ControlPointIndexRange | rare | control-point indices past one storage descriptor |
| 142 | bind | MissingStageInRegion | none | a stage-in region never set, which Metal leaves undefined |
| 143 | bind | UniformViewAliased | rare | Profile F's uniform-view fallback aliased by a write |
| 144 | bind | MissingDeviceAddress | rare | a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
| 145 | limit | InlinedInstructions | rare | very large shaders after inlining |
| 146 | limit | OutputBlocks | rare | very large control flow |
| 147 | limit | IrreducibleDepth | none | deeply nested irreducible loops |
| 148 | limit | SpirvWords | rare | very large output modules |
| 149 | limit | WorkUnits | rare | very large shaders |
| 150 | limit | LedgerBytes | rare | very large shaders |
| 151 | limit | TypeCount | none | a type table past the cap |
| 152 | limit | MetadataNodes | none | metadata past the cap |
| 153 | limit | BitstreamNesting | none | malformed nesting |
| 154 | limit | InstructionCount | rare | very large modules |
| 155 | limit | LayoutNesting | none | argument-buffer layouts nested past the cap |
| 156 | limit | ConstructNesting | none | control flow nested past the cap |
| 157 | limit | PrivateArenaBytes | none | a private arena past 4 GiB |
| 158 | limit | CallStackBytes | rare | deep visible-function call stacks |
| 159 | ratemap | ScreenExtent | rare | a rate map whose screen is past 16384 a side |
| 160 | ratemap | LayerCount | none | a rate map of more than two layers, which Apple's compile crashes on |
| 161 | ratemap | DenseSamples | rare | a rate map axis with more quality samples than screen pixels |
| 162 | ratemap | SampleOutOfRange | rare | a rate map quality sample outside [0, 1] among others |
| 163 | ratemap | SampleCount | rare | a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
| 164 | budget | Time | none | a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
| 165 | feature | PrivateRenderState | none | Apple-private pipeline fields of OpenGL on Metal (no public header) |
| 166 | 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 |
| 167 | feature | CommandPredication | none | Apple-private command predication on a device without buffer device addresses |
| 168 | feature | ProgramScopeBinding | app | MSL 3.2 program-scope buffer bindings (macOS 15 and later) |
| 169 | feature | GenericPointer | system | MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later) |
| 170 | feature | SeqCstFence | rare | a seq_cst fence in a vertex or fragment stage without its stores and atomics |
| 171 | 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) |