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.
This commit is contained in:
1 parent
5eca62f83b
commit
4aee2fa9f1
91 files changed
+624
-7216
No files matched your search
+19
-42
@@ -849,12 +849,9 @@ Where Metal's rules differ from Vulkan's, the pipeline gives Metal's answer:
|
||||
does not render (the RTX 5080: it renders neither `R8_SRGB` nor `R8G8_SRGB`, and holds the
|
||||
latter in its UNORM twin) renders through an `R8_UINT` or `R16_UINT` view of its texture the
|
||||
same way: the fragment function writes the bytes of the device's sRGB encode
|
||||
(`DevicePackConversion`), a pass clears it to the bytes of Metal's clear, and a partial mask
|
||||
merges the word over the attachment's input attachment on a device that orders fetch through
|
||||
rasterization-order input attachments (lavapipe; `RuntimeFact::WordInputMerge`), and is refused
|
||||
as the device lacking the format elsewhere. A blend of one
|
||||
other than one and zero is refused as the device lacking the format; a color input of one is
|
||||
`NotImplemented(Format)`.
|
||||
(`DevicePackConversion`), and a pass clears it to the bytes of Metal's clear. A partial mask, and
|
||||
a blend of one other than one and zero, are refused as the device lacking the format; a color
|
||||
input of one is `NotImplemented(Format)`.
|
||||
- An `RGB9E5Float` attachment the device does not render (the RTX 5080) renders through an
|
||||
`R32_UINT` view of its texture: the fragment function writes Metal's word of a `float` output
|
||||
(each channel clamped to `[0, 65408]`, a NaN 0, the exponent of the largest, every mantissa
|
||||
@@ -874,13 +871,11 @@ Where Metal's rules differ from Vulkan's, the pipeline gives Metal's answer:
|
||||
tile's finer values. A device whose word's format renders one sample at that
|
||||
count refuses the texture (the runtime's `Limit::TextureSamples`).
|
||||
- A fragment function that reads a color attachment (framebuffer fetch) reads it as an input
|
||||
attachment, ordered by rasterization-order attachment access wherever the device has it. On a
|
||||
device without it the input attachment has no rasterization-order access
|
||||
(`GraphicsState::rasterization_order_attachment_access` false), and the consumer records a
|
||||
barrier of the subpass's dependency on itself, by region, before each draw that reads input
|
||||
attachments after an earlier draw of the subpass, or its load operations, wrote a color, and
|
||||
before each draw that writes a color after an earlier one read them: a fetch reads what every earlier draw stored, Metal's
|
||||
answer, but the overlapping fragments of one draw are not ordered, which the fragment stage
|
||||
attachment without rasterization-order attachment access, on every device, and the consumer
|
||||
records a barrier of the subpass's dependency on itself, by region, before each draw that reads
|
||||
input attachments after an earlier draw of the subpass, or its load operations, wrote a color,
|
||||
and before each draw that writes a color after an earlier one read them: a fetch reads what every
|
||||
earlier draw stored, Metal's answer, but the overlapping fragments of one draw are not ordered, which the fragment stage
|
||||
records (`PrecisionNote::UnorderedFetchWithinDraw`; the runtime does all of this itself). Under
|
||||
the identity domains the read is the pushed texture of section 1 instead, at the fragment's own
|
||||
pixel, with the same note: the consumer reads the attachment's texture there and orders each
|
||||
@@ -892,10 +887,14 @@ Where Metal's rules differ from Vulkan's, the pipeline gives Metal's answer:
|
||||
every device (`Unsupported{Format}` at the color attachment): Metal's tile holds
|
||||
such an attachment as `half` through the render pass and rounds it to the codes only at the
|
||||
store, so a read or a blend after an earlier draw's write sees that draw's `half`, which the
|
||||
stored codes do not keep. An unblended write, under any write mask, is built. On a device
|
||||
without rasterization-order access, a raster order group on a color input, or on a color output
|
||||
of an attachment the function reads, orders that read alone there and takes no interlock; a group on anything else still
|
||||
needs the pixel interlock (`Unsupported{RasterOrderGroups}`). A `[[stencil]]` output uses
|
||||
stored codes do not keep. An unblended write, under any write mask, is built. A write the
|
||||
function would compute over its own read of the attachment, where no Vulkan blend or write mask
|
||||
gives Metal's, is not built (`Unsupported{FramebufferFetch}`, not implemented, 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 an attachment held with
|
||||
its channels rotated. A raster order group on a color input, or on a color output of an
|
||||
attachment the function reads, orders that read alone and takes no interlock; a group on
|
||||
anything else needs the pixel interlock (`Unsupported{RasterOrderGroups}`). A `[[stencil]]` output uses
|
||||
`VK_EXT_shader_stencil_export`; a device without it refuses the function
|
||||
(`Unsupported{StencilExport}` naming the extension).
|
||||
- `[[barycentric_coord]]` reads `BaryCoordKHR` or `BaryCoordNoPerspKHR`, whose vertex order is
|
||||
@@ -1993,8 +1992,7 @@ bound.
|
||||
measured. The sample may read another level or filter than Metal's near a boundary.
|
||||
- `metal2vulkan-degrade-unordered-fetch-within-draw` (precision).
|
||||
`PrecisionNote::UnorderedFetchWithinDraw`: A fragment function reads a color attachment
|
||||
(framebuffer fetch) on a device without rasterization-order color attachment access (among
|
||||
the committed profiles, every one but the lavapipe ones). It reads the attachment as an input
|
||||
(framebuffer fetch), on every device. It reads the attachment as an input
|
||||
attachment, and the runtime records a barrier of the draws' subpass's dependency on itself, by
|
||||
region, before each draw that reads input
|
||||
attachments after an earlier draw of its render pass instance, or its load operations, wrote a
|
||||
@@ -2280,27 +2278,6 @@ bound.
|
||||
some channel written (`StageIo::half_blend_colors`, which the pipeline's stage reads), or its
|
||||
module names no math mode (under fast math the pipeline's stage records
|
||||
`PrecisionNote::HalfOutputFastMathBlend` instead).
|
||||
- `metal2vulkan-degrade-extended-range-blend-source` (precision).
|
||||
`PrecisionNote::ExtendedRangeBlendSource`: A fragment function's `half` color output (a scalar or
|
||||
vector of AIR's `half`) is blended into a padded 10-bit attachment (`R10Unorm_X6`,
|
||||
`RG10Unorm_X12`, their `_sRGB` twins, `RGB10A2Unorm_sRGB`), whose raw codes no device's blend
|
||||
unit reads, so the function blends in the shader in the device's arithmetic: `S·Fs op D·Fd` in
|
||||
`float`, in the blend equation's order, the source, second source and blend color unclamped, as
|
||||
Metal takes them there (a blend into one of Apple's extended-range formats is refused, section
|
||||
4). The device's compiler may contract a
|
||||
product into its sum and may regroup the blend: MoltenVK on the M3 Max and NVIDIA's driver on an
|
||||
RTX 5080 compute a second source's blend `S·F + D·(1 - F)` as `D + F·(S - D)`. Metal's compiler
|
||||
rounds each step to `half`, so a blended channel may store another code than Metal's: within two
|
||||
codes on a linear format and within six on an sRGB twin near zero, where its transfer is
|
||||
steepest, in the conformance suite's extended-range and padded blend cases; and where the
|
||||
device's compiler regroups a padded format's blend, an infinite second source stores the end code
|
||||
its sign picks where Metal's sum is NaN, stored as code 0.
|
||||
- `metal2vulkan-degrade-extended-range-float-blend-source` (precision).
|
||||
`PrecisionNote::ExtendedRangeFloatBlendSource`: `PrecisionNote::ExtendedRangeBlendSource` for a
|
||||
`float` color output (a scalar or vector of AIR's `float`): blended into a padded 10-bit
|
||||
attachment in the shader in the device's arithmetic, which the device's compiler
|
||||
may contract and regroup, where Metal's compiler rounds the output and each step of the blend to
|
||||
`half`; a blended channel within `ExtendedRangeBlendSource`'s bound of Metal's.
|
||||
- `metal2vulkan-degrade-anisotropic-filter` (precision). `PrecisionNote::AnisotropicFilter`: The
|
||||
module samples a texture through an anisotropic sampler with Metal's anisotropic filter emulated
|
||||
by the device's samples at explicit levels (`lower::sampler::anisotropic`), on a device without
|
||||
@@ -2509,8 +2486,8 @@ bound.
|
||||
`RGB10A2Unorm` stored green 938 where Metal's rule gives 937, and its xor of `0xe0` over an
|
||||
`RGBA8Snorm` channel's `0x80` stored `0x60` where Metal's gives `0x61`), by a distance the note
|
||||
does not bound: the result follows the codes' bits. The device's `logicOp` is its native form
|
||||
there, and no other form is built for it; a device without `logicOp` computes Metal's rule in
|
||||
the fragment function and records none. A signed channel the draw does not write (outside the
|
||||
there, and no other form is built for it; a device without `logicOp` refuses the operation
|
||||
(`Unsupported{PrivateRenderState(LogicOperation)}` naming `logicOp`). A signed channel the draw does not write (outside the
|
||||
write mask, or every channel under no-op) keeps its lowest code where any draw's unwritten
|
||||
texel does (`snorm-minimum-kept`).
|
||||
- `metal2vulkan-degrade-device-depth-bias` (precision). `PrecisionNote::DeviceDepthBias`: A draw
|
||||
|
||||
+7
-9
@@ -26,7 +26,7 @@ Columns:
|
||||
|
||||
| Kind | Variants | With a site | Reach system | Reach app | Reach rare | Reach none | Unassessed |
|
||||
|---|---|---|---|---|---|---|---|
|
||||
| Translator and front-end refusals | 119 | 119 | 7 | 26 | 66 | 20 | 0 |
|
||||
| Translator and front-end refusals | 118 | 118 | 6 | 26 | 66 | 20 | 0 |
|
||||
| Binder refusals at a device limit | 9 | 9 | 0 | 1 | 7 | 1 | 0 |
|
||||
| Translation caps | 14 | 14 | 0 | 0 | 7 | 7 | 0 |
|
||||
| Rate maps the compile layer does not compile | 5 | 5 | 0 | 0 | 4 | 1 | 0 |
|
||||
@@ -40,7 +40,7 @@ Columns:
|
||||
|
||||
| Kind | `metal-measured` | `metal-documented` | `metal-takes` | `device` | `ours` | `unknown` | `delegated` | `-` |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| Translator and front-end refusals | 0 | 0 | 0 | 48 | 71 | 0 | 0 | 0 |
|
||||
| Translator and front-end refusals | 0 | 0 | 0 | 48 | 70 | 0 | 0 | 0 |
|
||||
| Binder refusals at a device limit | 0 | 0 | 0 | 9 | 0 | 0 | 0 | 0 |
|
||||
| Translation caps | 0 | 0 | 0 | 0 | 14 | 0 | 0 | 0 |
|
||||
| Rate maps the compile layer does not compile | 0 | 0 | 0 | 0 | 5 | 0 | 0 | 0 |
|
||||
@@ -93,7 +93,7 @@ Columns:
|
||||
| `BufferRange` | A buffer window beyond the descriptor range limits | devices without buffer device addresses (`addressed_needs`); every device (no Vulkan mechanism) | `device` | 6: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites)`, `crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)` (+2) | `app`: a buffer window past a device's descriptor range |
|
||||
| `Int64Arithmetic` | 64-bit integer arithmetic | devices without VkFeature::ShaderInt64 | `device` | 2: `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`, `crates/metal2vulkan/src/lower/select.rs (selector_form)` | `rare`: 64-bit integers on a device without shaderInt64 |
|
||||
| `Float64Arithmetic` | 64-bit float arithmetic | devices without VkFeature::ShaderFloat64 | `device` | 2: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`, `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)` | `rare`: doubles (MSL has none outside Apple's own code) |
|
||||
| `Format` | A pixel or vertex format not supported for the required use | devices without VkFeature::ShaderStorageImageExtendedFormats; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`routes`); devices without a format's usage; every device (no Vulkan mechanism); every device (not implemented) | `ours` | 64: `crates/metal2vulkan/src/bind/heap.rs (array)`, `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)` (+35) | `system`: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
|
||||
| `Format` | A pixel or vertex format not supported for the required use | devices without VkFeature::ShaderStorageImageExtendedFormats; devices without a capability the site computes (`alternatives`); devices without a capability the site computes (`c`); devices without a capability the site computes (`missing`); devices without a capability the site computes (`routes`); devices without a format's usage; every device (no Vulkan mechanism); every device (not implemented) | `ours` | 57: `crates/metal2vulkan/src/bind/heap.rs (array)`, `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)` (+32) | `system`: pixel formats a device lacks for a use (CoreVideo's 4:2:x and 10-bit formats among them) |
|
||||
| `DivergentImplicitLod` | Divergent implicit-LOD sampling or LOD query through a multi-candidate handle | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/sampler/select.rs (tangled)` | `app`: implicit-LOD sampling through a dynamically chosen texture |
|
||||
| `ImplicitLodOutsideFragment` | Implicit-LOD sampling outside fragment | every device (not implemented) | `ours` | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level)`, `crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured)` (+1) | `rare`: implicit-LOD sampling outside fragment functions |
|
||||
| `MinLodClamp` | `min_lod_clamp` without `shaderResourceMinLod` | devices without VkFeature::ShaderResourceMinLod; every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/sampler/select.rs (min_lod)`, `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)` | `rare`: min_lod_clamp on a device without shaderResourceMinLod |
|
||||
@@ -109,7 +109,7 @@ Columns:
|
||||
| `PixelSamplerCompare` | A constexpr sampler with pixel coordinates and a compare function, which Apple's compiler rejects ("invalid values combination in sampler... | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (lowered)` | `none`: Apple's compiler rejects it |
|
||||
| `TexelBuffer` | Texture buffers beyond the device's texel-buffer limits | devices without a format's usage; every device (no Vulkan mechanism) | `device` | 3: `crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges, 2 sites)`, `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture)` | `app`: texture buffers past a device's texel-buffer limits |
|
||||
| `RasterOrderGroups` | Raster order groups without fragment shader interlock | devices without VkFeature::FragmentShaderPixelInterlock; every device (not implemented) | `ours` | 3: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`, `crates/metal2vulkan/src/lower/fragment/rog.rs (mode, 2 sites)` | `rare`: raster order groups |
|
||||
| `FramebufferFetch` | Framebuffer fetch that needs an ordered read the device lacks (rasterization-order attachment access), or in a shape not implemented | devices without VkFeature::RasterizationOrderColorAttachmentAccess; devices without VkFeature::SampleRateShading; every device (not implemented) | `ours` | 5: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (unorm8, 3 sites)`, `crates/metal2vulkan/src/lower/fragment/fetch.rs (plan_sample)` (+1) | `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) |
|
||||
| `FramebufferFetch` | Framebuffer fetch in a shape not implemented (a write the function would compute over its own read of the attachment), or that needs a feature the... | devices without VkFeature::SampleRateShading; every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/fragment/fetch.rs (computed_write_refused)`, `crates/metal2vulkan/src/lower/fragment/fetch.rs (plan_sample)` | `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) |
|
||||
| `PrimitiveId` | `[[primitive_id]]` in a fragment function | devices without a capability the site computes; every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/stage_io/plan.rs (finish)`, `crates/metal2vulkan/src/pipeline/link/varyings.rs (check_primitive_id)` | `rare`: primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function |
|
||||
| `PrivatePrimitives` | One of Metal's private primitive types (a line loop, a triangle fan, quads, a quad strip) drawn in the pulled list form... | devices without buffer device addresses (`addressed_needs`); every device (not implemented) | `ours` | via a helper: 1: `crates/metal2vulkan/src/lower/stage_io/plan.rs (indices_feature)` | `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 |
|
||||
| `VertexAmplification` | Vertex amplification | devices short of a Vulkan feature the site names; devices without VkFeature::Multiview; devices without VkFeature::MultiviewTessellationShader; devices without VkLimit::MaxMultiviewInstanceIndex; every device (not implemented) | `ours` | 5: `crates/metal2vulkan/src/bind/graphics.rs (multiview_instances)`, `crates/metal2vulkan/src/lower/stage_io/plan.rs (index_store)` (+3) | `rare`: vertex amplification |
|
||||
@@ -166,8 +166,7 @@ Columns:
|
||||
| `Reflection` | Reflection of an argument whose answer Metal's has not been measured for (`reflection`) | every device (not implemented) | `ours` | 8: `crates/metal2vulkan/src/reflection/derive.rs (gap_at)`, `crates/metal2vulkan/src/reflection/derive.rs (read_attributes)` (+6) | `rare`: reflection of argument kinds Metal's answer is unmeasured for |
|
||||
| `IndirectRenderState` | A `depth_stencil_state` a function reads from an argument buffer or takes as a parameter, the state of an indirect render command, which no record... | every device (not implemented) | `ours` | via a helper: 2: `crates/metal2vulkan/src/lower/access/pointer.rs (unlowered)`, `crates/metal2vulkan/src/lower/select.rs (param_family)` | `rare`: render state set by a kernel on an indirect command |
|
||||
| `GlobalBuiltinInFragment` | A fragment function's read of a Metal 3.1 program-scope built-in variable that Metal does not lower there | every device (not implemented) | `ours` | 1: `crates/metal2vulkan/src/lower/select.rs (route_air)` | `rare`: Metal 3.1 global built-ins in fragment functions |
|
||||
| `PrivateRenderState` | A private fixed-function property of Metal's pipeline descriptor (Apple SPI, OpenGL on Metal's) set to a value whose effect the translation has... | devices without VkFeature::LogicOp; devices without VkFeature::RasterizationOrderColorAttachmentAccess; every device (not implemented) | `ours` | 7: `crates/metal2vulkan/src/bind/heap.rs (array)`, `crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding)` (+5) | `none`: Apple-private pipeline fields of OpenGL on Metal (no public header) |
|
||||
| `ExtendedRangeBlend` | A blend the function computes in the shader, into an extended-range attachment (`BGRA10_XR`, `BGR10_XR`, `RGB10A8_2P_XR10` and their `_sRGB`... | every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (refused)`, `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_output)` | `system`: an extended-range (XR10) attachment blended from an output other than four half or float lanes; a 16-bit float attachment's storage-form blend of a second-source factor or a one-color-channel mask under fast math; the consumer's guests blend RGB10A8_2P_XR10 attachments |
|
||||
| `PrivateRenderState` | A private fixed-function property of Metal's pipeline descriptor (Apple SPI, OpenGL on Metal's) set to a value whose effect the translation has... | devices without VkFeature::LogicOp; every device (not implemented) | `ours` | 7: `crates/metal2vulkan/src/bind/heap.rs (array)`, `crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding)` (+5) | `none`: Apple-private pipeline fields of OpenGL on Metal (no public header) |
|
||||
| `ProgramScopeBinding` | A program-scope buffer binding of MSL 3.2 (macOS 15 and later), `constant T* constant p [[buffer(n)]];` in Apple's `!air.global_bindings` list,... | every device (not implemented) | `ours` | via a helper: 2: `crates/metal2vulkan-air/src/abi/module.rs (decode)`, `crates/metal2vulkan/src/error/mod.rs (from)` | `app`: MSL 3.2 program-scope buffer bindings (macOS 15 and later) |
|
||||
| `GenericPointer` | A generic pointer (MSL 4.1's `addrspace(8)`) that canonicalization cannot make a pointer of one address space, by how it comes to hold a space... | every device (not implemented) | `ours` | 2: `crates/metal2vulkan-air/src/canon/generic.rs (refuse)`, `crates/metal2vulkan-air/src/canon/generic.rs (refused)` | `system`: MSL 4.1 generic pointers held in memory or of two spaces (macOS 27 and later) |
|
||||
| `SeqCstFence` | A sequentially consistent fence (`seq_cst` `atomic_thread_fence`, an LLVM `fence seq_cst`, or a `seq_cst` barrier ordering device memory), whose... | devices short of a Vulkan feature the site names | `device` | 1: `crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst)` | `rare`: a seq_cst fence in a vertex or fragment stage without its stores and atomics |
|
||||
@@ -426,7 +425,7 @@ Each refusal's sites, with the function that builds it.
|
||||
- `feature::BufferRange`: `crates/metal2vulkan/src/bind/graphics.rs (patch_binding, 3 sites)`; `crates/metal2vulkan/src/bind/instantiate.rs (bind_buffers)`; `crates/metal2vulkan/src/lower/access/function_table.rs (select)`; `crates/metal2vulkan/src/lower/access/mod.rs (place_slots)`
|
||||
- `feature::Int64Arithmetic`: `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`; `crates/metal2vulkan/src/lower/select.rs (selector_form)`
|
||||
- `feature::Float64Arithmetic`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`; `crates/metal2vulkan/src/lower/arith/legal.rs (check_scalar)`
|
||||
- `feature::Format`: `crates/metal2vulkan/src/bind/heap.rs (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (require_filter_features)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (finish)`; `crates/metal2vulkan/src/lower/access/tile.rs (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs (select_param, 5 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (blended_extended_range)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_blend, 5 sites)`; `crates/metal2vulkan/src/lower/fragment/input_blend.rs (rotated)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs (plan, 2 sites)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as, 2 sites)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (storage_format, 5 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (ulong_format, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs (held_storage_choice, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs (vk_format, 2 sites)`; `crates/metal2vulkan/src/metal/vertex.rs (fetch_as, 2 sites)`; `crates/metal2vulkan/src/pipeline/color_writes.rs (rotated_blend_in_shader)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (extended_write_mask, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state, 3 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (reads_alpha_to_coverage, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (textured_fetches)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (alpha_in_red_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)`
|
||||
- `feature::Format`: `crates/metal2vulkan/src/bind/heap.rs (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs (extended_sampler)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (require_filter_features)`; `crates/metal2vulkan/src/bind/sample_interleave.rs (finish)`; `crates/metal2vulkan/src/lower/access/tile.rs (storage_format)`; `crates/metal2vulkan/src/lower/fragment/color.rs (select_param, 5 sites)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_extended)`; `crates/metal2vulkan/src/lower/sampler/select.rs (texel_in)`; `crates/metal2vulkan/src/lower/stage_io/extended_color.rs (plan, 2 sites)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (entry)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (zeroed_output)`; `crates/metal2vulkan/src/lower/stage_io/word_color.rs (plan)`; `crates/metal2vulkan/src/lower/texture/mod.rs (cross_class)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_image)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_read_as, 2 sites)`; `crates/metal2vulkan/src/lower/texture/mod.rs (select_write)`; `crates/metal2vulkan/src/lower/texture/slot.rs (atomic_format, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (declare_slot, 2 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (storage_format, 5 sites)`; `crates/metal2vulkan/src/lower/texture/slot.rs (ulong_format, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (candidates)`; `crates/metal2vulkan/src/metal/format/mod.rs (held_storage_choice, 3 sites)`; `crates/metal2vulkan/src/metal/format/mod.rs (storage_choice)`; `crates/metal2vulkan/src/metal/format/mod.rs (vk_format, 2 sites)`; `crates/metal2vulkan/src/metal/vertex.rs (fetch_as, 2 sites)`; `crates/metal2vulkan/src/pipeline/color_writes.rs (rotated_blend_in_shader)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (extended_write_mask, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (graphics_state, 3 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (reads_alpha_to_coverage, 2 sites)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (textured_fetches)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (alpha_in_red_blend)`; `crates/metal2vulkan/src/pipeline/rotated_blend.rs (rotated_blend)`
|
||||
- `feature::DivergentImplicitLod`: `crates/metal2vulkan/src/lower/sampler/select.rs (tangled)`
|
||||
- `feature::ImplicitLodOutsideFragment`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (query_min_level)`; `crates/metal2vulkan/src/lower/sampler/select.rs (query_level_measured)`; `crates/metal2vulkan/src/lower/sampler/select.rs (query_min_level)`
|
||||
- `feature::MinLodClamp`: `crates/metal2vulkan/src/lower/sampler/select.rs (min_lod)`; `crates/metal2vulkan/src/lower/sampler/select.rs (select_one)`
|
||||
@@ -442,7 +441,7 @@ Each refusal's sites, with the function that builds it.
|
||||
- `feature::PixelSamplerCompare`: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (lowered)`
|
||||
- `feature::TexelBuffer`: `crates/metal2vulkan/src/bind/instantiate.rs (texel_ranges, 2 sites)`; `crates/metal2vulkan/src/bind/plan/resources.rs (plain_texture)`
|
||||
- `feature::RasterOrderGroups`: `crates/metal2vulkan/src/device/metal.rs (unsupported_features)`; `crates/metal2vulkan/src/lower/fragment/rog.rs (mode, 2 sites)`
|
||||
- `feature::FramebufferFetch`: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (unorm8, 3 sites)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (plan_sample)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (unordered_extended_fetch)`
|
||||
- `feature::FramebufferFetch`: `crates/metal2vulkan/src/lower/fragment/fetch.rs (computed_write_refused)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (plan_sample)`
|
||||
- `feature::PrimitiveId`: `crates/metal2vulkan/src/lower/stage_io/plan.rs (finish)`; `crates/metal2vulkan/src/pipeline/link/varyings.rs (check_primitive_id)`
|
||||
- `feature::PrivatePrimitives`: `crates/metal2vulkan/src/lower/stage_io/plan.rs (indices_feature)`
|
||||
- `feature::VertexAmplification`: `crates/metal2vulkan/src/bind/graphics.rs (multiview_instances)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (index_store)`; `crates/metal2vulkan/src/lower/tessellation/mod.rs (select_param)`; `crates/metal2vulkan/src/pipeline/link/graphics.rs (vertex_amplification)`; `crates/metal2vulkan/src/pipeline/link/tessellation/mod.rs (control_plan)`
|
||||
@@ -500,7 +499,6 @@ Each refusal's sites, with the function that builds it.
|
||||
- `feature::IndirectRenderState`: `crates/metal2vulkan/src/lower/access/pointer.rs (unlowered)`; `crates/metal2vulkan/src/lower/select.rs (param_family)`
|
||||
- `feature::GlobalBuiltinInFragment`: `crates/metal2vulkan/src/lower/select.rs (route_air)`
|
||||
- `feature::PrivateRenderState`: `crates/metal2vulkan/src/bind/heap.rs (array)`; `crates/metal2vulkan/src/bind/plan/resources.rs (write_rounding)`; `crates/metal2vulkan/src/lower/sampler/select.rs (clamps_reference)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (alpha_test_refused)`; `crates/metal2vulkan/src/lower/texture/mod.rs (mode_rounded_write)`; `crates/metal2vulkan/src/pipeline/private_state.rs (logic_operation)`; `crates/metal2vulkan/src/pipeline/private_state.rs (refused)`
|
||||
- `feature::ExtendedRangeBlend`: `crates/metal2vulkan/src/lower/arith/extended_range/blend.rs (refused)`; `crates/metal2vulkan/src/lower/fragment/fetch.rs (extended_range_output)`
|
||||
- `feature::ProgramScopeBinding`: `crates/metal2vulkan-air/src/abi/module.rs (decode)`; `crates/metal2vulkan/src/error/mod.rs (from)`
|
||||
- `feature::GenericPointer`: `crates/metal2vulkan-air/src/canon/generic.rs (refuse)`; `crates/metal2vulkan-air/src/canon/generic.rs (refused)`
|
||||
- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst)`
|
||||
|
||||
Reference in new issue
Block a user