What: the push window is one value per device, `DeviceProfile::push_window`, the description's
maxPushConstantsSize up to 256 bytes, decided in the profile `Device::from_queries` derives
(device/profile.rs:115). Every window reads it: push placement (`lower::push::window`, `place`,
`spills` and `check_floor` take its bytes; lower/select.rs, lower/access/mod.rs and
lower/access/table.rs pass it), and in the runtime the one pipeline layout's push range
(device.rs:688), the kernel and render pipelines' push checks (pipeline.rs:2119, render.rs:1043)
and the encoder's push bound (encoder.rs:1759). With W that value, a kernel pushes in [0, W), a
vertex function in [base, W - 8) and a fragment function in [base, W); object and mesh functions
keep 0..32 and 32..64. A stage's fields past its window spill to its parameter block, whose
address the window holds, as they did past 256. `from_queries` refuses a maxPushConstantsSize
below 128, Vulkan's least, only (`Unsupported{PushWindow}`, required 128), and the runtime's
floor no longer lists maxPushConstantsSize (floor.rs: its row and PUSH_CONSTANT_BYTES go; the
layout's range was a constant 256). There is no constant 128 path, no switch and no environment
gate: the limit query is the only input. Ported from the held branch steelbrain/amdfloor-window
(d6880ca16b) onto today's development, every line reference confirmed against this tree.
Why: the owner's word choosing option B. A device reporting 128 bytes was refused by the floor;
it now runs with a window of 128.
AGENTS.md rule 2 takes the owner's authorized text: "for eight only" becomes "for nine only",
and the push window joins the list after run-time texel offsets.
Known gap (runtime README, Known gaps of indirect command buffers): in a window of 128 bytes a
command reaches 9 vertex slots, and 8 where the vertex function spills, against 25 and 24 at 256
((W - 8 - 16 - 28) / 8; from code: lower::push's
an_indirect_draw_s_vertex_function_pushes_25_or_9_slot_words). A kernel pushes 8 buffer
addresses beside its dispatch region at 128 bytes against 24 at 256, the rest from its ring.
Caches: a device of 128 and one of 256 share no cached artifact and no pipeline. The profile's
fingerprint hashes every ProfileFields field by Debug (device/profile.rs:312, :327), the limits
included (:346, maxPushConstantsSize at :625); `function_key` hashes the fingerprint
(pipeline/compile/key.rs:182, :189; passed at pipeline/compile.rs:2973), as does
`queried_render_descriptor_key` (key.rs:546); a cached artifact or pipeline loads only under an
equal fingerprint (cache/artifacts.rs:71, :204, :238; cache/envelope.rs:142); and the runtime's
enables digest, which the stage keys check, hashes it (metal2vulkan-runtime/src/device.rs:1533).
SEMANTICS_VERSION stays 2273: no module changes under an unchanged key. Every device
`from_queries` accepted before reports 256 bytes or more (it refused below 256), so its window is
256 as before and its modules are the same bytes; a device of fewer bytes was refused, so it
holds no artifact to go stale, and its modules are new under its own fingerprint. The golden
test at this tree found 0 cells changed under an unchanged key over the 15 committed profiles,
and 1855 under a changed profile fingerprint, runtime-floor's column alone (m3-max-68089; the rows
whose assembler Linux lacks are not observed there).
Golden table: runtime-floor.json and its generator drop the floor block's maxPushConstantsSize
of 256, so the profile reads Vulkan 1.3's least, 128, and its fingerprint moves. Its cells are
re-blessed on development (the bless needs macOS's assembler).
Validation: runtime-sources.sha256 is rewritten (d4a8dbf2...), since device/derive.rs and
device/profile.rs are runtime inputs the guard hashes.
Docs: the runtime README (the floor's limits note and table, compute Parameters, the render push
range, the indirect command buffers' known gaps), docs/API.md section 5 and the from_queries
paragraph, PushWindow's doc, reach.tsv and docs/REFUSALS.md (regenerated; the PushWindow row
only), the device profiles' README, and api_signatures.tsv (DeviceProfile::push_window). The
api_surface table is unchanged: no public type is added.
Tests: lower::push's placement at 256 and 128; from_queries (each committed profile's window is
its limit up to 256, runtime-floor's 128; 128 derives, 64 is refused with required 128); the
tessellation control range, the engine identity and spill tests in each profile's window; and
the runtime's push_window, patch and indirect token tests in two arms each, the device's own
limit and the limit held at 128 by the tests' device shim (tests/command.rs push_window_128,
DeviceOptions::described).
Verified:
- m3-max-68088 (this tree): fmt, the signatures table, the refusal surface, clippy -D warnings
plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings: each exit 0. The
runtime suite on lavapipe (--cfg m2v_cpu_icd): 647 passed, 3 skipped. Its push lines read
"push_window: the push window is 256 bytes", "push_window_128: the push window is 128 bytes",
"window 128, 12 buffers: 3 ring writes and 3 pushes over 3 dispatches", "icb_tokens: ... the
push window 256 bytes, 25 slot words", "icb_tokens_128: ... the push window 128 bytes, 9 slot
words", and draw_patches_full_range at 256 and _128 at 128.
- m3-max-68089 (this tree): the core crates 3881 of 3882 passed, 24 skipped; the one failure
is the golden table, stale under runtime-floor's moved fingerprint (1855 cells, one per row
observed on Linux, 0 new, 0 gone, 0 under a changed source, 0 changed under an unchanged key).
Validation 1314 passed, 3 skipped. The translator's push tests print each committed profile's
window: runtime-floor 128, the vertex function ending at 120, 9 inputs; the 14 others 256.
- m3-max-68067: the whole runtime suite on lavapipe at an earlier tree of this change
(a98af765ad, before the rebase onto 91fed9449c and the options alias) with a probe commit that
holds every device's limit at 128 in Device::open (steelbrain/amdfloorb-probe128, never landed):
647 passed, 3 skipped; the conformance replay exited 0; every push line read 128 bytes.
No card under 256 ran it; the 128 form ran on lavapipe with the limit held at 128.
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 | PartialThreadgroups | app | a dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made |
| 21 | feature | IrreducibleConvergent | rare | irreducible loops around barriers or simd operations |
| 22 | feature | ComputeDerivativesWithSimd | rare | derivatives in a kernel |
| 23 | feature | ComputeDerivatives | rare | derivatives in a kernel |
| 24 | feature | QuadOperations | app | quad shuffles in kernels on devices without quad operations there |
| 25 | feature | SimdgroupMatrix | rare | simdgroup matrix kernels |
| 26 | feature | SimdgroupMatrix16x16x16 | rare | 16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later) |
| 27 | feature | ArgumentBufferPointers | app | argument buffers holding buffer pointers |
| 28 | feature | ArgumentBufferTextures | app | argument buffers holding textures and samplers (bindless) |
| 29 | feature | ArgumentBufferObjects | rare | pipeline states and ICBs in argument buffers |
| 30 | feature | DereferenceLoadedPointer | app | pointers loaded from argument buffers |
| 31 | feature | PointerToInteger | rare | pointer to integer casts |
| 32 | feature | PointerCompare | rare | comparing pointers of different roots |
| 33 | feature | HandleAsPointer | rare | resource handles used as byte pointers |
| 34 | feature | ConstantGlobalEscaping | rare | a constant global whose address escapes |
| 35 | feature | ThreadgroupMemorySize | rare | threadgroup memory past a smaller device's limit |
| 36 | feature | ZeroedThreadgroupMemory | rare | threadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires |
| 37 | feature | CoherentMemory | rare | coherent(device) accesses |
| 38 | feature | Int64Atomics | rare | 64-bit atomics |
| 39 | feature | ImageAtomics | rare | texture atomics beyond 32-bit integers |
| 40 | feature | DescriptorCount | app | many textures or buffers in one stage on a smaller device |
| 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 | PullModelInterpolation | rare | interpolant inputs read at the centroid, a sample or an offset |
| 71 | feature | DivergentInterpolation | rare | an interpolant read at a sample or an offset in a branch, a loop or after a discard |
| 72 | feature | PixelCoverageAtSampleRate | rare | coverage read at sample rate |
| 73 | feature | InterfaceComponents | rare | too many varyings or attachments for a device |
| 74 | feature | UnmatchedVarying | none | a Metal link error |
| 75 | feature | KernelStageIn | rare | kernel stage-in combinations Metal leaves unestablished |
| 76 | feature | VertexStepRate | app | instanced vertex layouts stepped at a rate above 1 |
| 77 | feature | VertexInputLayout | rare | vertex offsets or strides off their format's alignment, or past a device's limits |
| 78 | feature | Tessellation | rare | tessellation |
| 79 | feature | MeshShading | rare | mesh pipelines |
| 80 | feature | TileShading | rare | tile shaders (Apple GPU families) |
| 81 | feature | Imageblocks | rare | imageblocks (Apple GPU families) |
| 82 | feature | RayTracing | rare | ray tracing (out of scope by ruling) |
| 83 | feature | Tensors | rare | shader tensors |
| 84 | feature | RasterizationRateMap | rare | rasterization rate maps |
| 85 | feature | GpuEncodedIndirectCommands | rare | indirect command buffers encoded by a kernel |
| 86 | feature | VulkanVersion | none | a device below Vulkan 1.2 |
| 87 | feature | PushWindow | none | a description whose maxPushConstantsSize is below 128 bytes, less than Vulkan lets a device report |
| 88 | 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 |
| 89 | feature | Constant | none | LLVM constant forms AIR does not emit |
| 90 | feature | Attribute | none | LLVM ABI attributes AIR does not use |
| 91 | feature | BitcodeRecord | none | bitcode records AIR does not emit |
| 92 | feature | SyncScope | none | synchronization scopes AIR does not use |
| 93 | feature | SubgroupOperations | app | simdgroup functions in a stage a device's subgroups do not support |
| 94 | feature | DirectCall | rare | variadic or byval calls the inliner cannot take |
| 95 | feature | WideSwitchLiteral | rare | 64-bit switch literals |
| 96 | feature | Lowering | system | the catch-all of lowering families not landed: any shader can meet one |
| 97 | feature | SamplerAddressMode | app | mirror-clamp-to-edge on a device without it |
| 98 | feature | AlphaToOne | rare | alphaToOneEnabled on a device without alphaToOne |
| 99 | feature | StageStoresAndAtomics | app | stores or atomics in vertex or fragment functions on a device without the feature |
| 100 | feature | FunctionConstantArgument | rare | a function-constant-removed argument read |
| 101 | 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 |
| 102 | feature | GroupCount | rare | more threadgroups than a device dispatches, past the binder's split |
| 103 | feature | IntersectionFunctionTable | rare | ray tracing (out of scope by ruling) |
| 104 | feature | IndependentBlending | rare | per-attachment blending on a device without independentBlend |
| 105 | feature | RasterSampleCount | app | a sample count a device lacks for the attachments |
| 106 | feature | TriangleFillLines | app | wireframe on a device without fillModeNonSolid |
| 107 | feature | TriangleFillPoints | system | Apple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK) |
| 108 | feature | DepthClipClamp | app | depth clamp on a device without depthClamp |
| 109 | feature | DepthBiasClamp | app | depth bias clamp on a device without depthBiasClamp |
| 110 | feature | ConstantAlphaBlendFactor | app | blend-alpha factors on a portability-subset device without them |
| 111 | feature | SparseTexture | rare | sparse residency reads |
| 112 | feature | TextureSwizzle | app | texture swizzles whose Metal behaviour is unmeasured |
| 113 | feature | PostDepthCoverage | rare | the coverage after early depth and stencil tests, on every device |
| 114 | feature | PrivateMemory | rare | very large per-thread arrays |
| 115 | feature | Reflection | rare | reflection of argument kinds Metal's answer is unmeasured for |
| 116 | feature | ViewportDepthRange | rare | viewport depth outside [0, 1] |
| 117 | feature | IndirectRenderState | rare | render state set by a kernel on an indirect command |
| 118 | feature | GlobalBuiltinInFragment | rare | Metal 3.1 global built-ins in fragment functions |
| 119 | bind | DescriptorRangeExceeded | app | a buffer window past a device's descriptor range |
| 120 | bind | TexelBufferTooLarge | rare | a texture buffer past maxTexelBufferElements its parts do not bind |
| 121 | bind | HeapTooLarge | rare | more resident textures than the pipeline's heap holds (bindless at scale) |
| 122 | bind | TessellationFactorRange | rare | tessellation factors past one storage descriptor |
| 123 | bind | PatchIndexRange | rare | patch indices past one storage descriptor |
| 124 | bind | ControlPointIndexRange | rare | control-point indices past one storage descriptor |
| 125 | bind | MissingStageInRegion | none | a stage-in region never set, which Metal leaves undefined |
| 126 | bind | MissingDeviceAddress | rare | a slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses |
| 127 | limit | InlinedInstructions | rare | very large shaders after inlining |
| 128 | limit | OutputBlocks | rare | very large control flow |
| 129 | limit | IrreducibleDepth | none | deeply nested irreducible loops |
| 130 | limit | SpirvWords | rare | very large output modules |
| 131 | limit | WorkUnits | rare | very large shaders |
| 132 | limit | LedgerBytes | rare | very large shaders |
| 133 | limit | TypeCount | none | a type table past the cap |
| 134 | limit | MetadataNodes | none | metadata past the cap |
| 135 | limit | BitstreamNesting | none | malformed nesting |
| 136 | limit | InstructionCount | rare | very large modules |
| 137 | limit | LayoutNesting | none | argument-buffer layouts nested past the cap |
| 138 | limit | ConstructNesting | none | control flow nested past the cap |
| 139 | limit | PrivateArenaBytes | none | a private arena past 4 GiB |
| 140 | limit | CallStackBytes | rare | deep visible-function call stacks |
| 141 | ratemap | ScreenExtent | rare | a rate map whose screen is past 16384 a side |
| 142 | ratemap | LayerCount | none | a rate map of more than two layers, which Apple's compile crashes on |
| 143 | ratemap | DenseSamples | rare | a rate map axis with more quality samples than screen pixels |
| 144 | ratemap | SampleOutOfRange | rare | a rate map quality sample outside [0, 1] among others |
| 145 | ratemap | SampleCount | rare | a rate map axis of more distinct samples than measured (9 on one layer, 4 on two) |
| 146 | budget | Time | none | a translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds) |
| 147 | feature | PrivateRenderState | none | Apple-private pipeline fields of OpenGL on Metal (no public header) |
| 148 | feature | CommandPredication | none | Apple-private command predication on a device without buffer device addresses |
| 149 | feature | ProgramScopeBinding | app | MSL 3.2 program-scope buffer bindings (macOS 15 and later) |
| 150 | feature | GenericPointer | system | MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later) |
| 151 | feature | SeqCstFence | rare | a seq_cst fence in a vertex or fragment stage without its stores and atomics |
| 152 | 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) |