Files
metal2vulkan/scripts/refusal-surface/reach.tsv
T
Anees Iqbal 4aee2fa9f1 Translator: the ordered fetch form goes; its computed writes are refused on every device
The framebuffer fetch had a second form chosen by rasterizationOrderColorAttachmentAccess: over
a rasterization-order input attachment, a fragment function computed writes no Vulkan blend,
write mask or logic operation gives. No runtime enables that feature, so the form ran on no
guest's device. It goes (rule 2: a second form chosen by a query outside the named list; rule 4).

What changes:
- A fetch reads its input attachment ordered between draws alone on every device, noted
  UnorderedFetchWithinDraw. Under the identity domains it reads the pushed texture
  (PushField::FetchedColor).
- These states are refused on every device: a padded extended-range attachment's blend; a write
  of some of the codes one word of an extended-range attachment holds; and a blend no Vulkan
  state gives on a rotated (ARGB8Unorm) attachment. Each refusal is FramebufferFetch, not
  implemented (lower::fragment::fetch::computed_write_refused).
- A word attachment under a partial mask takes its format's own attachment, and is refused where
  the device lacks that format.
- A private logic operation on a device without logicOp is refused naming
  PrivateRenderState(LogicOperation) and logicOp.
- Deleted: lower/fragment/input_blend.rs, word_input.rs, the shader logic operation in logic.rs,
  lower/arith/extended_range/blend.rs, pipeline/link/fetch.rs, and the arithmetic only they used
  (the fma emulation cluster, div_exact, encode_keeping).
- Deleted public items:
  - LoweringInputs.framebuffer_fetch and .logic_operation;
  - FramebufferFetchInputs, FetchedAttachment, BlendEquation;
  - GraphicsState.rasterization_order_attachment_access and
    FragmentCaps.rasterization_order_color_access;
  - metal::format::extended_range_blend, Feature::ExtendedRangeBlend and the ExtendedRangeBlend
    enum;
  - RuntimeInput::FramebufferFetch and ::LogicOperation;
  - RuntimeFact::ExtendedRangeInputBlend, ::RotatedInputBlend and ::WordInputMerge;
  - PrecisionNote::ExtendedRangeBlendSource and ::ExtendedRangeFloatBlendSource.
- The enable-set facts class VK_EXT_rasterization_order_attachment_access as described and never
  enabled.

Docs, in this commit:
- rt README: Known gaps of render encoders gets one line per refused state, each built on the
  runtime's own fetch form if a guest meets it. The Not-enabled row of
  rasterizationOrderColorAttachmentAccess goes, and so does logicOp's mention of the shader form.
- docs/API.md loses the two blend-source notes from the precision-note catalogue, the
  rasterization-order form and the word merge.
- REFUSALS.md is regenerated (reach row of ExtendedRangeBlend removed), along with
  api_signatures.tsv and the api_surface table.
- The conformance ledger: the 39 rows refused naming rasterization-order access (on llvmpipe and
  the UHD 630; on other venues the case read as lacks-feature) become 22 every-venue rows,
  refused, needs NotImplemented. The matrix replay on development confirms the scope.

Lines: product sources (crates/metal2vulkan, -air, -runtime src, tests excluded) +238 -4647;
product tests +277 -2279; validation and conformance +61 -182; docs +48 -67.

Consumer search (reims-vgpu at 71573a84c8, git grep -w over *.rs, *.toml and *.md):
- 0 hits: ExtendedRangeBlend, rasterization_order_color_access, BlendEquation,
  FramebufferFetchInputs, rasterization_order_attachment_access, framebuffer_fetch,
  extended_range_blend, ExtendedRangeBlendSource, ExtendedRangeFloatBlendSource,
  ExtendedRangeInputBlend, RotatedInputBlend, WordInputMerge, DualSource.
- Hits that are not these items: FetchedAttachment 2 (rt's DrawKind); logic_operation 8 (its
  own structs and rt's private state).
- RuntimeInput: only LinkedFunction is used.
- No glob import or re-export of a metal2vulkan module (only `use metal2vulkan_runtime as rt`).

Verified: cargo fmt; refusal surface and signatures regenerated locally. The compile job and the
host suites follow on the branch.
2026-11-22 00:17:40 -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
20featureIrreducibleConvergentrareirreducible loops around barriers or simd operations
21featureComputeDerivativesWithSimdrarederivatives in a kernel
22featureComputeDerivativesrarederivatives in a kernel
23featureQuadOperationsappquad shuffles in kernels on devices without quad operations there
24featureSimdgroupMatrixraresimdgroup matrix kernels
25featureSimdgroupMatrix16x16x16rare16x16x16 simdgroup matrix products (Metal: Apple10 GPUs and later)
26featureArgumentBufferPointersappargument buffers holding buffer pointers
27featureArgumentBufferTexturesappargument buffers holding textures and samplers (bindless)
28featureArgumentBufferObjectsrarepipeline states and ICBs in argument buffers
29featureDereferenceLoadedPointerapppointers loaded from argument buffers
30featurePointerToIntegerrarepointer to integer casts
31featurePointerComparerarecomparing pointers of different roots
32featureHandleAsPointerrareresource handles used as byte pointers
33featureConstantGlobalEscapingrarea constant global whose address escapes
34featureThreadgroupMemorySizerarethreadgroup memory past a smaller device's limit
35featureZeroedThreadgroupMemoryrarethreadgroup memory on a device without shaderZeroInitializeWorkgroupMemory, which Vulkan 1.3 requires
36featureCoherentMemoryrarecoherent(device) accesses
37featureInt64Atomicsrare64-bit atomics
38featureImageAtomicsraretexture atomics beyond 32-bit integers
39featureDescriptorCountappmany textures or buffers in one stage on a smaller device
40featureBufferRangeappa buffer window past a device's descriptor range
41featureInt64Arithmeticrare64-bit integers on a device without shaderInt64
42featureFloat64Arithmeticraredoubles (MSL has none outside Apple's own code)
43featureFormatsystempixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them)
44featureDivergentImplicitLodappimplicit-LOD sampling through a dynamically chosen texture
45featureImplicitLodOutsideFragmentrareimplicit-LOD sampling outside fragment functions
46featureMinLodClampraremin_lod_clamp on a device without shaderResourceMinLod
47featureTexelOffsetapptexel offsets a device cannot apply
48featureGatherExtendedraregathers with dynamic offsets or components
49featureStorageImageMultisamplerarewritable multisampled textures
50featureStorageTextureInVertexStagerarewritable textures in vertex functions
51featureCubeArrayrarecube arrays on a device without imageCubeArray
52featureSamplerAnisotropyappanisotropic samplers an argument buffer lists, on a device without samplerAnisotropy
53featureSamplerBorderColorappborder colors a device cannot express
54featureSamplerLodBiasappconstexpr samplers with an LOD bias
55featureSamplerCompareappcompare samplers a device cannot apply to the image
56featurePixelSamplerComparenoneApple's compiler rejects it
57featureTexelBufferapptexture buffers past a device's texel-buffer limits
58featureRasterOrderGroupsrareraster order groups
59featureFramebufferFetchsystemprogrammable 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)
60featurePrimitiveIdrareprimitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
61featurePrivatePrimitivesrarea 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
62featureVertexAmplificationrarevertex amplification
63featureLayeredRenderingrarelayered rendering on a device without its features
64featureClipDistancerareclip distances on a device without them
65featureDualSourceBlendingraredual-source blending on a device without it
66featureBarycentricsrarebarycentric coordinates
67featureStencilExportrarestencil from the shader
68featureSampleRateShadingrareper-sample shading
69featurePullModelInterpolationrareinterpolant inputs read at the centroid, a sample or an offset
70featureDivergentInterpolationrarean interpolant read at a sample or an offset in a branch, a loop or after a discard
71featurePixelCoverageAtSampleRaterarecoverage read at sample rate
72featureInterfaceComponentsraretoo many varyings or attachments for a device
73featureUnmatchedVaryingnonea Metal link error
74featureKernelStageInrarekernel stage-in combinations Metal leaves unestablished
75featureVertexStepRateappinstanced vertex layouts stepped at a rate above 1
76featureVertexInputLayoutrarevertex offsets or strides off their format's alignment, or past a device's limits
77featureTessellationraretessellation
78featureMeshShadingraremesh pipelines
79featureTileShadingraretile shaders (Apple GPU families)
80featureImageblocksrareimageblocks (Apple GPU families)
81featureRayTracingrareray tracing (out of scope by ruling)
82featureTensorsrareshader tensors
83featureRasterizationRateMaprarerasterization rate maps
84featureGpuEncodedIndirectCommandsrareindirect command buffers encoded by a kernel
85featureVulkanVersionnonea device below Vulkan 1.2
86featurePushWindownonea device whose maxPushConstantsSize is below 256 bytes
87featureIdentityDomainsnonethe 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
88featureConstantnoneLLVM constant forms AIR does not emit
89featureAttributenoneLLVM ABI attributes AIR does not use
90featureBitcodeRecordnonebitcode records AIR does not emit
91featureSyncScopenonesynchronization scopes AIR does not use
92featureSubgroupOperationsappsimdgroup functions in a stage a device's subgroups do not support
93featureDirectCallrarevariadic or byval calls the inliner cannot take
94featureWideSwitchLiteralrare64-bit switch literals
95featureLoweringsystemthe catch-all of lowering families not landed: any shader can meet one
96featureSamplerAddressModeappmirror-clamp-to-edge on a device without it
97featureAlphaToOnerarealphaToOneEnabled on a device without alphaToOne
98featureStageStoresAndAtomicsappstores or atomics in vertex or fragment functions on a device without the feature
99featureFunctionConstantArgumentrarea function-constant-removed argument read
100featureSamplerBicubicFiltersystembicubic 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
101featureGroupCountraremore threadgroups than a device dispatches, past the binder's split
102featureIntersectionFunctionTablerareray tracing (out of scope by ruling)
103featureIndependentBlendingrareper-attachment blending on a device without independentBlend
104featureRasterSampleCountappa sample count a device lacks for the attachments
105featureTriangleFillLinesappwireframe on a device without fillModeNonSolid
106featureTriangleFillPointssystemApple's GL renderer's glPolygonMode(GL_POINT) on a device without fillModeNonSolid, or a portability-subset device without pointPolygons (MoltenVK)
107featureDepthClipClampappdepth clamp on a device without depthClamp
108featureDepthBiasClampappdepth bias clamp on a device without depthBiasClamp
109featureConstantAlphaBlendFactorappblend-alpha factors on a portability-subset device without them
110featureSparseTextureraresparse residency reads
111featureTextureSwizzleapptexture swizzles whose Metal behaviour is unmeasured
112featurePostDepthCoveragerarethe coverage after early depth and stencil tests, on every device
113featurePrivateMemoryrarevery large per-thread arrays
114featureReflectionrarereflection of argument kinds Metal's answer is unmeasured for
115featureViewportDepthRangerareviewport depth outside [0, 1]
116featureIndirectRenderStaterarerender state set by a kernel on an indirect command
117featureGlobalBuiltinInFragmentrareMetal 3.1 global built-ins in fragment functions
118bindDescriptorRangeExceededappa buffer window past a device's descriptor range
119bindTexelBufferTooLargerarea texture buffer past maxTexelBufferElements its parts do not bind
120bindHeapTooLargeraremore resident textures than the pipeline's heap holds (bindless at scale)
121bindTessellationFactorRangeraretessellation factors past one storage descriptor
122bindPatchIndexRangerarepatch indices past one storage descriptor
123bindControlPointIndexRangerarecontrol-point indices past one storage descriptor
124bindMissingStageInRegionnonea stage-in region never set, which Metal leaves undefined
125bindUniformViewAliasedrareProfile F's uniform-view fallback aliased by a write
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)