Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal d9077dfa0d Push window: each device's maxPushConstantsSize sizes it, up to 256 bytes (rule 2's ninth form)
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.
2026-11-22 10:14:23 -08:00

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).
5featureLibraryKindnonea metallib file type Apple's toolchain is not seen to write
6featureStagenonea stage outside AIR's public stages
7featureAddressSpacenoneApple's AGX library address spaces
8featureModuleRecordnoneLLVM constructs AIR does not emit
9featureInstructionnoneLLVM instructions AIR does not emit
10featureTypenoneLLVM types AIR does not emit
11featureCallingConventionnoneLLVM calling conventions AIR does not use
12featureUnknownIntrinsicrareAIR from a newer compiler (macOS 27 AIR 2.9)
13featureAgxUnmodeledrareApple's own libraries' AGX intrinsics
14featureStaticInitializernoneLLVM initializers AIR does not emit
15featureRecursionrarerecursion through visible functions
16featureDynamicCallrarefunction pointers and function tables
17featureLinkingraredynamic libraries and linked functions
18featureSimdWidthappsimdgroup functions on a device whose subgroups cannot run 32 wide for the use
19featureLocalSizeappa threadgroup size past a smaller device's limit
20featurePartialThreadgroupsappa dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made
21featureIrreducibleConvergentrareirreducible loops around barriers or simd operations
22featureComputeDerivativesWithSimdrarederivatives in a kernel
23featureComputeDerivativesrarederivatives in a kernel
24featureQuadOperationsappquad shuffles in kernels on devices without quad operations there
25featureSimdgroupMatrixraresimdgroup matrix kernels
26featureSimdgroupMatrix16x16x16rare16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later)
27featureArgumentBufferPointersappargument buffers holding buffer pointers
28featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
29featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
30featureDereferenceLoadedPointerapppointers loaded from argument buffers
31featurePointerToIntegerrarepointer to integer casts
32featurePointerComparerarecomparing pointers of different roots
33featureHandleAsPointerrareresource handles used as byte pointers
34featureConstantGlobalEscapingrarea constant global whose address escapes
35featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
36featureZeroedThreadgroupMemoryrarethreadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
37featureCoherentMemoryrarecoherent(device) accesses
38featureInt64Atomicsrare64-bit atomics
39featureImageAtomicsraretexture atomics beyond 32-bit integers
40featureDescriptorCountappmany textures or buffers in one stage on a smaller device
41featureBufferRangeappa buffer window past a device's descriptor range
42featureInt64Arithmeticrare64-bit integers on a device without shaderInt64
43featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
44featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
45featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
46featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
47featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
48featureTexelOffsetapptexel offsets a device cannot apply
49featureGatherExtendedraregathers with dynamic offsets or components
50featureStorageImageMultisamplerarewritable multisampled textures
51featureStorageTextureInVertexStagerarewritable textures in vertex functions
52featureCubeArrayrarecube arrays on a device without imageCubeArray
53featureSamplerAnisotropyappanisotropic samplers an argument buffer lists, on a device without samplerAnisotropy
54featureSamplerBorderColorappborder colors a device cannot express
55featureSamplerLodBiasappconstexpr samplers with an LOD bias
56featureSamplerCompareappcompare samplers a device cannot apply to the image
57featurePixelSamplerComparenoneApple's compiler rejects it
58featureTexelBufferapptexture buffers past a device's texel-buffer limits
59featureRasterOrderGroupsrareraster order groups
60featureFramebufferFetchsystemprogrammable 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)
61featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
62featurePrivatePrimitivesrarea 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
63featureVertexAmplificationrarevertex amplification
64featureLayeredRenderingrarelayered rendering on a device without its features
65featureClipDistancerareclip distances on a device without them
66featureDualSourceBlendingraredual-source blending on a device without it
67featureBarycentricsrarebarycentric coordinates
68featureStencilExportrarestencil from the shader
69featureSampleRateShadingrareper-sample shading
70featurePullModelInterpolationrareinterpolant inputs read at the centroid, a sample or an offset
71featureDivergentInterpolationrarean interpolant read at a sample or an offset in a branch, a loop or after a discard
72featurePixelCoverageAtSampleRaterarecoverage read at sample rate
73featureInterfaceComponentsraretoo many varyings or attachments for a device
74featureUnmatchedVaryingnonea Metal link error
75featureKernelStageInrarekernel stage-in combinations Metal leaves unestablished
76featureVertexStepRateappinstanced vertex layouts stepped at a rate above 1
77featureVertexInputLayoutrarevertex offsets or strides off their format's alignment, or past a device's limits
78featureTessellationraretessellation
79featureMeshShadingraremesh pipelines
80featureTileShadingraretile shaders (Apple GPU families)
81featureImageblocksrareimageblocks (Apple GPU families)
82featureRayTracingrareray tracing (out of scope by ruling)
83featureTensorsrareshader tensors
84featureRasterizationRateMaprarerasterization rate maps
85featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
86featureVulkanVersionnonea device below Vulkan 1.2
87featurePushWindownonea description whose maxPushConstantsSize is below 128 bytes, less than Vulkan lets a device report
88featureIdentityDomainsnonethe 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
89featureConstantnoneLLVM constant forms AIR does not emit
90featureAttributenoneLLVM ABI attributes AIR does not use
91featureBitcodeRecordnonebitcode records AIR does not emit
92featureSyncScopenonesynchronization scopes AIR does not use
93featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
94featureDirectCallrarevariadic or byval calls the inliner cannot take
95featureWideSwitchLiteralrare64-bit switch literals
96featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
97featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
98featureAlphaToOnerarealphaToOneEnabled on a device without alphaToOne
99featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
100featureFunctionConstantArgumentrarea function-constant-removed argument read
101featureSamplerBicubicFiltersystembicubic 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
102featureGroupCountraremore threadgroups than a device dispatches, past the binder's split
103featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
104featureIndependentBlendingrareper-attachment blending on a device without independentBlend
105featureRasterSampleCountappa sample count a device lacks for the attachments
106featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
107featureTriangleFillPointssystemApple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
108featureDepthClipClampappdepth clamp on a device without depthClamp
109featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
110featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
111featureSparseTextureraresparse residency reads
112featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
113featurePostDepthCoveragerarethe coverage after early depth and stencil tests, on every device
114featurePrivateMemoryrarevery large per-thread arrays
115featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
116featureViewportDepthRangerareviewport depth outside [0, 1]
117featureIndirectRenderStaterarerender state set by a kernel on an indirect command
118featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
119bindDescriptorRangeExceededappa buffer window past a device's descriptor range
120bindTexelBufferTooLargerarea texture buffer past maxTexelBufferElements its parts do not bind
121bindHeapTooLargeraremore resident textures than the pipeline's heap holds (bindless at scale)
122bindTessellationFactorRangeraretessellation factors past one storage descriptor
123bindPatchIndexRangerarepatch indices past one storage descriptor
124bindControlPointIndexRangerarecontrol-point indices past one storage descriptor
125bindMissingStageInRegionnonea stage-in region never set, which Metal leaves undefined
126bindMissingDeviceAddressrarea slot reached through a pointer loaded from memory, bound with inline bytes or on a device without device addresses
127limitInlinedInstructionsrarevery large shaders after inlining
128limitOutputBlocksrarevery large control flow
129limitIrreducibleDepthnonedeeply nested irreducible loops
130limitSpirvWordsrarevery large output modules
131limitWorkUnitsrarevery large shaders
132limitLedgerBytesrarevery large shaders
133limitTypeCountnonea type table past the cap
134limitMetadataNodesnonemetadata past the cap
135limitBitstreamNestingnonemalformed nesting
136limitInstructionCountrarevery large modules
137limitLayoutNestingnoneargument-buffer layouts nested past the cap
138limitConstructNestingnonecontrol flow nested past the cap
139limitPrivateArenaBytesnonea private arena past 4 GiB
140limitCallStackBytesraredeep visible-function call stacks
141ratemapScreenExtentrarea rate map whose screen is past 16384 a side
142ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
143ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
144ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
145ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
146budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
147featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
148featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
149featureProgramScopeBindingappMSL 3.2 program-scope buffer bindings (macOS 15 and later)
150featureGenericPointersystemMSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
151featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
152featureWideLinesnonea 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)