0ce2f39b71deleted the resident core: every device compiles the identity domains, which read a texture's presence, out-of-bounds alpha, swizzle, border texels and level count, and a sampler's state, from the resource ID's words. The interface items the resident core stated for them stayed, with nothing left that makes them: - SpecKey's Presence, OutOfBoundsAlpha, TextureSwizzle, OffsetBaseAxes, NearestPixelSampler and BorderTexels: no lowering declares them. - RuntimeFact's ResourcePresence, OutOfBoundsAlpha, StorageTextureLevels, StorageTextureLevelViews, OpenClLineTexture and BorderTexels: no plan states them. - PushField::ControlPointIndexOffset: no plan places it. identity_pushes (lower/select.rs) named it on its false side; that arm goes, and lower/push.rs's shape arm with it. - PrecisionNote::F16IntConvDoubleRounding (metal2vulkan-degrade-f16-int-conv-double-rounding): no lowering records it. Its catalogue entry in docs/API.md goes, with the conformance crate's Degradation and the validation comparison's allowance and reach arms. - Feature's LocalSize, TexelBuffer and GroupCount: no site constructs them (docs/REFUSALS.md listed each with no site). Their reach.tsv rows go. - CombinedSampler's unnormalized field, with_unnormalized, heap_index and from_heap_index: the field was set only from lower::sampler's BindingKey::unnormalized, which no selection sets (none picks PixelPosition::Unnormalized or UnnormalizedTexel) and finish() refuses as an invariant, and the two index methods had no caller. sampler_use() now makes the use from the comparison and the texel class alone. The runtime's DrawInputCause::UnnormalizedSampler and its two checks (a constexpr sampler of a draw or dispatch with the field set) go with it. The device sampler of unnormalized coordinates stays: SamplerUse::unnormalized, vk_sampler's unnormalized form and SamplerDesc::unnormalized are what the runtime's linear pixel samplers' twins are made with. Tests: device/tests/mechanism.rs covers the 56 facts left; the assertions that a plan states none of the deleted facts, and the spec values set for deleted keys, go; engine_spec_bits labels its constant SamplerMinLevel; cache/tests.rs's round trip of OffsetBaseAxes goes; api_tests.rs's SpecializationLayout round trip names SamplerMinLevel. The consumer names none of them: in reims at 7d016acc9c, and at 8f3ca9df99, git grep finds 0 hits each for unnormalized, Unnormalized, heap_index, F16IntConvDoubleRounding, f16-int-conv-double-rounding, LocalSize, GroupCount, SpecKey::, RuntimeFact::, PushField::, ControlPointIndexOffset, NearestPixelSampler, OffsetBaseAxes, ResourcePresence, StorageTextureLevel, OpenClLineTexture, BorderTexels and OutOfBoundsAlpha. TexelBuffer's 2 hits are maxTexelBufferElements and the runtime's TexelBufferTooLarge, DrawInputCause's 1 is DrawInputCause::Slot, Feature::'s 10 are other variants and another crate's Feature, and TextureSwizzle's 66 are Metal's MTLTextureSwizzle. ARTIFACT_FORMAT_VERSION 612 -> 613 (renumbered at landing): the codec's lists are positional, and SpecKey, PushField, RuntimeFact, PrecisionNote and CombinedSampler lose members. SEMANTICS_VERSION stays: nothing that compiles changes. runtime-sources.sha256 moves without a RUNTIME_VERSION bump: device/mechanism.rs loses the arms of the deleted facts, which no run reached. docs/REFUSALS.md and the signature table are regenerated; the metal and conformance coverage docs regenerate unchanged. Verified, on the CPU with no device: - m3-max-86143, at this commit: clippy (plain, all targets and features) passes; the mechanism, spec-bits, round-trip and texture-level tests ran 64 tests, all passed, 2,571 skipped. - m3-max-86179, at the series' tip (the two cleanup commits and the README line): fmt, the refusal surface's, the signatures', both coverage docs' and scripts/api-docs' checks, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd), Rustdoc, private docs (metal2vulkan and metal2vulkan-runtime) and doctests pass. The metal2vulkan suites ran 3,492 tests: 3,491 passed, 24 skipped, and the failure is golden_hashes_match_the_table, which fails at the base too (a bless due at the next pin). Validation ran 1,343 tests, all passed, 2 skipped; conformance ran 1,061, all passed. - m3-max-86194 and m3-max-86213, at the tip and at its basedb7bedc60d: the golden table's changed lines are the same 5,114 at both, line for line, so no cell moves.
11 KiB
11 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 | PartialThreadgroups | app | a dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made |
| 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 | 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 | HandleAsPointer | rare | resource handles used as byte pointers |
| 30 | feature | ConstantGlobalEscaping | rare | a constant global whose address escapes |
| 31 | feature | ThreadgroupMemorySize | rare | threadgroup memory past a smaller device's limit |
| 32 | feature | ZeroedThreadgroupMemory | rare | threadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires |
| 33 | feature | CoherentMemory | rare | coherent(device) accesses |
| 34 | feature | Int64Atomics | rare | 64-bit atomics |
| 35 | feature | ImageAtomics | rare | texture atomics beyond 32-bit integers |
| 36 | feature | DescriptorCount | app | many textures or buffers in one stage on a smaller device |
| 37 | feature | Float64Arithmetic | rare | doubles (MSL has none outside Apple's own code) |
| 38 | feature | Format | system | pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
| 39 | feature | DivergentImplicitLod | app | implicit-LOD sampling through a dynamically chosen texture |
| 40 | feature | ImplicitLodOutsideFragment | rare | implicit-LOD sampling outside fragment functions |
| 41 | feature | MinLodClamp | rare | min_lod_clamp on a device without shaderResourceMinLod |
| 42 | feature | TexelOffset | app | texel offsets a device cannot apply |
| 43 | feature | GatherExtended | rare | gathers with dynamic offsets or components |
| 44 | feature | StorageImageMultisample | rare | writable multisampled textures |
| 45 | feature | StorageTextureInVertexStage | rare | writable textures in vertex functions |
| 46 | feature | CubeArray | rare | cube arrays on a device without imageCubeArray |
| 47 | feature | SamplerAnisotropy | app | anisotropic samplers on a device without samplerAnisotropy |
| 48 | feature | SamplerBorderColor | app | border colors a device cannot express |
| 49 | feature | SamplerLodBias | app | constexpr samplers with an LOD bias |
| 50 | feature | SamplerCompare | app | compare samplers a device cannot apply to the image |
| 51 | feature | PixelSamplerCompare | none | Apple's compiler rejects it |
| 52 | feature | RasterOrderGroups | rare | raster order groups |
| 53 | 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) |
| 54 | feature | PrimitiveId | rare | primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function |
| 55 | 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 |
| 56 | feature | VertexAmplification | rare | vertex amplification |
| 57 | feature | LayeredRendering | rare | layered rendering on a device without its features |
| 58 | feature | ClipDistance | rare | clip distances on a device without them |
| 59 | feature | DualSourceBlending | rare | dual-source blending on a device without it |
| 60 | feature | Barycentrics | rare | barycentric coordinates |
| 61 | feature | StencilExport | rare | stencil from the shader |
| 62 | feature | SampleRateShading | rare | per-sample shading |
| 63 | feature | PullModelInterpolation | rare | interpolant inputs read at the centroid, a sample or an offset |
| 64 | feature | DivergentInterpolation | rare | an interpolant read at a sample or an offset in a branch, a loop or after a discard |
| 65 | feature | PixelCoverageAtSampleRate | rare | coverage read at sample rate |
| 66 | feature | InterfaceComponents | rare | too many varyings or attachments for a device |
| 67 | feature | UnmatchedVarying | none | a Metal link error |
| 68 | feature | VertexStepRate | app | instanced vertex layouts stepped at a rate above 1 |
| 69 | feature | VertexInputLayout | rare | vertex offsets or strides off their format's alignment, or past a device's limits |
| 70 | feature | Tessellation | rare | tessellation |
| 71 | feature | MeshShading | rare | mesh pipelines |
| 72 | feature | TileShading | rare | tile shaders (Apple GPU families) |
| 73 | feature | Imageblocks | rare | imageblocks (Apple GPU families) |
| 74 | feature | RayTracing | rare | ray tracing (out of scope by ruling) |
| 75 | feature | Tensors | rare | shader tensors |
| 76 | feature | RasterizationRateMap | rare | rasterization rate maps |
| 77 | feature | GpuEncodedIndirectCommands | rare | indirect command buffers encoded by a kernel |
| 78 | feature | VulkanVersion | none | a device below Vulkan 1.2 |
| 79 | feature | PushWindow | none | a description whose maxPushConstantsSize is below 128 bytes, less than Vulkan lets a device report |
| 80 | feature | IdentityDomains | none | the identity domains, which the runtime alone takes and which lower only kernels over buffer slots, textures in slots or argument buffers, and runtime samplers, so far |
| 81 | feature | Constant | none | LLVM constant forms AIR does not emit |
| 82 | feature | Attribute | none | LLVM ABI attributes AIR does not use |
| 83 | feature | BitcodeRecord | none | bitcode records AIR does not emit |
| 84 | feature | SyncScope | none | synchronization scopes AIR does not use |
| 85 | feature | SubgroupOperations | app | simdgroup functions in a stage a device's subgroups do not support |
| 86 | feature | DirectCall | rare | variadic or byval calls the inliner cannot take |
| 87 | feature | WideSwitchLiteral | rare | 64-bit switch literals |
| 88 | feature | Lowering | system | the catch-all of lowering families not landed: any shader can meet one |
| 89 | feature | SamplerAddressMode | app | mirror-clamp-to-edge on a device without it |
| 90 | feature | AlphaToOne | rare | alphaToOneEnabled on a device without alphaToOne |
| 91 | feature | StageStoresAndAtomics | app | stores or atomics in vertex or fragment functions on a device without the feature |
| 92 | feature | FunctionConstantArgument | rare | a function-constant-removed argument read |
| 93 | feature | SamplerBicubicFilter | system | bicubic filtering forms Metal does not establish, through a constexpr sampler of filter::bicubic (a runtime sampler of MTLSamplerMinMagFilterCubic filters as nearest) |
| 94 | feature | IntersectionFunctionTable | rare | ray tracing (out of scope by ruling) |
| 95 | feature | IndependentBlending | rare | per-attachment blending on a device without independentBlend |
| 96 | feature | RasterSampleCount | app | a sample count a device lacks for the attachments |
| 97 | feature | TriangleFillLines | app | wireframe on a device without fillModeNonSolid |
| 98 | feature | TriangleFillPoints | system | Apple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK) |
| 99 | feature | DepthClipClamp | app | depth clamp on a device without depthClamp |
| 100 | feature | DepthBiasClamp | app | depth bias clamp on a device without depthBiasClamp |
| 101 | feature | ConstantAlphaBlendFactor | app | blend-alpha factors on a portability-subset device without them |
| 102 | feature | SparseTexture | rare | sparse residency reads |
| 103 | feature | TextureSwizzle | app | texture swizzles whose Metal behaviour is unmeasured |
| 104 | feature | PostDepthCoverage | rare | the coverage after early depth and stencil tests, on every device |
| 105 | feature | PrivateMemory | rare | very large per-thread arrays |
| 106 | feature | Reflection | rare | reflection of argument kinds Metal's answer is unmeasured for |
| 107 | feature | ViewportDepthRange | rare | viewport depth outside [0, 1] |
| 108 | feature | IndirectRenderState | rare | render state set by a kernel on an indirect command |
| 109 | feature | GlobalBuiltinInFragment | rare | Metal 3.1 global built-ins in fragment functions |
| 110 | limit | InlinedInstructions | rare | very large shaders after inlining |
| 111 | limit | OutputBlocks | rare | very large control flow |
| 112 | limit | IrreducibleDepth | none | deeply nested irreducible loops |
| 113 | limit | SpirvWords | rare | very large output modules |
| 114 | limit | WorkUnits | rare | very large shaders |
| 115 | limit | LedgerBytes | rare | very large shaders |
| 116 | limit | TypeCount | none | a type table past the cap |
| 117 | limit | MetadataNodes | none | metadata past the cap |
| 118 | limit | BitstreamNesting | none | malformed nesting |
| 119 | limit | InstructionCount | rare | very large modules |
| 120 | limit | LayoutNesting | none | argument-buffer layouts nested past the cap |
| 121 | limit | ConstructNesting | none | control flow nested past the cap |
| 122 | limit | PrivateArenaBytes | none | a private arena past 4 GiB |
| 123 | limit | CallStackBytes | rare | deep visible-function call stacks |
| 124 | ratemap | ScreenExtent | rare | a rate map whose screen is past 16384 a side |
| 125 | ratemap | LayerCount | none | a rate map of more than two layers, which Apple's compile crashes on |
| 126 | ratemap | DenseSamples | rare | a rate map axis with more quality samples than screen pixels |
| 127 | ratemap | SampleOutOfRange | rare | a rate map quality sample outside [0, 1] among others |
| 128 | ratemap | SampleCount | rare | a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
| 129 | budget | Time | none | a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
| 130 | feature | PrivateRenderState | none | Apple-private pipeline fields of OpenGL on Metal (no public header) |
| 131 | feature | CommandPredication | none | Apple-private command predication on a device without buffer device addresses |
| 132 | feature | ProgramScopeResource | app | MSL 3.2 textures, samplers and threadgroup memory bound at program scope (macOS 15 and later) |
| 133 | feature | ProgramScopeSharedSlot | rare | MSL 3.2 program-scope buffers aliasing another argument of another type at one index |
| 134 | feature | ProgramScopeLinked | rare | MSL 3.2 program-scope bindings in a linked visible function or a dynamic library |
| 135 | feature | ProgramScopeRead | none | a read of a program-scope buffer's global that Apple's compiler is not seen to write |
| 136 | feature | GenericPointer | system | MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later) |
| 137 | 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) |