Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal fa5d051b64 Translator: the two-word 64-bit integer forms deleted; every profile holds 64-bit integers in u64s
What: the arithmetic family's word form of 64-bit integers is deleted: Held::Wide and every
arm on it, lower/arith/wide.rs (its word arithmetic, division, casts and lane moves) with its
tests, ArithStrategy::Wide and ArithPlan's wide and divides, the profile's wide forms
(wide_form_on, wide_demote, widen, widen_const, holds_wide), the two-word switch selector
(SelectorForm::Words), the chunked vector's two-word lanes, the ulong texel's word form
(TexelConv::U64Words loses its flag), the matrix descriptor's word form, and in the access
family the two-word address (pointer.rs's Address enum and its helpers, the handle table's
word entries and HandleIds, psb.rs's word base). The helpers the u64 paths still use move to
arith/ops.rs (low_word, zext_word) and access/psb.rs (Pair, split). Every !int64 refusal goes
with them: Feature::Int64Arithmetic, and Feature::PointerCompare, whose one producer was the
static guest plan's !int64 arm. LeafCaps::int64 is deleted, and the mesh fold no longer asks
for shaderInt64. BinOp::ISubBorrow, which only the word subtraction built, goes with its
interpreter and builder arms (the grammar's Op::ISubBorrow stays in spv.rs).

Why: Device::from_queries refuses a device without bufferDeviceAddress and shaderInt64
(IdentityDomains), and it is the only way to make a profile, so every profile has
shaderInt64 and every arm deleted here was unreachable. This commit's parent is the last that
holds the word form.

Consumer search: reims-vgpu development cadac770c2 plus its steelbrain refs younger than a
day (190 refs): 0 hits each for Int64Arithmetic, PointerCompare, LeafCaps and leaf.int64.

The profile's fingerprint changes on every device (the field leaves the profile's Debug
text), so the golden cells read "profile changed" until the table is re-blessed; no key
stays unchanged, so SEMANTICS_VERSION does not move. The module words do not move: the u64
paths emit the same instructions in the same order (the uvec2 the slot offset builds is the
same type the word form's type helper made).

Tests: chunk.rs keeps the chunked lane-move and fragment-shuffle bound tests, on 64-bit and
32-bit lanes held whole; the selector test drops the word cases; the tests that asserted or
filtered on the int64 field or Int64Arithmetic drop those lines; the dynamic move between
slots runs L3 on every profile.

docs/API.md (the object grid's needs), docs/REFUSALS.md, scripts/refusal-surface/reach.tsv
and tests/api_signatures.tsv are updated; runtime-sources.sha256 is re-pinned.

Verified: job m3-max-84770 at this commit (CPU only; the device steps on
lavapipe): clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd EXIT=0;
rustdoc EXIT=0 and private-item docs of five crates with 0 diagnostics;
the translator's suite 2,594 of 2,595 passed, 20 skipped, the one failure
golden_hashes_match_the_table (28,950 cells under a changed profile
fingerprint, 0 changed under an unchanged key); air, runtime, devtools
and harness 872 passed, 4 skipped; validation 1,348 passed, 2 skipped;
conformance 1,053 passed; doctests passed; the conformance replay on
lavapipe EXIT=0 with 0 ledger drift lines; the refusal-surface and
signatures checks EXIT=0. The golden and engine inventory lists at the
parent and at this commit show 0 computed cells moved and no inventory
line.
2026-12-03 11:57:03 -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)
27featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
28featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
29featureDereferenceLoadedPointerapppointers loaded from argument buffers
30featureHandleAsPointerrareresource handles used as byte pointers
31featureConstantGlobalEscapingrarea constant global whose address escapes
32featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
33featureZeroedThreadgroupMemoryrarethreadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
34featureCoherentMemoryrarecoherent(device) accesses
35featureInt64Atomicsrare64-bit atomics
36featureImageAtomicsraretexture atomics beyond 32-bit integers
37featureDescriptorCountappmany textures or buffers in one stage on a smaller device
38featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
39featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
40featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
41featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
42featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
43featureTexelOffsetapptexel offsets a device cannot apply
44featureGatherExtendedraregathers with dynamic offsets or components
45featureStorageImageMultisamplerarewritable multisampled textures
46featureStorageTextureInVertexStagerarewritable textures in vertex functions
47featureCubeArrayrarecube arrays on a device without imageCubeArray
48featureSamplerAnisotropyappanisotropic samplers on a device without samplerAnisotropy
49featureSamplerBorderColorappborder colors a device cannot express
50featureSamplerLodBiasappconstexpr samplers with an LOD bias
51featureSamplerCompareappcompare samplers a device cannot apply to the image
52featurePixelSamplerComparenoneApple's compiler rejects it
53featureTexelBufferapptexture buffers past a device's texel-buffer limits
54featureRasterOrderGroupsrareraster order groups
55featureFramebufferFetchsystemprogrammable 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)
56featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
57featurePrivatePrimitivesrarea 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
58featureVertexAmplificationrarevertex amplification
59featureLayeredRenderingrarelayered rendering on a device without its features
60featureClipDistancerareclip distances on a device without them
61featureDualSourceBlendingraredual-source blending on a device without it
62featureBarycentricsrarebarycentric coordinates
63featureStencilExportrarestencil from the shader
64featureSampleRateShadingrareper-sample shading
65featurePullModelInterpolationrareinterpolant inputs read at the centroid, a sample or an offset
66featureDivergentInterpolationrarean interpolant read at a sample or an offset in a branch, a loop or after a discard
67featurePixelCoverageAtSampleRaterarecoverage read at sample rate
68featureInterfaceComponentsraretoo many varyings or attachments for a device
69featureUnmatchedVaryingnonea Metal link error
70featureVertexStepRateappinstanced vertex layouts stepped at a rate above 1
71featureVertexInputLayoutrarevertex offsets or strides off their format's alignment, or past a device's limits
72featureTessellationraretessellation
73featureMeshShadingraremesh pipelines
74featureTileShadingraretile shaders (Apple GPU families)
75featureImageblocksrareimageblocks (Apple GPU families)
76featureRayTracingrareray tracing (out of scope by ruling)
77featureTensorsrareshader tensors
78featureRasterizationRateMaprarerasterization rate maps
79featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
80featureVulkanVersionnonea device below Vulkan 1.2
81featurePushWindownonea description whose maxPushConstantsSize is below 128 bytes, less than Vulkan lets a device report
82featureIdentityDomainsnonethe 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
83featureConstantnoneLLVM constant forms AIR does not emit
84featureAttributenoneLLVM ABI attributes AIR does not use
85featureBitcodeRecordnonebitcode records AIR does not emit
86featureSyncScopenonesynchronization scopes AIR does not use
87featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
88featureDirectCallrarevariadic or byval calls the inliner cannot take
89featureWideSwitchLiteralrare64-bit switch literals
90featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
91featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
92featureAlphaToOnerarealphaToOneEnabled on a device without alphaToOne
93featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
94featureFunctionConstantArgumentrarea function-constant-removed argument read
95featureSamplerBicubicFiltersystembicubic 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
96featureGroupCountraremore threadgroups than a device dispatches, past the binder's split
97featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
98featureIndependentBlendingrareper-attachment blending on a device without independentBlend
99featureRasterSampleCountappa sample count a device lacks for the attachments
100featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
101featureTriangleFillPointssystemApple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
102featureDepthClipClampappdepth clamp on a device without depthClamp
103featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
104featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
105featureSparseTextureraresparse residency reads
106featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
107featurePostDepthCoveragerarethe coverage after early depth and stencil tests, on every device
108featurePrivateMemoryrarevery large per-thread arrays
109featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
110featureViewportDepthRangerareviewport depth outside [0, 1]
111featureIndirectRenderStaterarerender state set by a kernel on an indirect command
112featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
113limitInlinedInstructionsrarevery large shaders after inlining
114limitOutputBlocksrarevery large control flow
115limitIrreducibleDepthnonedeeply nested irreducible loops
116limitSpirvWordsrarevery large output modules
117limitWorkUnitsrarevery large shaders
118limitLedgerBytesrarevery large shaders
119limitTypeCountnonea type table past the cap
120limitMetadataNodesnonemetadata past the cap
121limitBitstreamNestingnonemalformed nesting
122limitInstructionCountrarevery large modules
123limitLayoutNestingnoneargument-buffer layouts nested past the cap
124limitConstructNestingnonecontrol flow nested past the cap
125limitPrivateArenaBytesnonea private arena past 4 GiB
126limitCallStackBytesraredeep visible-function call stacks
127ratemapScreenExtentrarea rate map whose screen is past 16384 a side
128ratemapLayerCountnonea rate map of more than two layers, which Apple's compile crashes on
129ratemapDenseSamplesrarea rate map axis with more quality samples than screen pixels
130ratemapSampleOutOfRangerarea rate map quality sample outside [0, 1] among others
131ratemapSampleCountrarea rate map axis of more distinct samples than measured (9 on one layer, 4 on two)
132budgetTimenonea translation past its deadline: a defect of ours to fix on any supported input (AGENTS.md: 20 seconds)
133featurePrivateRenderStatenoneApple-private pipeline fields of OpenGL on Metal (no public header)
134featureCommandPredicationnoneApple-private command predication on a device without buffer device addresses
135featureProgramScopeResourceappMSL 3.2 textures, samplers and threadgroup memory bound at program scope (macOS 15 and later)
136featureProgramScopeSharedSlotrareMSL 3.2 program-scope buffers aliasing another argument of another type at one index
137featureProgramScopeLinkedrareMSL 3.2 program-scope bindings in a linked visible function or a dynamic library
138featureProgramScopeReadnonea read of a program-scope buffer's global that Apple's compiler is not seen to write
139featureGenericPointersystemMSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later)
140featureSeqCstFencerarea seq_cst fence in a vertex or fragment stage without its stores and atomics
141featureWideLinesnonea 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)