A buffer slot took a uniform view only where containment was the device's (contain::encoding gave Check::None, under robustBufferAccess or robustBufferAccess2): the uniform arm of the slot's view choice and Profile F's per-stage storage-buffer fallback. The runtime enables neither feature, so no runtime module took one. The next commit deletes the robustness choice; memory, lower and spirv are crate-private, so its dead_code would fail that commit on its own. The uniform view goes first, with everything that only it reached: - the uniform forms of a view (UniformWords and UniformVec4) and their reads, and Profile F's fallback (fallback_view, fallback_rank). Profile F (runtime-floor without device addresses, below the runtime's floor) now refuses a stage past maxPerStageDescriptorStorageBuffers as DescriptorCount, where before it read its read-only slots through uniform views, under robust descriptors only; - SlotPlan::lane_read and its planner pass, and Uniformity::among_active_lanes, which only that pass ran; - the storage-view variant: LoweringInputs and VariantKey storage_view_slots, the binder's storage_view_variant and large_view_candidates; - RuntimeFact::UniformViewAliasing and UniformViewRange with UniformViewChoice, and the binder's aliasing check with its refusal BindError::UniformViewAliased (docs/REFUSALS.md regenerated: binder refusals 9 to 8); - SpecKey::RangeAtBindOffset (only uniform views declared it), BindState::view_base_alignment and uniform_views_at_residual, StageTable.at_bind_views and StageTable::class_alignment; BoundBuffer::shape, BoundBuffer::same_shape and StageTable::shape lose their view_base_alignment parameter; - BufferRanges.uniform: BufferRanges::length_class and the binder's offset alignment now read maxStorageBufferRange and minStorageBufferOffsetAlignment alone. Nothing in the runtime crate reads BufferRanges, BindState, BoundBuffer, StageTable or BindShape (git grep: 0 hits); it reaches validation's candidate engine only; - AccessClass::Uniform, DescriptorView (Storage, UniformWords, UniformVec4) and BufferForm::uniform_view; BufferForm::Descriptor loses its DescriptorView field. The loop hoist stays: the argument table's Uniform block (lower::access::table, the spilled push fields) still feeds it. Its docs no longer name a buffer slot's uniform view. Removed or changed public items and the types that own them, each with 0 hits in the consumer's checkout at bd9d6ae85a and at ad28ebd881 (git grep -w -F over *.rs, *.toml, *.md): DescriptorView, UniformWords, UniformVec4, UniformViewChoice, UniformViewRange, UniformViewAliasing, UniformViewAliased, RangeAtBindOffset, storage_view_slots, view_base_alignment, uniform_views_at_residual, at_bind_views, class_alignment, uniform_view, same_shape, AccessClass, BufferRanges, buffer_ranges, BufferForm, StageTable, BoundBuffer, BindState, VariantKey, LoweringInputs, RuntimeFact, SpecKey, BindError. crates/metal2vulkan/tests/api_signatures.tsv and api_surface.rs are blessed in this commit, and docs/API.md (the uniform-view form, the bind-offset key, BufferRanges) changes with it. Stored: VariantKey's storage_view_slots, and the codec tags of BufferForm::Descriptor (no field), SpecKey (RangeAtBindOffset gone), RuntimeFact (two variants gone) and DescriptorView (gone). The batch's ARTIFACT_FORMAT_VERSION bump (590 to 591), applied last once for the batch, covers them; no version moves here. Tests deleted whole, neither a containment proof: engine_storage_view_variant.rs (the variant's fixed point) and engine_lane_reads.rs (the uniform view's lane choice). Deleted with the forms they tested: the uniform-view cases of engine_access.rs and engine_binder.rs, the slots tests of the large-view candidates and the bind-offset range, the variant's cache round trip, and the active-lanes tests of lower/simd/uniform. The kept containment proof, a constant buffer shorter than its window, runs on the storage form (a_constant_buffer_shorter_than_its_window_is_contained_in_shader). Profile F's new refusal has its test (a_stage_past_the_storage_buffer_limit_without_device_addresses_is_refused). Golden: at the batch's top only the stated set's 24 texel-buffer rows moved, the 312 cells commit 2 alone moved before the rebase; no other row moved on either set. The .air.ll half (567 typed-pointer fixtures, which need metal-as) is unchecked per commit; the batch's golden bless on the M3 covers it. Verified: - On unshipped's tip before this rebase (96d953bb0b), the same change: compile job m3-max-66120 green (fmt, signatures, refusals, clippy plain, m2v_gpu and m2v_cpu_icd, workspace Rustdoc, api-docs). Before that rebase, this commit alone (hash probe job m3-max-65979) read 252 rows equal to its base's arm. - At the batch's top on 96d953bb0b (all four commits, probe job m3-max-66130): the hash probe's 252 rows equal unshipped's arm at 4861c9863d (m3-max-65976); the golden probe's set without buffer robustness (the runtime's state) equals the base arm 96d953bb0b (m3-max-66128), 1855 of 1855 rows. - The states-only play at the batch's top (render and compute states made and refused, pipelines_created, made_ahead_variants) is the coordinator's, run on the branch; it is not evidence here. - Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the branch tip.
12 KiB
12 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 | BufferRange | app | a buffer window past a device's descriptor range |
| 41 | feature | Int64Arithmetic | rare | 64-bit integers on a device without shaderInt64 |
| 42 | feature | Float64Arithmetic | rare | doubles (MSL has none outside Apple's own code) |
| 43 | feature | Format | system | pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
| 44 | feature | DivergentImplicitLod | app | implicit-LOD sampling through a dynamically chosen texture |
| 45 | feature | ImplicitLodOutsideFragment | rare | implicit-LOD sampling outside fragment functions |
| 46 | feature | MinLodClamp | rare | min_lod_clamp on a device without shaderResourceMinLod |
| 47 | feature | TexelOffset | app | texel offsets a device cannot apply |
| 48 | feature | GatherExtended | rare | gathers with dynamic offsets or components |
| 49 | feature | StorageImageMultisample | rare | writable multisampled textures |
| 50 | feature | StorageTextureInVertexStage | rare | writable textures in vertex functions |
| 51 | feature | CubeArray | rare | cube arrays on a device without imageCubeArray |
| 52 | feature | SamplerAnisotropy | app | anisotropic samplers an argument buffer lists, on a device without samplerAnisotropy |
| 53 | feature | SamplerBorderColor | app | border colors a device cannot express |
| 54 | feature | SamplerLodBias | app | constexpr samplers with an LOD bias |
| 55 | feature | SamplerCompare | app | compare samplers a device cannot apply to the image |
| 56 | feature | PixelSamplerCompare | none | Apple's compiler rejects it |
| 57 | feature | TexelBuffer | app | texture buffers past a device's texel-buffer limits |
| 58 | feature | RasterOrderGroups | rare | raster order groups |
| 59 | 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) |
| 60 | feature | PrimitiveId | rare | primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function |
| 61 | 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 |
| 62 | feature | VertexAmplification | rare | vertex amplification |
| 63 | feature | LayeredRendering | rare | layered rendering on a device without its features |
| 64 | feature | ClipDistance | rare | clip distances on a device without them |
| 65 | feature | DualSourceBlending | rare | dual-source blending on a device without it |
| 66 | feature | Barycentrics | rare | barycentric coordinates |
| 67 | feature | StencilExport | rare | stencil from the shader |
| 68 | feature | SampleRateShading | rare | per-sample shading |
| 69 | feature | PullModelInterpolation | rare | interpolant inputs read at the centroid, a sample or an offset |
| 70 | feature | DivergentInterpolation | rare | an interpolant read at a sample or an offset in a branch, a loop or after a discard |
| 71 | feature | PixelCoverageAtSampleRate | rare | coverage read at sample rate |
| 72 | feature | InterfaceComponents | rare | too many varyings or attachments for a device |
| 73 | feature | UnmatchedVarying | none | a Metal link error |
| 74 | feature | KernelStageIn | rare | kernel stage-in combinations Metal leaves unestablished |
| 75 | feature | VertexStepRate | app | instanced vertex layouts stepped at a rate above 1 |
| 76 | feature | VertexInputLayout | rare | vertex offsets or strides off their format's alignment, or past a device's limits |
| 77 | feature | Tessellation | rare | tessellation |
| 78 | feature | MeshShading | rare | mesh pipelines |
| 79 | feature | TileShading | rare | tile shaders (Apple GPU families) |
| 80 | feature | Imageblocks | rare | imageblocks (Apple GPU families) |
| 81 | feature | RayTracing | rare | ray tracing (out of scope by ruling) |
| 82 | feature | Tensors | rare | shader tensors |
| 83 | feature | RasterizationRateMap | rare | rasterization rate maps |
| 84 | feature | GpuEncodedIndirectCommands | rare | indirect command buffers encoded by a kernel |
| 85 | feature | VulkanVersion | none | a device below Vulkan 1.2 |
| 86 | feature | PushWindow | none | a device whose maxPushConstantsSize is below 256 bytes |
| 87 | 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 |
| 88 | feature | Constant | none | LLVM constant forms AIR does not emit |
| 89 | feature | Attribute | none | LLVM ABI attributes AIR does not use |
| 90 | feature | BitcodeRecord | none | bitcode records AIR does not emit |
| 91 | feature | SyncScope | none | synchronization scopes AIR does not use |
| 92 | feature | SubgroupOperations | app | simdgroup functions in a stage a device's subgroups do not support |
| 93 | feature | DirectCall | rare | variadic or byval calls the inliner cannot take |
| 94 | feature | WideSwitchLiteral | rare | 64-bit switch literals |
| 95 | feature | Lowering | system | the catch-all of lowering families not landed: any shader can meet one |
| 96 | feature | SamplerAddressMode | app | mirror-clamp-to-edge on a device without it |
| 97 | feature | AlphaToOne | rare | alphaToOneEnabled on a device without alphaToOne |
| 98 | feature | StageStoresAndAtomics | app | stores or atomics in vertex or fragment functions on a device without the feature |
| 99 | feature | FunctionConstantArgument | rare | a function-constant-removed argument read |
| 100 | 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 |
| 101 | feature | GroupCount | rare | more threadgroups than a device dispatches, past the binder's split |
| 102 | feature | IntersectionFunctionTable | rare | ray tracing (out of scope by ruling) |
| 103 | feature | IndependentBlending | rare | per-attachment blending on a device without independentBlend |
| 104 | feature | RasterSampleCount | app | a sample count a device lacks for the attachments |
| 105 | feature | TriangleFillLines | app | wireframe on a device without fillModeNonSolid |
| 106 | feature | TriangleFillPoints | system | Apple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK) |
| 107 | feature | DepthClipClamp | app | depth clamp on a device without depthClamp |
| 108 | feature | DepthBiasClamp | app | depth bias clamp on a device without depthBiasClamp |
| 109 | feature | ConstantAlphaBlendFactor | app | blend-alpha factors on a portability-subset device without them |
| 110 | feature | SparseTexture | rare | sparse residency reads |
| 111 | feature | TextureSwizzle | app | texture swizzles whose Metal behaviour is unmeasured |
| 112 | feature | PostDepthCoverage | rare | the coverage after early depth and stencil tests, on every device |
| 113 | feature | PrivateMemory | rare | very large per-thread arrays |
| 114 | feature | Reflection | rare | reflection of argument kinds Metal's answer is unmeasured for |
| 115 | feature | ViewportDepthRange | rare | viewport depth outside [0, 1] |
| 116 | feature | IndirectRenderState | rare | render state set by a kernel on an indirect command |
| 117 | feature | GlobalBuiltinInFragment | rare | Metal 3.1 global built-ins in fragment functions |
| 118 | bind | DescriptorRangeExceeded | app | a buffer window past a device's descriptor range |
| 119 | bind | TexelBufferTooLarge | rare | a texture buffer past maxTexelBufferElements its parts do not bind |
| 120 | bind | HeapTooLarge | rare | more resident textures than the pipeline's heap holds (bindless at scale) |
| 121 | bind | TessellationFactorRange | rare | tessellation factors past one storage descriptor |
| 122 | bind | PatchIndexRange | rare | patch indices past one storage descriptor |
| 123 | bind | ControlPointIndexRange | rare | control-point indices past one storage descriptor |
| 124 | bind | MissingStageInRegion | none | a stage-in region never set, which Metal leaves undefined |
| 125 | bind | MissingDeviceAddress | rare | a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
| 126 | limit | InlinedInstructions | rare | very large shaders after inlining |
| 127 | limit | OutputBlocks | rare | very large control flow |
| 128 | limit | IrreducibleDepth | none | deeply nested irreducible loops |
| 129 | limit | SpirvWords | rare | very large output modules |
| 130 | limit | WorkUnits | rare | very large shaders |
| 131 | limit | LedgerBytes | rare | very large shaders |
| 132 | limit | TypeCount | none | a type table past the cap |
| 133 | limit | MetadataNodes | none | metadata past the cap |
| 134 | limit | BitstreamNesting | none | malformed nesting |
| 135 | limit | InstructionCount | rare | very large modules |
| 136 | limit | LayoutNesting | none | argument-buffer layouts nested past the cap |
| 137 | limit | ConstructNesting | none | control flow nested past the cap |
| 138 | limit | PrivateArenaBytes | none | a private arena past 4 GiB |
| 139 | limit | CallStackBytes | rare | deep visible-function call stacks |
| 140 | ratemap | ScreenExtent | rare | a rate map whose screen is past 16384 a side |
| 141 | ratemap | LayerCount | none | a rate map of more than two layers, which Apple's compile crashes on |
| 142 | ratemap | DenseSamples | rare | a rate map axis with more quality samples than screen pixels |
| 143 | ratemap | SampleOutOfRange | rare | a rate map quality sample outside [0, 1] among others |
| 144 | ratemap | SampleCount | rare | a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
| 145 | budget | Time | none | a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
| 146 | feature | PrivateRenderState | none | Apple-private pipeline fields of OpenGL on Metal (no public header) |
| 147 | feature | CommandPredication | none | Apple-private command predication on a device without buffer device addresses |
| 148 | feature | ProgramScopeBinding | app | MSL 3.2 program-scope buffer bindings (macOS 15 and later) |
| 149 | feature | GenericPointer | system | MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later) |
| 150 | feature | SeqCstFence | rare | a seq_cst fence in a vertex or fragment stage without its stores and atomics |
| 151 | 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) |