Translator and runtime: the interface items no path makes since the resident core went are deleted
0ce2f39b71deleted the resident core: every device compiles the identity domains, which read a texture's presence, out-of-bounds alpha, swizzle, border texels and level count, and a sampler's state, from the resource ID's words. The interface items the resident core stated for them stayed, with nothing left that makes them: - SpecKey's Presence, OutOfBoundsAlpha, TextureSwizzle, OffsetBaseAxes, NearestPixelSampler and BorderTexels: no lowering declares them. - RuntimeFact's ResourcePresence, OutOfBoundsAlpha, StorageTextureLevels, StorageTextureLevelViews, OpenClLineTexture and BorderTexels: no plan states them. - PushField::ControlPointIndexOffset: no plan places it. identity_pushes (lower/select.rs) named it on its false side; that arm goes, and lower/push.rs's shape arm with it. - PrecisionNote::F16IntConvDoubleRounding (metal2vulkan-degrade-f16-int-conv-double-rounding): no lowering records it. Its catalogue entry in docs/API.md goes, with the conformance crate's Degradation and the validation comparison's allowance and reach arms. - Feature's LocalSize, TexelBuffer and GroupCount: no site constructs them (docs/REFUSALS.md listed each with no site). Their reach.tsv rows go. - CombinedSampler's unnormalized field, with_unnormalized, heap_index and from_heap_index: the field was set only from lower::sampler's BindingKey::unnormalized, which no selection sets (none picks PixelPosition::Unnormalized or UnnormalizedTexel) and finish() refuses as an invariant, and the two index methods had no caller. sampler_use() now makes the use from the comparison and the texel class alone. The runtime's DrawInputCause::UnnormalizedSampler and its two checks (a constexpr sampler of a draw or dispatch with the field set) go with it. The device sampler of unnormalized coordinates stays: SamplerUse::unnormalized, vk_sampler's unnormalized form and SamplerDesc::unnormalized are what the runtime's linear pixel samplers' twins are made with. Tests: device/tests/mechanism.rs covers the 56 facts left; the assertions that a plan states none of the deleted facts, and the spec values set for deleted keys, go; engine_spec_bits labels its constant SamplerMinLevel; cache/tests.rs's round trip of OffsetBaseAxes goes; api_tests.rs's SpecializationLayout round trip names SamplerMinLevel. The consumer names none of them: in reims at 7d016acc9c, and at 8f3ca9df99, git grep finds 0 hits each for unnormalized, Unnormalized, heap_index, F16IntConvDoubleRounding, f16-int-conv-double-rounding, LocalSize, GroupCount, SpecKey::, RuntimeFact::, PushField::, ControlPointIndexOffset, NearestPixelSampler, OffsetBaseAxes, ResourcePresence, StorageTextureLevel, OpenClLineTexture, BorderTexels and OutOfBoundsAlpha. TexelBuffer's 2 hits are maxTexelBufferElements and the runtime's TexelBufferTooLarge, DrawInputCause's 1 is DrawInputCause::Slot, Feature::'s 10 are other variants and another crate's Feature, and TextureSwizzle's 66 are Metal's MTLTextureSwizzle. ARTIFACT_FORMAT_VERSION 612 -> 613 (renumbered at landing): the codec's lists are positional, and SpecKey, PushField, RuntimeFact, PrecisionNote and CombinedSampler lose members. SEMANTICS_VERSION stays: nothing that compiles changes. runtime-sources.sha256 moves without a RUNTIME_VERSION bump: device/mechanism.rs loses the arms of the deleted facts, which no run reached. docs/REFUSALS.md and the signature table are regenerated; the metal and conformance coverage docs regenerate unchanged. Verified, on the CPU with no device: - m3-max-86143, at this commit: clippy (plain, all targets and features) passes; the mechanism, spec-bits, round-trip and texture-level tests ran 64 tests, all passed, 2,571 skipped. - m3-max-86179, at the series' tip (the two cleanup commits and the README line): fmt, the refusal surface's, the signatures', both coverage docs' and scripts/api-docs' checks, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd), Rustdoc, private docs (metal2vulkan and metal2vulkan-runtime) and doctests pass. The metal2vulkan suites ran 3,492 tests: 3,491 passed, 24 skipped, and the failure is golden_hashes_match_the_table, which fails at the base too (a bless due at the next pin). Validation ran 1,343 tests, all passed, 2 skipped; conformance ran 1,061, all passed. - m3-max-86194 and m3-max-86213, at the tip and at its basedb7bedc60d: the golden table's changed lines are the same 5,114 at both, line for line, so no cell moves.
This commit is contained in:
1 parent
db7bedc60d
commit
27a6c1ebd3
31 files changed
+53
-374
No files matched your search
@@ -32,8 +32,6 @@ pub enum Degradation {
|
||||
DepthDenormals,
|
||||
/// [`PrecisionNote::F16FmaDoubleRounding`].
|
||||
F16FmaDoubleRounding,
|
||||
/// [`PrecisionNote::F16IntConvDoubleRounding`].
|
||||
F16IntConvDoubleRounding,
|
||||
/// [`PrecisionNote::GradFromBias`].
|
||||
GradFromBias,
|
||||
/// [`PrecisionNote::DeviceTranscendentals`].
|
||||
@@ -193,7 +191,6 @@ impl Degradation {
|
||||
Degradation::CompressedTexelDecode,
|
||||
Degradation::DepthDenormals,
|
||||
Degradation::F16FmaDoubleRounding,
|
||||
Degradation::F16IntConvDoubleRounding,
|
||||
Degradation::GradFromBias,
|
||||
Degradation::DeviceTranscendentals,
|
||||
Degradation::ReductionOrder,
|
||||
@@ -287,7 +284,6 @@ impl Degradation {
|
||||
Degradation::CompressedTexelDecode => PrecisionNote::CompressedTexelDecode,
|
||||
Degradation::DepthDenormals => PrecisionNote::DepthDenormals,
|
||||
Degradation::F16FmaDoubleRounding => PrecisionNote::F16FmaDoubleRounding,
|
||||
Degradation::F16IntConvDoubleRounding => PrecisionNote::F16IntConvDoubleRounding,
|
||||
Degradation::GradFromBias => PrecisionNote::GradFromBias,
|
||||
Degradation::DeviceTranscendentals => PrecisionNote::DeviceTranscendentals,
|
||||
Degradation::ReductionOrder => PrecisionNote::ReductionOrder,
|
||||
@@ -369,7 +365,6 @@ impl Degradation {
|
||||
pub const fn from_precision_note(note: PrecisionNote) -> Degradation {
|
||||
match note {
|
||||
PrecisionNote::F16FmaDoubleRounding => Degradation::F16FmaDoubleRounding,
|
||||
PrecisionNote::F16IntConvDoubleRounding => Degradation::F16IntConvDoubleRounding,
|
||||
PrecisionNote::GradFromBias => Degradation::GradFromBias,
|
||||
PrecisionNote::DeviceTranscendentals => Degradation::DeviceTranscendentals,
|
||||
PrecisionNote::ReductionOrder => Degradation::ReductionOrder,
|
||||
|
||||
@@ -1963,9 +1963,6 @@ pub enum DrawInputCause {
|
||||
/// one whose use the translator states no device sampler for. Metal's counterpart is the
|
||||
/// sampler the function's source declares.
|
||||
ConstexprSampler,
|
||||
/// A `constexpr sampler` of unnormalized coordinates (`coord::pixel`). Metal's counterpart is
|
||||
/// the sampler the function's source declares.
|
||||
UnnormalizedSampler,
|
||||
/// A function's parameter block longer than one chunk of the runtime's parameter ring
|
||||
/// (64 KiB). Metal's counterpart is the function's arguments, which Metal binds however many
|
||||
/// there are.
|
||||
|
||||
@@ -1992,9 +1992,6 @@ pub(crate) fn interface(
|
||||
.iter()
|
||||
.position(|&numbered| numbered == NumberedSampler::Constexpr(words))
|
||||
.ok_or(KernelInputKind::ConstexprSampler)?;
|
||||
if sampler.unnormalized {
|
||||
return Err(KernelInputKind::ConstexprSampler);
|
||||
}
|
||||
constexprs.push((at, sampler));
|
||||
FieldValue::ConstexprSampler(at)
|
||||
}
|
||||
|
||||
@@ -1107,9 +1107,6 @@ fn draws(
|
||||
.position(|&n| n == NumberedSampler::Constexpr(words))
|
||||
.ok_or_else(|| draw_input(DrawInputCause::ConstexprSampler))?
|
||||
+ first;
|
||||
if sampler.unnormalized {
|
||||
return Err(draw_input(DrawInputCause::UnnormalizedSampler));
|
||||
}
|
||||
constexprs.push((place, sampler));
|
||||
FieldValue::ConstexprSampler(place)
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
986bcbfd0cb49e9112466f201ba5a88a91d62af519a913609afbd561954e94ef
|
||||
37e49e9dfc20120c254fc8ba13788ad0bb51721c8ce9e5c9249f9bf42d3cf713
|
||||
@@ -162,9 +162,9 @@ impl UlpTable {
|
||||
|
||||
/// The class derivation table: what each precision note allows.
|
||||
///
|
||||
/// - `F16FmaDoubleRounding`, `F16IntConvDoubleRounding`: rounding the exact result to `f32` and
|
||||
/// then to `half` lands on one of the two `half` values around it, as correct rounding does, so
|
||||
/// the two differ by at most one `half` ulp.
|
||||
/// - `F16FmaDoubleRounding`: rounding the exact result to `f32` and then to `half` lands on one of
|
||||
/// the two `half` values around it, as correct rounding does, so the two differ by at most one
|
||||
/// `half` ulp.
|
||||
/// - `ReductionOrder`: [`Allowance::Reduction`].
|
||||
/// - `DeviceRayIntersection`: unbounded until Metal readings bound the device-computed hit
|
||||
/// distance and barycentrics and settle the translation's conventions; a miss, a culled ray, or a
|
||||
@@ -319,9 +319,7 @@ impl UlpTable {
|
||||
pub fn allowance(note: PrecisionNote) -> Allowance {
|
||||
use PrecisionNote as N;
|
||||
match note {
|
||||
N::F16FmaDoubleRounding | N::F16IntConvDoubleRounding => {
|
||||
Allowance::Lanes(UlpTable::half(LaneTolerance { ulps: 1 }))
|
||||
}
|
||||
N::F16FmaDoubleRounding => Allowance::Lanes(UlpTable::half(LaneTolerance { ulps: 1 })),
|
||||
N::ReductionOrder => Allowance::Reduction,
|
||||
N::DeviceDenormals => Allowance::DenormalBoundary,
|
||||
N::NativeNanEncoding => Allowance::BothNan,
|
||||
|
||||
@@ -25,10 +25,6 @@ fn every_precision_note_has_its_table_row() {
|
||||
N::F16FmaDoubleRounding,
|
||||
Allowance::Lanes(half_table(HALF_ONE_ULP)),
|
||||
),
|
||||
(
|
||||
N::F16IntConvDoubleRounding,
|
||||
Allowance::Lanes(half_table(HALF_ONE_ULP)),
|
||||
),
|
||||
(N::ReductionOrder, Allowance::Reduction),
|
||||
(N::GradFromBias, Allowance::Unbounded),
|
||||
(N::DeviceTranscendentals, Allowance::Unbounded),
|
||||
@@ -112,7 +108,6 @@ fn only_the_environment_notes_are_told_value_by_value() {
|
||||
}
|
||||
for note in [
|
||||
N::F16FmaDoubleRounding,
|
||||
N::F16IntConvDoubleRounding,
|
||||
N::ReductionOrder,
|
||||
N::GradFromBias,
|
||||
N::DeviceTranscendentals,
|
||||
@@ -145,7 +140,7 @@ fn the_class_is_derived_from_the_notes_and_the_census() {
|
||||
);
|
||||
// Lane allowances widen one table.
|
||||
assert_eq!(
|
||||
class(&[N::F16FmaDoubleRounding, N::F16IntConvDoubleRounding], &[]),
|
||||
class(&[N::F16FmaDoubleRounding], &[]),
|
||||
ComparisonClass::UlpBounded(half_table(HALF_ONE_ULP))
|
||||
);
|
||||
// A float sum bounds the lanes of its own format by the widest sum of that format the
|
||||
|
||||
@@ -248,7 +248,7 @@ pub fn reach(note: PrecisionNote) -> Reach {
|
||||
let families = |families: &[Family]| Reach::Families(Families::of(families));
|
||||
match note {
|
||||
N::F16FmaDoubleRounding | N::NativeFma => families(&[F::Fma]),
|
||||
N::F16IntConvDoubleRounding | N::Fp8Value => families(&[F::FloatArithmetic]),
|
||||
N::Fp8Value => families(&[F::FloatArithmetic]),
|
||||
N::NativeDivision => families(&[F::Division]),
|
||||
N::NativeDot => families(&[F::Dot]),
|
||||
N::NativeMix => families(&[F::Mix]),
|
||||
|
||||
+8
-15
@@ -825,7 +825,7 @@ codec_struct! {
|
||||
codec_struct! {
|
||||
SlotRef { stage, class, index }
|
||||
ImageHandleClass { dim, arrayed, multisampled, sampled_type, depth_compare, access, format }
|
||||
CombinedSampler { sampler, compare, integer, unnormalized }
|
||||
CombinedSampler { sampler, compare, integer }
|
||||
ResourceSlot { stage, kind, index }
|
||||
}
|
||||
|
||||
@@ -849,14 +849,12 @@ codec_enum! {
|
||||
AccelerationStructureLevel { Primitive, Instance }
|
||||
SamplerRef { Slot(f0), Constexpr(f0) }
|
||||
SpecKey {
|
||||
LocalSize(f0), FlatLocalSize, MultiRegion, TgLength(f0), Presence(f0), SampleCount,
|
||||
LocalSize(f0), FlatLocalSize, MultiRegion, TgLength(f0), SampleCount,
|
||||
AmplificationCount, ImageblockWidth, ImageblockHeight,
|
||||
RenderAreaWidth, RenderAreaHeight, OutOfBoundsAlpha(f0), TgOffset(f0),
|
||||
TileThreadgroupLength, TileGridWidth, TextureSwizzle(f0),
|
||||
RenderAreaWidth, RenderAreaHeight, TgOffset(f0),
|
||||
TileThreadgroupLength, TileGridWidth,
|
||||
ObjectLocalSize(f0), ObjectFlatLocalSize, ObjectMultiRegion, SamplerMinLevel(f0),
|
||||
OffsetBaseAxes(f0),
|
||||
NearestPixelSampler(f0),
|
||||
BorderTexels(f0), DeepThreadgroup,
|
||||
DeepThreadgroup,
|
||||
WorkgroupSize(f0), TexelBufferWords { stage, handles },
|
||||
}
|
||||
PushField {
|
||||
@@ -865,7 +863,7 @@ codec_enum! {
|
||||
TessellationFactorOffset, TessellationFactorInstanceStride, TessellationFactorScale,
|
||||
TextureLevels(f0), InstanceCount(f0), ReplayRegionAddress,
|
||||
ViewportCount, RenderTargetArrayLength,
|
||||
PatchIndexOffset, PatchIndexBound, ControlPointIndexOffset, StageInStride(f0),
|
||||
PatchIndexOffset, PatchIndexBound, StageInStride(f0),
|
||||
AmplificationId, AmplificationLayerOffset, AmplificationViewportOffset,
|
||||
DepthClampRange,
|
||||
CaptureLayout,
|
||||
@@ -1198,7 +1196,7 @@ codec_enum! {
|
||||
RuntimeFact {
|
||||
ThreadsPerThreadgroup, ThreadgroupMemoryLength { index },
|
||||
LocalSizeConstraint { multiple }, LocalSizeLimits, DispatchGrid, IndirectGroupCount,
|
||||
ResourcePresence { slot }, SampleCount, ImageViewShape { slot },
|
||||
SampleCount, ImageViewShape { slot },
|
||||
VertexFetch { attr }, VertexBufferStride { layout }, BaseVertexInstance,
|
||||
DeviceAddresses { slot }, FramebufferFetch { color },
|
||||
SimdgroupEmulation { bytes_per_simdgroup, arena }, AmplificationCount,
|
||||
@@ -1208,15 +1206,11 @@ codec_enum! {
|
||||
StageInStride { layout },
|
||||
TileFunction, TileAttachmentFormat { color, format },
|
||||
StorageTextureNumericType { slot },
|
||||
OutOfBoundsAlpha { slot },
|
||||
StorageTextureLevels { slot },
|
||||
StorageTextureLevelViews { slot },
|
||||
AccelerationStructureInstanceCount { slot },
|
||||
PredicationVote, ViewportCount,
|
||||
AliasedImageblock { data_size },
|
||||
CallStackDepth { depth },
|
||||
OpenClMode,
|
||||
OpenClLineTexture { slot },
|
||||
FlatGrid,
|
||||
CallThreadgroups,
|
||||
TileThreadgroupMemory { index },
|
||||
@@ -1236,7 +1230,6 @@ codec_enum! {
|
||||
QuadPrimitiveIds,
|
||||
PrivateList,
|
||||
PartialObjectThreadgroups,
|
||||
BorderTexels { slot },
|
||||
RegionViewports,
|
||||
PartialThreadgroups,
|
||||
AddressAlignment { slot, align },
|
||||
@@ -1349,7 +1342,7 @@ codec_enum! {
|
||||
SlotWriteGap { UnresolvedIndex, UnmeasuredPayloadStage, MemberRole }
|
||||
BandPrimitive { Lines, Triangles }
|
||||
PrecisionNote {
|
||||
F16FmaDoubleRounding, F16IntConvDoubleRounding, GradFromBias,
|
||||
F16FmaDoubleRounding, GradFromBias,
|
||||
DeviceTranscendentals, ReductionOrder, DeviceDenormals,
|
||||
PixelSamplerScaling, DeviceArithmetic, DeviceSignedZeroInfNan, DeviceRayIntersection,
|
||||
FastMathRewrites,
|
||||
|
||||
Vendored
+1
-1
@@ -70,7 +70,7 @@ pub const SEMANTICS_VERSION: u32 = 2378;
|
||||
/// re-typed in an encoded type, its `codec` body or its `envelope`. A variant removed while its tag
|
||||
/// stays unused needs no bump: an entry holding it fails to decode, which is a miss. The commit that
|
||||
/// bumps it says what changed; this comment keeps no history.
|
||||
pub const ARTIFACT_FORMAT_VERSION: u32 = 612;
|
||||
pub const ARTIFACT_FORMAT_VERSION: u32 = 613;
|
||||
|
||||
/// The version of what this crate gives a runtime for the runs of a compiled pipeline, beside the
|
||||
/// compile: the device a run opens and what it enables, the Vulkan and Metal vocabularies a runtime
|
||||
|
||||
-15
@@ -617,21 +617,6 @@ fn the_version_253_members_round_trip() {
|
||||
assert_eq!(decode::<SpecKey>(&encode(&key)), Ok(key));
|
||||
}
|
||||
|
||||
/// The member format version 374 appends encodes and decodes as itself: the axes on which a texture
|
||||
/// slot's bound view's parent's base-level size, which Metal's texel-offset rule reads, is not a
|
||||
/// power of two where the view's own is.
|
||||
#[test]
|
||||
fn the_version_374_member_round_trips() {
|
||||
use crate::pipeline::sym::SpecKey;
|
||||
let slot = SlotRef {
|
||||
stage: Stage::Kernel,
|
||||
class: SlotClass::Texture,
|
||||
index: 4,
|
||||
};
|
||||
let key = SpecKey::OffsetBaseAxes(slot);
|
||||
assert_eq!(decode::<SpecKey>(&encode(&key)), Ok(key));
|
||||
}
|
||||
|
||||
/// The member format version 535 appends encodes and decodes as itself: a kernel's image-only
|
||||
/// fact.
|
||||
#[test]
|
||||
|
||||
@@ -19,7 +19,6 @@ pub fn mechanism(fact: &RuntimeFact, profile: &DeviceProfile) -> Mechanism {
|
||||
RuntimeFact::DispatchGrid => Mechanism::RegionSelected,
|
||||
// GPU-written group counts are read where Metal wrote them.
|
||||
RuntimeFact::IndirectGroupCount => Mechanism::None,
|
||||
RuntimeFact::ResourcePresence { .. } => Mechanism::Specialization,
|
||||
RuntimeFact::SampleCount => Mechanism::Specialization,
|
||||
// Keyed by a per-slot StorageImageChoice, a separate per-function compile.
|
||||
RuntimeFact::StorageTextureNumericType { .. } => Mechanism::Variant,
|
||||
@@ -61,13 +60,6 @@ pub fn mechanism(fact: &RuntimeFact, profile: &DeviceProfile) -> Mechanism {
|
||||
RuntimeFact::TileFunction => Mechanism::Specialization,
|
||||
// Compiled in under the function's key; the tile pipeline checks its descriptor.
|
||||
RuntimeFact::TileAttachmentFormat { .. } => Mechanism::KeyProjection,
|
||||
// The binder specializes the alpha from the bound texture's pixel format.
|
||||
RuntimeFact::OutOfBoundsAlpha { .. } => Mechanism::Specialization,
|
||||
RuntimeFact::BorderTexels { .. } => Mechanism::Specialization,
|
||||
// The binder writes the bound texture's level count per draw or dispatch.
|
||||
RuntimeFact::StorageTextureLevels { .. } => Mechanism::PushConstant,
|
||||
// The binder views each level of the bound texture at its element.
|
||||
RuntimeFact::StorageTextureLevelViews { .. } => Mechanism::BinderView,
|
||||
// The binder writes the bound structure's instance count per dispatch or draw.
|
||||
RuntimeFact::AccelerationStructureInstanceCount { .. } => Mechanism::PushConstant,
|
||||
// The vote word is fixed in the module; the planner counts it against the limit.
|
||||
@@ -83,8 +75,6 @@ pub fn mechanism(fact: &RuntimeFact, profile: &DeviceProfile) -> Mechanism {
|
||||
// The mode a kernel was compiled in: the compile layer checks it against the pipeline's;
|
||||
// nothing on the device reads it.
|
||||
RuntimeFact::OpenClMode => Mechanism::None,
|
||||
// Keyed by the slots of a kernel's 1D images bound to a 1D texture, which it reads so.
|
||||
RuntimeFact::OpenClLineTexture { .. } => Mechanism::Variant,
|
||||
// A pipeline compiled under the flat-grid variant; its plans state it.
|
||||
RuntimeFact::FlatGrid => Mechanism::Variant,
|
||||
RuntimeFact::CallThreadgroups => Mechanism::Variant,
|
||||
|
||||
@@ -19,7 +19,6 @@ fn every_fact() -> Vec<RuntimeFact> {
|
||||
RuntimeFact::LocalSizeLimits,
|
||||
RuntimeFact::DispatchGrid,
|
||||
RuntimeFact::IndirectGroupCount,
|
||||
RuntimeFact::ResourcePresence { slot },
|
||||
RuntimeFact::SampleCount,
|
||||
RuntimeFact::ImageViewShape { slot },
|
||||
RuntimeFact::VertexFetch { attr: 1 },
|
||||
@@ -48,17 +47,12 @@ fn every_fact() -> Vec<RuntimeFact> {
|
||||
format: crate::metal::PixelFormat::R32Float,
|
||||
},
|
||||
RuntimeFact::StorageTextureNumericType { slot },
|
||||
RuntimeFact::OutOfBoundsAlpha { slot },
|
||||
RuntimeFact::BorderTexels { slot },
|
||||
RuntimeFact::StorageTextureLevels { slot },
|
||||
RuntimeFact::StorageTextureLevelViews { slot },
|
||||
RuntimeFact::AccelerationStructureInstanceCount { slot },
|
||||
RuntimeFact::PredicationVote,
|
||||
RuntimeFact::ViewportCount,
|
||||
RuntimeFact::AliasedImageblock { data_size: 24 },
|
||||
RuntimeFact::CallStackDepth { depth: 8 },
|
||||
RuntimeFact::OpenClMode,
|
||||
RuntimeFact::OpenClLineTexture { slot },
|
||||
RuntimeFact::AddressAlignment { slot, align: 16 },
|
||||
RuntimeFact::FlatGrid,
|
||||
RuntimeFact::CallThreadgroups,
|
||||
@@ -115,7 +109,6 @@ fn variant(f: &RuntimeFact) -> usize {
|
||||
RuntimeFact::LocalSizeLimits => 3,
|
||||
RuntimeFact::DispatchGrid => 4,
|
||||
RuntimeFact::IndirectGroupCount => 5,
|
||||
RuntimeFact::ResourcePresence { .. } => 6,
|
||||
RuntimeFact::SampleCount => 7,
|
||||
RuntimeFact::ImageViewShape { .. } => 8,
|
||||
RuntimeFact::VertexFetch { .. } => 9,
|
||||
@@ -134,9 +127,6 @@ fn variant(f: &RuntimeFact) -> usize {
|
||||
RuntimeFact::TileFunction => 22,
|
||||
RuntimeFact::TileAttachmentFormat { .. } => 23,
|
||||
RuntimeFact::StorageTextureNumericType { .. } => 24,
|
||||
RuntimeFact::OutOfBoundsAlpha { .. } => 25,
|
||||
RuntimeFact::StorageTextureLevels { .. } => 26,
|
||||
RuntimeFact::StorageTextureLevelViews { .. } => 27,
|
||||
RuntimeFact::AccelerationStructureInstanceCount { .. } => 28,
|
||||
RuntimeFact::PredicationVote => 29,
|
||||
RuntimeFact::ViewportCount => 30,
|
||||
@@ -151,21 +141,19 @@ fn variant(f: &RuntimeFact) -> usize {
|
||||
RuntimeFact::ZeroedColor { .. } => 41,
|
||||
RuntimeFact::DroppedColor { .. } => 42,
|
||||
RuntimeFact::DepthClampRange => 43,
|
||||
RuntimeFact::DepthRangeFold => 61,
|
||||
RuntimeFact::DepthRangeFold => 6,
|
||||
RuntimeFact::FunctionTableRange { .. } => 44,
|
||||
RuntimeFact::TileThreadgroup { .. } => 46,
|
||||
RuntimeFact::ObjectThreadgroupArena { .. } => 54,
|
||||
RuntimeFact::ReplayBindings => 57,
|
||||
RuntimeFact::ReplayBindings => 45,
|
||||
RuntimeFact::MergedDraws => 48,
|
||||
RuntimeFact::QuadPrimitiveIds => 40,
|
||||
RuntimeFact::RotatedWeights => 53,
|
||||
RuntimeFact::PrivateList => 55,
|
||||
RuntimeFact::PartialObjectThreadgroups => 58,
|
||||
RuntimeFact::OpenClMode => 60,
|
||||
RuntimeFact::BorderTexels { .. } => 45,
|
||||
RuntimeFact::CallThreadgroups => 59,
|
||||
RuntimeFact::PartialThreadgroups => 56,
|
||||
RuntimeFact::OpenClLineTexture { .. } => 49,
|
||||
RuntimeFact::PartialObjectThreadgroups => 27,
|
||||
RuntimeFact::OpenClMode => 25,
|
||||
RuntimeFact::CallThreadgroups => 26,
|
||||
RuntimeFact::PartialThreadgroups => 49,
|
||||
RuntimeFact::AddressAlignment { .. } => 47,
|
||||
RuntimeFact::GridTiles => 38,
|
||||
RuntimeFact::PrivateArena { .. } => 50,
|
||||
@@ -178,7 +166,7 @@ fn variant(f: &RuntimeFact) -> usize {
|
||||
fn mechanism_is_total_over_every_fact_and_profile() {
|
||||
let facts = every_fact();
|
||||
let covered: std::collections::BTreeSet<usize> = facts.iter().map(variant).collect();
|
||||
assert_eq!(covered, (0..62).collect(), "every_fact misses a variant");
|
||||
assert_eq!(covered, (0..56).collect(), "every_fact misses a variant");
|
||||
for (stem, _) in super::committed_profiles() {
|
||||
let dev = device(&stem);
|
||||
let p = dev.profile();
|
||||
@@ -190,13 +178,10 @@ fn mechanism_is_total_over_every_fact_and_profile() {
|
||||
let expected = match fact {
|
||||
RuntimeFact::ThreadsPerThreadgroup
|
||||
| RuntimeFact::ThreadgroupMemoryLength { .. }
|
||||
| RuntimeFact::ResourcePresence { .. }
|
||||
| RuntimeFact::SampleCount
|
||||
| RuntimeFact::AmplificationCount
|
||||
| RuntimeFact::ImageblockSize { .. }
|
||||
| RuntimeFact::TileFunction
|
||||
| RuntimeFact::OutOfBoundsAlpha { .. }
|
||||
| RuntimeFact::BorderTexels { .. }
|
||||
| RuntimeFact::TileThreadgroupMemory { .. }
|
||||
| RuntimeFact::TextureSwizzle { .. } => Mechanism::Specialization,
|
||||
RuntimeFact::LocalSizeConstraint { .. }
|
||||
@@ -224,14 +209,12 @@ fn mechanism_is_total_over_every_fact_and_profile() {
|
||||
| RuntimeFact::QuadPrimitiveIds
|
||||
| RuntimeFact::PrivateList
|
||||
| RuntimeFact::RegionViewports
|
||||
| RuntimeFact::OpenClLineTexture { .. }
|
||||
| RuntimeFact::ZeroedColor { .. }
|
||||
| RuntimeFact::DroppedColor { .. }
|
||||
| RuntimeFact::DepthClampRange
|
||||
| RuntimeFact::DepthRangeFold
|
||||
| RuntimeFact::RotatedWeights => Mechanism::Variant,
|
||||
RuntimeFact::ImageViewShape { .. }
|
||||
| RuntimeFact::StorageTextureLevelViews { .. } => Mechanism::BinderView,
|
||||
RuntimeFact::ImageViewShape { .. } => Mechanism::BinderView,
|
||||
RuntimeFact::VertexFetch { .. } | RuntimeFact::TileAttachmentFormat { .. } => {
|
||||
Mechanism::KeyProjection
|
||||
}
|
||||
@@ -255,7 +238,6 @@ fn mechanism_is_total_over_every_fact_and_profile() {
|
||||
}
|
||||
RuntimeFact::StageInRegion
|
||||
| RuntimeFact::StageInStride { .. }
|
||||
| RuntimeFact::StorageTextureLevels { .. }
|
||||
| RuntimeFact::AccelerationStructureInstanceCount { .. }
|
||||
| RuntimeFact::ViewportCount
|
||||
| RuntimeFact::PrivateArena { .. }
|
||||
|
||||
@@ -56,7 +56,7 @@ use crate::air::error::{MissingInput, RequestError};
|
||||
use crate::device::requirements::{
|
||||
ApiVersion, FormatUsage, VkExtension, VkFeature, VkLimit, VkProperty,
|
||||
};
|
||||
use crate::pipeline::sym::{Axis, SlotRef, SpecKey, Stage};
|
||||
use crate::pipeline::sym::{SlotRef, SpecKey, Stage};
|
||||
use crate::vk;
|
||||
|
||||
/// Why a translation or compile did not produce output.
|
||||
@@ -600,10 +600,6 @@ pub enum Feature {
|
||||
// ---- Control flow and simdgroups ----
|
||||
/// Simdgroup width 32 is not achievable for this usage, stage, and device.
|
||||
SimdWidth,
|
||||
/// A local size beyond a device limit on this axis (`None`: the total).
|
||||
LocalSize {
|
||||
axis: Option<Axis>,
|
||||
},
|
||||
/// A kernel's partial-threadgroups variant (`LoweringInputs::partial_threadgroups`) that the
|
||||
/// lowering cannot make, its cause named (`PartialThreadgroupsCause`): a tile function, one
|
||||
/// with compute derivatives, a body whose uniform barriers need a vote word that the stage's workgroup memory cannot hold beside its
|
||||
@@ -693,8 +689,6 @@ pub enum Feature {
|
||||
/// rejects ("invalid values combination in sampler initialization"), so no AIR Metal's
|
||||
/// toolchain writes carries one and Metal gives it no answer.
|
||||
PixelSamplerCompare,
|
||||
/// Texture buffers beyond the device's texel-buffer limits.
|
||||
TexelBuffer,
|
||||
|
||||
// ---- Stages and fragment (lowering B7, B9) ----
|
||||
/// Raster order groups without fragment shader interlock.
|
||||
@@ -866,12 +860,6 @@ pub enum Feature {
|
||||
/// anisotropy; at bind time, a bound pixel format of no measured family. Every other bicubic
|
||||
/// sample is Metal's measured filter emulated by fetches (`lower::sampler::bicubic`).
|
||||
SamplerBicubicFilter,
|
||||
/// A dispatch whose threadgroup count on `axis` exceeds `maxComputeWorkGroupCount` by more
|
||||
/// than the binder splits into regions (`None`: the indirect arguments' offset), or whose grid does not
|
||||
/// fit Metal's 32-bit `threads_per_grid`.
|
||||
GroupCount {
|
||||
axis: Option<Axis>,
|
||||
},
|
||||
/// A ray intersection through intersection functions: an `intersect` call with a non-null
|
||||
/// intersection function table or an intersection function buffer, whose candidates Metal
|
||||
/// hands to the table's functions.
|
||||
|
||||
@@ -231,8 +231,7 @@ pub const fn shape(f: PushField) -> FieldShape {
|
||||
| PushField::TessellationFactorInstanceStride
|
||||
| PushField::TessellationFactorScale
|
||||
| PushField::PatchIndexOffset
|
||||
| PushField::PatchIndexBound
|
||||
| PushField::ControlPointIndexOffset => FieldShape::U32,
|
||||
| PushField::PatchIndexBound => FieldShape::U32,
|
||||
// A band's viewport half extent and half width, four `f32`s.
|
||||
PushField::LineBand => FieldShape::UVec4Array(1),
|
||||
// The floor's tail word, pushed zero.
|
||||
|
||||
@@ -1108,8 +1108,7 @@ pub fn finish(cx: &mut SelectCx<'_>) -> Result<(), Error> {
|
||||
.shape
|
||||
.ok_or_else(|| invariant("a sampled texture slot without a shape"))?;
|
||||
let texel = crate::lower::texture::image_class(s);
|
||||
let sampler = CombinedSampler::new(key.sampler, key.compare, texel != TexelClass::Float)
|
||||
.with_unnormalized(key.unnormalized);
|
||||
let sampler = CombinedSampler::new(key.sampler, key.compare, texel != TexelClass::Float);
|
||||
if let SamplerRef::Constexpr(words) = key.sampler {
|
||||
constexpr_desc(words, sampler.sampler_use(), cx.profile)?;
|
||||
}
|
||||
|
||||
@@ -1797,7 +1797,6 @@ fn identity_pushes(field: PushField, loc: PushLoc, views: bool) -> bool {
|
||||
| PushField::InstanceCount(_)
|
||||
| PushField::PatchIndexOffset
|
||||
| PushField::PatchIndexBound
|
||||
| PushField::ControlPointIndexOffset
|
||||
| PushField::LineBand
|
||||
| PushField::DepthClampRange
|
||||
| PushField::CaptureLayout
|
||||
|
||||
@@ -473,7 +473,7 @@ mod serde_round_trips {
|
||||
round_trip(&SpecializationLayout {
|
||||
constants: vec![SpecConstant {
|
||||
id: 0,
|
||||
key: SpecKey::NearestPixelSampler(slot(Stage::Fragment, SlotClass::Sampler, 1)),
|
||||
key: SpecKey::SamplerMinLevel(slot(Stage::Fragment, SlotClass::Sampler, 1)),
|
||||
size: 4,
|
||||
default: 0,
|
||||
unread_bits: 0,
|
||||
|
||||
@@ -338,8 +338,6 @@ pub enum Reconvergence {
|
||||
pub enum PrecisionNote {
|
||||
/// Widened half fma rounds twice.
|
||||
F16FmaDoubleRounding,
|
||||
/// Widened half-integer conversions round twice.
|
||||
F16IntConvDoubleRounding,
|
||||
/// Bias sampling emulated with gradients may pick another level and another anisotropic
|
||||
/// footprint than Metal's: derivatives hoisted out of a per-fragment texture choice, which
|
||||
/// scale by `2^B` through every sampler, and a bias whose sum with the sampler's own may lie
|
||||
@@ -2061,9 +2059,6 @@ impl PrecisionNote {
|
||||
pub const fn code(self) -> &'static str {
|
||||
match self {
|
||||
PrecisionNote::F16FmaDoubleRounding => "metal2vulkan-degrade-f16-fma-double-rounding",
|
||||
PrecisionNote::F16IntConvDoubleRounding => {
|
||||
"metal2vulkan-degrade-f16-int-conv-double-rounding"
|
||||
}
|
||||
PrecisionNote::GradFromBias => "metal2vulkan-degrade-grad-from-bias",
|
||||
PrecisionNote::DeviceTranscendentals => "metal2vulkan-degrade-device-transcendentals",
|
||||
PrecisionNote::ReductionOrder => "metal2vulkan-degrade-reduction-order",
|
||||
|
||||
@@ -23,8 +23,6 @@ pub enum RuntimeFact {
|
||||
DispatchGrid,
|
||||
/// GPU-written indirect group counts.
|
||||
IndirectGroupCount,
|
||||
/// Whether the slot is bound, for slots whose null-ness the shader observes.
|
||||
ResourcePresence { slot: SlotRef },
|
||||
/// Rasterization sample count.
|
||||
SampleCount,
|
||||
/// View shape of the texture bound to the slot (cube-as-2D-array).
|
||||
@@ -103,25 +101,6 @@ pub enum RuntimeFact {
|
||||
/// the choice declares no format), so the binder keys the slot's choice even where a formatless
|
||||
/// declaration would serve its format.
|
||||
StorageTextureNumericType { slot: SlotRef },
|
||||
/// The function reads the texture bound to the slot (a texture or texture buffer) under the
|
||||
/// in-shader read check and uses the texel's alpha: Metal's out-of-bounds read is the zero
|
||||
/// texel with the pixel format's missing alpha read as 1 (MSL 4.1 sections 2.9.1 and 6.13),
|
||||
/// so the shader takes that alpha from `SpecKey::OutOfBoundsAlpha`, which the binder sets from
|
||||
/// the bound texture's pixel format.
|
||||
OutOfBoundsAlpha { slot: SlotRef },
|
||||
/// The function reads the mipmap level count of the storage texture bound to the slot
|
||||
/// (`PushField::TextureLevels`): Metal's `get_num_mip_levels` on a `write` or `read_write`
|
||||
/// texture, which a storage image cannot query (`OpImageQueryLevels` needs a sampled image),
|
||||
/// and the bound of the slot's level views. The binder writes the bound texture's
|
||||
/// `mipmapLevelCount`, and 0 where it binds a neutral.
|
||||
StorageTextureLevels { slot: SlotRef },
|
||||
/// The slot's binding is an array of single-level storage views: element `i` views level `i` of
|
||||
/// the bound texture (all its layers), and every element past its last level the neutral of the
|
||||
/// declared type. A storage access reaches its view's base level only, so a read, write, or
|
||||
/// size query at a level other than the constant 0 indexes the array by the level. The array
|
||||
/// holds as many elements as a texture of the slot's type can have levels on the device; the
|
||||
/// binder refuses a texture with more.
|
||||
StorageTextureLevelViews { slot: SlotRef },
|
||||
/// The function reads the instance count of the instance acceleration structure bound at the
|
||||
/// buffer slot (`get_instance_count()`, `PushField::InstanceCount`): no Vulkan instruction
|
||||
/// reads a structure's instance count, and the consumer that built the Metal structure knows
|
||||
@@ -164,19 +143,6 @@ pub enum RuntimeFact {
|
||||
/// otherwise); a `Function` kernel is compiled under its pipeline's. Nothing on the device
|
||||
/// reads it.
|
||||
OpenClMode,
|
||||
/// The kernel of OpenCL mode has a 1D image (an `image1d_t` or `image1d_array_t`, which the AIR
|
||||
/// declares `texture1d` or `texture1d_array`) at the slot, which it reads as the 2D texture of
|
||||
/// height 1, or the 2D array texture, Apple's OpenCL binds for it. A 1D or 1D array texture
|
||||
/// bound there instead, which Apple's OpenCL never binds, joins the plan's variant
|
||||
/// (`VariantKey::open_cl_lines`, `LoweringInputs::open_cl_lines`), under which the kernel
|
||||
/// declares the slot as that 1D texture and reads it: each read, sample and size query answers
|
||||
/// the 1D texture's values, of the layer an array access names, as a Radeon Pro 5300M (macOS
|
||||
/// 26.7.1) answers. Any other texture bound there leaves the variant. Under the identity
|
||||
/// domains a kernel states no such fact and has no such variant: it reads each 1D image as the
|
||||
/// 2D texture, and the consumer refuses a 1D texture bound for it, whose read Metal does not
|
||||
/// define (an M3 Max reads texel 0 at every coordinate, an Intel UHD Graphics 630 layer 0 of an
|
||||
/// array).
|
||||
OpenClLineTexture { slot: SlotRef },
|
||||
/// The kernel was compiled under `VariantKey::flat_grid` (`LoweringInputs::flat_grid`): it
|
||||
/// runs any grid in threadgroups of its own size, reading the grid from the 32-byte region
|
||||
/// record at its `PushField::ReplayRegionAddress`, which a preprocess writes beside the
|
||||
@@ -314,11 +280,6 @@ pub enum RuntimeFact {
|
||||
/// word does not fit its workgroup memory; the binder refuses a draw that leaves a partial
|
||||
/// object threadgroup of that one (`NotImplemented(MeshShading)`).
|
||||
PartialObjectThreadgroups,
|
||||
/// The function reads the texture bound to the slot through a sampler whose addressing may
|
||||
/// read the border texel (Metal 4.1 `read(sampler s, ...)`): that texel is the border color in
|
||||
/// the bound pixel format's channels, through the texture's swizzle, which the shader takes from
|
||||
/// `SpecKey::BorderTexels`, which the binder sets from the bound texture.
|
||||
BorderTexels { slot: SlotRef },
|
||||
/// The render pipeline was compiled under `VariantKey::region_viewports`, and its vertex
|
||||
/// function stores `ViewportIndex` as `DrawIndex` (`LoweringInputs::region_viewports`): each
|
||||
/// draw of a multi-draw renders through the viewport and scissor at its index, the runtime's
|
||||
@@ -404,7 +365,6 @@ impl RuntimeFact {
|
||||
RuntimeFact::LocalSizeLimits => "LocalSizeLimits",
|
||||
RuntimeFact::DispatchGrid => "DispatchGrid",
|
||||
RuntimeFact::IndirectGroupCount => "IndirectGroupCount",
|
||||
RuntimeFact::ResourcePresence { .. } => "ResourcePresence",
|
||||
RuntimeFact::SampleCount => "SampleCount",
|
||||
RuntimeFact::ImageViewShape { .. } => "ImageViewShape",
|
||||
RuntimeFact::VertexFetch { .. } => "VertexFetch",
|
||||
@@ -422,9 +382,6 @@ impl RuntimeFact {
|
||||
RuntimeFact::TileFunction => "TileFunction",
|
||||
RuntimeFact::TileAttachmentFormat { .. } => "TileAttachmentFormat",
|
||||
RuntimeFact::StorageTextureNumericType { .. } => "StorageTextureNumericType",
|
||||
RuntimeFact::OutOfBoundsAlpha { .. } => "OutOfBoundsAlpha",
|
||||
RuntimeFact::StorageTextureLevels { .. } => "StorageTextureLevels",
|
||||
RuntimeFact::StorageTextureLevelViews { .. } => "StorageTextureLevelViews",
|
||||
RuntimeFact::AccelerationStructureInstanceCount { .. } => {
|
||||
"AccelerationStructureInstanceCount"
|
||||
}
|
||||
@@ -433,7 +390,6 @@ impl RuntimeFact {
|
||||
RuntimeFact::AliasedImageblock { .. } => "AliasedImageblock",
|
||||
RuntimeFact::CallStackDepth { .. } => "CallStackDepth",
|
||||
RuntimeFact::OpenClMode => "OpenClMode",
|
||||
RuntimeFact::OpenClLineTexture { .. } => "OpenClLineTexture",
|
||||
RuntimeFact::FlatGrid => "FlatGrid",
|
||||
RuntimeFact::CallThreadgroups => "CallThreadgroups",
|
||||
RuntimeFact::TileThreadgroupMemory { .. } => "TileThreadgroupMemory",
|
||||
@@ -453,7 +409,6 @@ impl RuntimeFact {
|
||||
RuntimeFact::QuadPrimitiveIds => "QuadPrimitiveIds",
|
||||
RuntimeFact::PrivateList => "PrivateList",
|
||||
RuntimeFact::PartialObjectThreadgroups => "PartialObjectThreadgroups",
|
||||
RuntimeFact::BorderTexels { .. } => "BorderTexels",
|
||||
RuntimeFact::RegionViewports => "RegionViewports",
|
||||
RuntimeFact::PartialThreadgroups => "PartialThreadgroups",
|
||||
RuntimeFact::AddressAlignment { .. } => "AddressAlignment",
|
||||
|
||||
@@ -242,20 +242,13 @@ impl SamplerRef {
|
||||
}
|
||||
|
||||
/// How a combined image sampler samples: its sampler, and the use facts that change or check the
|
||||
/// `VkSampler` (`metal::sampler::SamplerUse`): depth comparison, which is static in AIR, whether
|
||||
/// the texture is an integer one (integer border colors), whether it samples a cube with explicit
|
||||
/// gradients (no anisotropy), and whether it reads a pixel sampler's texel coordinates through the
|
||||
/// device's unnormalized sampler.
|
||||
/// `VkSampler` (`metal::sampler::SamplerUse`): depth comparison, which is static in AIR, and
|
||||
/// whether the texture is an integer one (integer border colors).
|
||||
#[non_exhaustive]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct CombinedSampler {
|
||||
pub sampler: SamplerRef,
|
||||
/// The shader hands the binding a pixel sampler's coordinate in texels: its `VkSampler` is
|
||||
/// the device's unnormalized one (`SamplerUse::unnormalized`), and its image a view of the
|
||||
/// texture's first level alone.
|
||||
#[cfg_attr(feature = "serde", serde(default))]
|
||||
pub unnormalized: bool,
|
||||
/// The shader samples with depth comparison through this binding.
|
||||
pub compare: bool,
|
||||
/// The texture's sampled type is an integer type.
|
||||
@@ -270,38 +263,12 @@ impl CombinedSampler {
|
||||
sampler,
|
||||
compare,
|
||||
integer,
|
||||
unnormalized: false,
|
||||
}
|
||||
}
|
||||
|
||||
/// This use, reading texel coordinates where `unnormalized` holds
|
||||
/// ([`CombinedSampler::unnormalized`]).
|
||||
pub fn with_unnormalized(self, unnormalized: bool) -> CombinedSampler {
|
||||
CombinedSampler {
|
||||
unnormalized,
|
||||
..self
|
||||
}
|
||||
}
|
||||
|
||||
/// The use as a heap sampler symbol's index, or a separate sampler's: bit 0 comparison, bit 1
|
||||
/// an integer texel, bit 2 texel coordinates.
|
||||
pub fn heap_index(&self) -> u32 {
|
||||
u32::from(self.compare)
|
||||
| (u32::from(self.integer) << 1)
|
||||
| (u32::from(self.unnormalized) << 2)
|
||||
}
|
||||
|
||||
/// Sampler `sampler` with the use a heap or separate sampler symbol's index `index` states
|
||||
/// ([`CombinedSampler::heap_index`]).
|
||||
pub fn from_heap_index(sampler: SamplerRef, index: u32) -> CombinedSampler {
|
||||
CombinedSampler::new(sampler, index & 1 != 0, index & 2 != 0)
|
||||
.with_unnormalized(index & 4 != 0)
|
||||
}
|
||||
|
||||
/// The use the binder (and link, for a constexpr sampler) builds the `VkSampler` for.
|
||||
/// The use the consumer makes the `VkSampler` for.
|
||||
pub fn sampler_use(&self) -> crate::metal::sampler::SamplerUse {
|
||||
crate::metal::sampler::SamplerUse::new(self.compare, self.integer)
|
||||
.with_unnormalized(self.unnormalized)
|
||||
}
|
||||
|
||||
/// The device's sampler of a constexpr sampler in this use: the immutable sampler link bakes
|
||||
@@ -358,8 +325,6 @@ pub enum SpecKey {
|
||||
MultiRegion,
|
||||
/// Length of threadgroup-memory argument `i` (`setThreadgroupMemoryLength`).
|
||||
TgLength(u32),
|
||||
/// Whether the slot is bound (only for slots whose null-ness the shader observes).
|
||||
Presence(SlotRef),
|
||||
/// Rasterization sample count.
|
||||
SampleCount,
|
||||
/// The render encoder's vertex amplification count (`setVertexAmplificationCount:`, default
|
||||
@@ -378,12 +343,6 @@ pub enum SpecKey {
|
||||
RenderAreaWidth,
|
||||
/// The height of the render area a tile dispatch covers (`renderTargetHeight`, default 0).
|
||||
RenderAreaHeight,
|
||||
/// Boolean: an out-of-bounds read of the texture bound to the slot reads alpha 1, because its
|
||||
/// pixel format has no alpha component (or is a depth or stencil format, whose missing
|
||||
/// components Metal leaves undefined), rather than 0 (default false). Metal reads a zero
|
||||
/// texel out of bounds, with the format's missing components at their defaults
|
||||
/// (`RuntimeFact::OutOfBoundsAlpha`).
|
||||
OutOfBoundsAlpha(SlotRef),
|
||||
/// The byte offset of a tile or fragment function's threadgroup argument `i` in its tile's
|
||||
/// threadgroup memory (`setThreadgroupMemoryLength:offset:atIndex:`, default 0).
|
||||
TgOffset(u32),
|
||||
@@ -393,14 +352,6 @@ pub enum SpecKey {
|
||||
/// The tiles across the render pass's render area, `ceil(width / tile width)` (default 0):
|
||||
/// the stride of a tile row in `SyntheticBinding::TileMemory`.
|
||||
TileGridWidth,
|
||||
/// The swizzle of the texture buffer bound to the slot (`u32`, default the identity's word):
|
||||
/// its `MTLTextureSwizzleChannels`, each channel's `MTLTextureSwizzle` raw value in three
|
||||
/// bits, red's lowest, which the function applies to its reads (`RuntimeFact::TextureSwizzle`);
|
||||
/// at a storage slot of `LoweringInputs::swizzled_storage`, the bound texture's swizzle, which
|
||||
/// the function applies to its reads and undoes on its writes, and at an extended-range sampled
|
||||
/// slot of it, which the function applies to the decoded texels it reads, samples and gathers,
|
||||
/// and at a packed normalized sampled slot of it, to the texels its class converts.
|
||||
TextureSwizzle(SlotRef),
|
||||
/// An object function's threads per threadgroup on one axis (`threadsPerObjectThreadgroup`):
|
||||
/// its `LocalSize`, a key of its own so that a mesh render pipeline's object and mesh
|
||||
/// threadgroups take separate sizes.
|
||||
@@ -415,30 +366,6 @@ pub enum SpecKey {
|
||||
/// its descriptor (0 without a mip filter, else its `lodMinClamp` on Metal's grid). A slot
|
||||
/// bound to no sampler takes 0.
|
||||
SamplerMinLevel(SlotRef),
|
||||
/// The plane axes of the texture bound to the slot on which the base-level size Metal's
|
||||
/// texel-offset rule reads is not a power of two where the texture's own base level's is
|
||||
/// (`u32`, default 0): bit `a` (0 width, 1 height, 2 depth) for a view whose first level lies
|
||||
/// above its parent's base level (`MTLTexture.parentRelativeLevel`) where its parent's
|
||||
/// base-level size on that axis is not a power of two and its own is. Metal drops a texel
|
||||
/// offset on a repeating or mirrored axis whose level size lies in `[2, 7]` and whose base
|
||||
/// size, the parent's, is not a power of two. A slot bound to any other texture, or to none,
|
||||
/// takes 0.
|
||||
OffsetBaseAxes(SlotRef),
|
||||
/// Boolean: the runtime sampler bound to the slot is a nearest pixel sampler of one level
|
||||
/// (default false): it reads pixel coordinates (`normalizedCoordinates` false) through nearest
|
||||
/// minification and magnification filters, without a mip filter and isotropically (its word
|
||||
/// masked by `SamplerWord::nearest_pixel(false)` is `SamplerWord::PIXEL_COORDINATES`). Where it
|
||||
/// holds, a pixel sample through the slot hands the device its texel's centre, from which the
|
||||
/// device's sampler reads exactly the texel Metal's reads. A slot bound to a normalized sampler,
|
||||
/// or to none, takes false, so a normalized sampler's filter makes no pipeline of its own.
|
||||
NearestPixelSampler(SlotRef),
|
||||
/// Metal's border texels of the texture bound to the slot (`u32`, default a four-channel
|
||||
/// format's without a swizzle): bit `3c + b` is set where channel `c` (0 red to 3 alpha) of the
|
||||
/// texel a read through a sampler hands back at an index outside the level on a border axis
|
||||
/// reads 1 for border color `b` (`MTLSamplerBorderColor`'s value), the format's channels and
|
||||
/// the texture's swizzle deciding it (`metal::sampler::border_texels`,
|
||||
/// `RuntimeFact::BorderTexels`).
|
||||
BorderTexels(SlotRef),
|
||||
/// Boolean: the kernel's threadgroup runs as one row (default false). Its workgroup is then
|
||||
/// `(sx·sy·sz, 1, 1)` (its [`WorkgroupSize`](SpecKey::WorkgroupSize) constants), and its
|
||||
/// position in the threadgroup is its `LocalInvocationIndex`
|
||||
@@ -659,9 +586,6 @@ pub enum PushField {
|
||||
PatchIndexOffset,
|
||||
/// Whether the patch draw binds a patch index buffer (`u32`, 1 or 0), a control-stage field.
|
||||
PatchIndexBound,
|
||||
/// The control-point index buffer's residual bind offset (`u32`), a control-stage field of a
|
||||
/// pipeline with a control-point index type.
|
||||
ControlPointIndexOffset,
|
||||
/// The draw's band of a pipeline variant that draws its lines as bands
|
||||
/// (`VariantKey::line_band`, `link::band`): one `vec4` of the synthesized evaluation stage's
|
||||
/// own push range, `[sx, sy, h, 0]`, the half extent of the draw's Vulkan viewport 0 (its
|
||||
|
||||
@@ -1977,20 +1977,6 @@ fn textures_at_their_resource_ids(ab: bool) {
|
||||
handles,
|
||||
"{stem}"
|
||||
);
|
||||
assert!(
|
||||
a.interface
|
||||
.spec
|
||||
.iter()
|
||||
.all(|c| !matches!(c.key, SpecKey::Presence(_) | SpecKey::OutOfBoundsAlpha(_))),
|
||||
"{stem}"
|
||||
);
|
||||
assert!(
|
||||
!plan.facts.iter().any(|f| matches!(
|
||||
f,
|
||||
RuntimeFact::ResourcePresence { .. } | RuntimeFact::OutOfBoundsAlpha { .. }
|
||||
)),
|
||||
"{stem}"
|
||||
);
|
||||
// Set 1 is the fixed pair of arrays; each class the kernel declares is a variable of its
|
||||
// descriptor type's binding, and set 0 holds nothing.
|
||||
let linked = link(&[&a], &LinkInputs::standalone(), p).unwrap_or_else(|e| panic!("{e}"));
|
||||
@@ -2579,11 +2565,6 @@ fn a_read_through_a_sampler_takes_its_border_texels_from_the_word() {
|
||||
"{stem}: {:?}",
|
||||
a.interface.spec
|
||||
);
|
||||
assert!(
|
||||
!(plan.facts.iter()).any(|f| matches!(f, RuntimeFact::BorderTexels { .. })),
|
||||
"{stem}: {:?}",
|
||||
plan.facts
|
||||
);
|
||||
let linked = link(&[&a], &LinkInputs::standalone(), p).unwrap_or_else(|e| panic!("{e}"));
|
||||
let sampled: Vec<ResourceSlot> = (linked.table.bindings.iter())
|
||||
.filter(|(slot, _)| matches!(slot.kind, ResourceKind::Heap(HandleClass::Image(_))))
|
||||
@@ -2747,11 +2728,6 @@ fn an_argument_buffer_textures_read_through_a_sampler_takes_its_border_texels_fr
|
||||
"{what}: {:?}",
|
||||
a.interface.spec
|
||||
);
|
||||
assert!(
|
||||
!(plan.facts.iter()).any(|f| matches!(f, RuntimeFact::BorderTexels { .. })),
|
||||
"{what}: {:?}",
|
||||
plan.facts
|
||||
);
|
||||
assert!(plan.families.access.heap_border, "{what}");
|
||||
let linked =
|
||||
link(&[&a], &LinkInputs::standalone(), p).unwrap_or_else(|e| panic!("{e}"));
|
||||
|
||||
@@ -699,7 +699,7 @@ fn an_opencl_mode_kernel_binds_its_1d_images_as_2d_textures() {
|
||||
}
|
||||
|
||||
/// Under the identity domains a kernel of OpenCL mode reads each 1D image as the 2D texture Apple's
|
||||
/// OpenCL binds for it, with no `RuntimeFact::OpenClLineTexture` and no variant: `__entry_lr`
|
||||
/// OpenCL binds for it, with no variant: `__entry_lr`
|
||||
/// compiles and passes L3 on every profile the identity domains derive, its images the sampled
|
||||
/// float 2D and 2D-array classes' elements. On the CPU interpreter, over a 2D texture of 4 × 1 at
|
||||
/// element 3 and a 2D array of 4 × 1 and two layers at element 5, `o[0]` is texel 2 of the
|
||||
@@ -762,11 +762,6 @@ fn an_opencl_mode_kernels_1d_images_read_their_2d_textures_under_the_identity_do
|
||||
.unwrap_or_else(|e| panic!("{stem}: {e}"));
|
||||
link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{stem}: L3: {e}"));
|
||||
assert!(a.facts.contains(&RuntimeFact::OpenClMode), "{stem}");
|
||||
assert!(
|
||||
!(a.facts.iter()).any(|f| matches!(f, RuntimeFact::OpenClLineTexture { .. })),
|
||||
"{stem}: {:?}",
|
||||
a.facts
|
||||
);
|
||||
let linked =
|
||||
link(&[&a], &LinkInputs::standalone(), &p).unwrap_or_else(|e| panic!("{stem}: {e}"));
|
||||
let mut sampled: Vec<_> = (linked.table.bindings.iter())
|
||||
|
||||
@@ -14,11 +14,11 @@ use crate::spirv::ir::{
|
||||
};
|
||||
use crate::spirv::spec_bits::mark_unread;
|
||||
|
||||
/// The constant the tests read: a texture slot's swizzle word (a label: the module is built by
|
||||
/// The constant the tests read: a sampler slot's minimum level (a label: the module is built by
|
||||
/// hand).
|
||||
const KEY: SpecKey = SpecKey::TextureSwizzle(SlotRef {
|
||||
const KEY: SpecKey = SpecKey::SamplerMinLevel(SlotRef {
|
||||
stage: Stage::Kernel,
|
||||
class: SlotClass::Texture,
|
||||
class: SlotClass::Sampler,
|
||||
index: 0,
|
||||
});
|
||||
|
||||
|
||||
@@ -1091,11 +1091,7 @@ fn a_read_at_a_missing_level_is_metals_out_of_bounds_texel() {
|
||||
.collect();
|
||||
let bufs = [p_rows, vec![0; 16 * rows.len()]];
|
||||
let counts = [(0, levels)];
|
||||
let spec = [(SpecKey::OutOfBoundsAlpha(tslot(0)), u64::from(alpha != 0))];
|
||||
let mut r = Run {
|
||||
spec: &spec,
|
||||
..Run::new(&bufs, &counts, [rows.len() as u32, 1, 1])
|
||||
};
|
||||
let mut r = Run::new(&bufs, &counts, [rows.len() as u32, 1, 1]);
|
||||
// The shader reads the word's out-of-bounds alpha bit alone.
|
||||
if alpha != 0 {
|
||||
r.word |= TextureWord::OUT_OF_BOUNDS_ALPHA_ONE;
|
||||
@@ -1138,11 +1134,11 @@ fn a_read_at_a_missing_level_is_metals_out_of_bounds_texel() {
|
||||
|
||||
// ---- Declarations, facts, and refusals ----
|
||||
|
||||
/// A level-view slot (`txt_level_write`, written at a level from a buffer) states no fact and has
|
||||
/// the level-count and run-base push fields (its views are a run of set 1's storage array,
|
||||
/// `lower::texture`'s storage levels); a device that cannot index storage arrays by a non-uniform
|
||||
/// value (the runtime's floor without `shaderStorageImageArrayNonUniformIndexing`, below that
|
||||
/// floor) refuses its dynamic level, typed. A slot whose level count alone is read, or whose size
|
||||
/// A level-view slot (`txt_level_write`, written at a level from a buffer) has the level-count and
|
||||
/// run-base push fields (its views are a run of set 1's storage array, `lower::texture`'s storage
|
||||
/// levels); a device that cannot index storage arrays by a non-uniform value (the runtime's floor
|
||||
/// without `shaderStorageImageArrayNonUniformIndexing`, below that floor) refuses its dynamic
|
||||
/// level, typed. A slot whose level count alone is read, or whose size
|
||||
/// is queried at a level (`txt_level_queries`), has the count and no run base, on every profile:
|
||||
/// the query answers from the first level.
|
||||
#[test]
|
||||
@@ -1166,18 +1162,9 @@ fn level_views_declare_every_level_of_the_largest_texture() {
|
||||
let pushes = |a: &FunctionArtifact, field: PushField| {
|
||||
(a.interface.push.fields.iter()).any(|f| f.field == field)
|
||||
};
|
||||
// No level fact: the consumer pushes the count and the run's first element.
|
||||
let no_facts = |a: &FunctionArtifact, s: u32| {
|
||||
!a.facts.iter().any(|f| {
|
||||
matches!(f,
|
||||
RuntimeFact::StorageTextureLevels { slot }
|
||||
| RuntimeFact::StorageTextureLevelViews { slot } if *slot == tslot(s))
|
||||
})
|
||||
};
|
||||
match compile(&queries, "txt_level_queries", &p) {
|
||||
Ok(a) => {
|
||||
for s in [0, 1] {
|
||||
assert!(no_facts(&a, s), "{stem}: slot {s}");
|
||||
assert!(
|
||||
pushes(&a, PushField::TextureLevels(tslot(s))),
|
||||
"{stem}: slot {s}"
|
||||
@@ -1206,7 +1193,6 @@ fn level_views_declare_every_level_of_the_largest_texture() {
|
||||
non_uniform(&p),
|
||||
"{stem}: compiled without non-uniform indexing"
|
||||
);
|
||||
assert!(no_facts(&a, 0), "{stem}");
|
||||
assert!(pushes(&a, PushField::TextureLevels(tslot(0))), "{stem}");
|
||||
assert!(pushes(&a, PushField::TextureLevelBase(tslot(0))), "{stem}");
|
||||
ok += 1;
|
||||
@@ -1399,8 +1385,7 @@ declare i32 @air.get_num_mip_levels_texture_1d_array(ptr addrspace(1))
|
||||
"#;
|
||||
|
||||
/// Metal has no mipmapped 1D textures: `get_num_mip_levels` of a 1D texture or 1D texture array
|
||||
/// always returns 0 (MSL 4.1), sampled or storage, whatever the bound image's level count, and
|
||||
/// the storage slot asks the binder for no level count.
|
||||
/// always returns 0 (MSL 4.1), sampled or storage, whatever the bound image's level count.
|
||||
#[test]
|
||||
fn one_d_textures_have_no_levels() {
|
||||
let Some(bc) = assemble("one_d_levels", ONE_D_LEVELS) else {
|
||||
@@ -1411,13 +1396,6 @@ fn one_d_textures_have_no_levels() {
|
||||
let Some((plan, m)) = module(&bc, "k", &stem, &p) else {
|
||||
continue;
|
||||
};
|
||||
assert!(
|
||||
!plan
|
||||
.facts
|
||||
.iter()
|
||||
.any(|f| matches!(f, RuntimeFact::StorageTextureLevels { .. })),
|
||||
"{stem}"
|
||||
);
|
||||
let imgs = [
|
||||
Image::new(texture(0), [4, 1, 1], 1, 3, 1),
|
||||
Image::new(texture(1), [4, 1, 1], 2, 3, 1),
|
||||
@@ -1435,8 +1413,8 @@ fn one_d_textures_have_no_levels() {
|
||||
// ---- Under the identity domains ----
|
||||
|
||||
/// Under the identity domains a storage slot written at a level read from a buffer
|
||||
/// (`txt_level_write`) is lowered: it states no fact of the bound texture's levels, pushes the
|
||||
/// bound level count beside the slot's resource ID, and passes L3.
|
||||
/// (`txt_level_write`) is lowered: it pushes the bound level count beside the slot's resource ID,
|
||||
/// and passes L3.
|
||||
#[test]
|
||||
fn under_the_identity_domains_a_write_at_a_run_time_level_is_lowered() {
|
||||
let Some(bc) = fixture("txt_level_write") else {
|
||||
@@ -1446,15 +1424,6 @@ fn under_the_identity_domains_a_write_at_a_run_time_level_is_lowered() {
|
||||
let p = profile(stem).unwrap_or_else(|e| panic!("{e}"));
|
||||
let a = compile(&bc, "txt_level_write", &p).unwrap_or_else(|e| panic!("{stem}: {e}"));
|
||||
link_and_validate(&a, &p).unwrap_or_else(|e| panic!("{stem}: L3: {e}"));
|
||||
assert!(
|
||||
!(a.facts.iter()).any(|f| matches!(
|
||||
f,
|
||||
RuntimeFact::StorageTextureLevels { .. }
|
||||
| RuntimeFact::StorageTextureLevelViews { .. }
|
||||
)),
|
||||
"{stem}: {:?}",
|
||||
a.facts
|
||||
);
|
||||
let pushed = |field| (a.interface.push.fields.iter()).any(|f| f.field == field);
|
||||
assert!(pushed(PushField::TextureLevels(tslot(0))), "{stem}");
|
||||
assert!(pushed(PushField::SlotGuestBase(tslot(0))), "{stem}");
|
||||
|
||||
@@ -37,12 +37,9 @@ use crate::device::{Device, DeviceDescription};
|
||||
use crate::error::{Capability, Cause, Error, Feature, IdentityCause, LowerFamily, Unsupported};
|
||||
use crate::lower::select::{LowerInputs, Plan};
|
||||
use crate::metal::PixelFormat;
|
||||
use crate::pipeline::facts::RuntimeFact;
|
||||
use crate::pipeline::interface::PushLoc;
|
||||
use crate::pipeline::lower_inputs::{StorageImageChoice, StorageImageClass};
|
||||
use crate::pipeline::sym::{
|
||||
PushField, ResourceKind, ResourceSlot, SlotClass, SlotRef, SpecKey, Stage,
|
||||
};
|
||||
use crate::pipeline::sym::{PushField, ResourceKind, ResourceSlot, SlotClass, SlotRef, Stage};
|
||||
use crate::pipeline::testing::{
|
||||
compile, engine_dir, link_and_validate, llvm_assemble, typed_module, typed_module_with,
|
||||
AssembleError,
|
||||
@@ -1513,15 +1510,10 @@ impl ReadCase {
|
||||
};
|
||||
let class = class(&p, self.buffer);
|
||||
// The out-of-bounds alpha is the resource ID's word's, read where the shader selects
|
||||
// the texel and observes its alpha, with no fact.
|
||||
// the texel and observes its alpha.
|
||||
let selects = class != Class::Device || beyond != Beyond::Nothing;
|
||||
let observed =
|
||||
(plan.families.texture.slots.get(&TEXTURE.index)).is_some_and(|s| s.oob_alpha);
|
||||
assert!(
|
||||
!(plan.facts.iter()).any(|f| matches!(f, RuntimeFact::OutOfBoundsAlpha { .. })),
|
||||
"{stem}: {}",
|
||||
self.entry
|
||||
);
|
||||
if !self.buffer {
|
||||
assert_eq!(
|
||||
observed,
|
||||
@@ -1533,15 +1525,13 @@ impl ReadCase {
|
||||
for alpha in [0, self.texel.one()] {
|
||||
let img = image(self.texel, self.shape, robust(class, alpha));
|
||||
let p_rows: Vec<[u32; 4]> = self.rows.iter().map(|(r, _)| *r).collect();
|
||||
let mut res = resources(
|
||||
let res = resources(
|
||||
&plan,
|
||||
&p_rows,
|
||||
self.rows.len() * self.out.len(),
|
||||
self.shape.2,
|
||||
&texture_ids(self.texel, alpha),
|
||||
);
|
||||
res.spec
|
||||
.insert(SpecKey::OutOfBoundsAlpha(TEXTURE), u64::from(alpha != 0));
|
||||
let images = bound(&plan, &img);
|
||||
let (bufs, _) = run_both(&m, &res, &images, self.rows.len() as u32, &stem);
|
||||
let want: Vec<u8> = self
|
||||
@@ -1944,15 +1934,13 @@ fn a_read_where_its_thread_wrote_out_of_bounds_is_zero() {
|
||||
for alpha in [0, 1] {
|
||||
let img = image(Texel::Int, (extent, 1, 1, 1), robust(class, alpha));
|
||||
let p_rows: Vec<[u32; 4]> = rows.iter().map(|(r, _)| *r).collect();
|
||||
let mut res = resources(
|
||||
let res = resources(
|
||||
&plan,
|
||||
&p_rows,
|
||||
rows.len() * 16,
|
||||
1,
|
||||
&texture_ids(Texel::Int, alpha),
|
||||
);
|
||||
res.spec
|
||||
.insert(SpecKey::OutOfBoundsAlpha(TEXTURE), u64::from(alpha != 0));
|
||||
let images = bound(&plan, &img);
|
||||
let (bufs, _) = run_both(&m, &res, &images, rows.len() as u32, &stem);
|
||||
for (i, ((r, inside), got)) in rows
|
||||
|
||||
@@ -80,10 +80,8 @@ impl Case {
|
||||
continue;
|
||||
};
|
||||
let class = class(&p, self.buffer);
|
||||
// A read takes the border texels from the texture's resource ID's word, with no fact,
|
||||
// through a constexpr sampler and a runtime one alike.
|
||||
let fact = RuntimeFact::BorderTexels { slot: TEXTURE };
|
||||
assert!(!plan.facts.contains(&fact), "{stem}: {}", self.entry);
|
||||
// A read takes the border texels from the texture's resource ID's word, through a
|
||||
// constexpr sampler and a runtime one alike.
|
||||
for (bits, alpha, texture) in formats {
|
||||
let img = image(self.texel, self.shape, robust(class, alpha));
|
||||
let p_rows: Vec<[u32; 4]> = self.rows.iter().map(|(r, _)| *r).collect();
|
||||
@@ -92,17 +90,13 @@ impl Case {
|
||||
if let Some(w) = self.word {
|
||||
ids.insert(SAMPLER, identity_harness::resource_id(0, w));
|
||||
}
|
||||
let mut res = resources(
|
||||
let res = resources(
|
||||
&plan,
|
||||
&p_rows,
|
||||
self.rows.len() * self.out.len(),
|
||||
self.shape.2,
|
||||
&ids,
|
||||
);
|
||||
res.spec
|
||||
.insert(SpecKey::OutOfBoundsAlpha(TEXTURE), u64::from(alpha != 0));
|
||||
res.spec
|
||||
.insert(SpecKey::BorderTexels(TEXTURE), u64::from(bits));
|
||||
let images = bound(&plan, &img);
|
||||
let (bufs, _) = run_both(&m, &res, &images, self.rows.len() as u32, &stem);
|
||||
let want: Vec<u8> = self
|
||||
|
||||
@@ -2442,7 +2442,6 @@ field metal2vulkan::pipeline::ColorAttachmentState.write_mask pub write_mask: vk
|
||||
field metal2vulkan::pipeline::CombinedSampler.compare pub compare: bool
|
||||
field metal2vulkan::pipeline::CombinedSampler.integer pub integer: bool
|
||||
field metal2vulkan::pipeline::CombinedSampler.sampler pub sampler: SamplerRef
|
||||
field metal2vulkan::pipeline::CombinedSampler.unnormalized pub unnormalized: bool
|
||||
field metal2vulkan::pipeline::CommandWrites.kinds pub kinds: u8
|
||||
field metal2vulkan::pipeline::CommandWrites.operations pub operations: u32
|
||||
field metal2vulkan::pipeline::CommandWrites.primitive_types pub primitive_types: u8
|
||||
@@ -6593,11 +6592,8 @@ method metal2vulkan::pipeline::ColorAttachmentDescriptor::new pub fn new(pixel_f
|
||||
method metal2vulkan::pipeline::ColorAttachmentDescriptor::specialized #[must_use] pub fn specialized(&self) -> ColorAttachmentDescriptor
|
||||
method metal2vulkan::pipeline::ColorAttachmentState::new pub fn new(format: vk::Format, write_mask: vk::ColorComponentFlags, blend: Option<BlendState>) -> ColorAttachmentState
|
||||
method metal2vulkan::pipeline::CombinedSampler::constexpr_sampler pub fn constexpr_sampler(&self, profile: &crate::device::DeviceProfile) -> Result<Option<vk::SamplerDesc>, crate::error::Error>
|
||||
method metal2vulkan::pipeline::CombinedSampler::from_heap_index pub fn from_heap_index(sampler: SamplerRef, index: u32) -> CombinedSampler
|
||||
method metal2vulkan::pipeline::CombinedSampler::heap_index pub fn heap_index(&self) -> u32
|
||||
method metal2vulkan::pipeline::CombinedSampler::new pub fn new(sampler: SamplerRef, compare: bool, integer: bool) -> CombinedSampler
|
||||
method metal2vulkan::pipeline::CombinedSampler::sampler_use pub fn sampler_use(&self) -> crate::metal::sampler::SamplerUse
|
||||
method metal2vulkan::pipeline::CombinedSampler::with_unnormalized pub fn with_unnormalized(self, unnormalized: bool) -> CombinedSampler
|
||||
method metal2vulkan::pipeline::CommandWrites::is_empty pub const fn is_empty(self) -> bool
|
||||
method metal2vulkan::pipeline::CommandWrites::may pub const fn may(self, bits: u32) -> bool
|
||||
method metal2vulkan::pipeline::CommandWrites::union pub const fn union(self, other: CommandWrites) -> CommandWrites
|
||||
@@ -8485,7 +8481,6 @@ variant metal2vulkan-runtime::DrawInputCause::PushField PushField
|
||||
variant metal2vulkan-runtime::DrawInputCause::RuntimeFact RuntimeFact { fact: &'static str }
|
||||
variant metal2vulkan-runtime::DrawInputCause::Slot Slot
|
||||
variant metal2vulkan-runtime::DrawInputCause::Stage Stage
|
||||
variant metal2vulkan-runtime::DrawInputCause::UnnormalizedSampler UnnormalizedSampler
|
||||
variant metal2vulkan-runtime::DrawKind::AttachmentFormats AttachmentFormats
|
||||
variant metal2vulkan-runtime::DrawKind::AttachmentRead AttachmentRead
|
||||
variant metal2vulkan-runtime::DrawKind::DividedBaseInstance DividedBaseInstance
|
||||
@@ -8664,7 +8659,6 @@ variant metal2vulkan-runtime::PrecisionNote::ExtendedRangeBlend ExtendedRangeBle
|
||||
variant metal2vulkan-runtime::PrecisionNote::ExtendedRangeBlendWindow ExtendedRangeBlendWindow
|
||||
variant metal2vulkan-runtime::PrecisionNote::ExtrapolatedInterpolation ExtrapolatedInterpolation
|
||||
variant metal2vulkan-runtime::PrecisionNote::F16FmaDoubleRounding F16FmaDoubleRounding
|
||||
variant metal2vulkan-runtime::PrecisionNote::F16IntConvDoubleRounding F16IntConvDoubleRounding
|
||||
variant metal2vulkan-runtime::PrecisionNote::FastMathRewrites FastMathRewrites
|
||||
variant metal2vulkan-runtime::PrecisionNote::Fp8Value Fp8Value
|
||||
variant metal2vulkan-runtime::PrecisionNote::FragmentSimdgroupGrouping FragmentSimdgroupGrouping
|
||||
@@ -9646,7 +9640,6 @@ variant metal2vulkan::error::Feature::GatherExtended GatherExtended
|
||||
variant metal2vulkan::error::Feature::GenericPointer GenericPointer(GenericPointer)
|
||||
variant metal2vulkan::error::Feature::GlobalBuiltinInFragment GlobalBuiltinInFragment
|
||||
variant metal2vulkan::error::Feature::GpuEncodedIndirectCommands GpuEncodedIndirectCommands
|
||||
variant metal2vulkan::error::Feature::GroupCount GroupCount { axis: Option<Axis> }
|
||||
variant metal2vulkan::error::Feature::HandleAsPointer HandleAsPointer
|
||||
variant metal2vulkan::error::Feature::IdentityDomains IdentityDomains
|
||||
variant metal2vulkan::error::Feature::ImageAtomics ImageAtomics
|
||||
@@ -9663,7 +9656,6 @@ variant metal2vulkan::error::Feature::IrreducibleConvergent IrreducibleConvergen
|
||||
variant metal2vulkan::error::Feature::LayeredRendering LayeredRendering
|
||||
variant metal2vulkan::error::Feature::LibraryKind LibraryKind(u8)
|
||||
variant metal2vulkan::error::Feature::Linking Linking
|
||||
variant metal2vulkan::error::Feature::LocalSize LocalSize { axis: Option<Axis> }
|
||||
variant metal2vulkan::error::Feature::Lowering Lowering(LowerFamily)
|
||||
variant metal2vulkan::error::Feature::MeshShading MeshShading
|
||||
variant metal2vulkan::error::Feature::MinLodClamp MinLodClamp
|
||||
@@ -9709,7 +9701,6 @@ variant metal2vulkan::error::Feature::SubgroupOperations SubgroupOperations
|
||||
variant metal2vulkan::error::Feature::SyncScope SyncScope
|
||||
variant metal2vulkan::error::Feature::Tensors Tensors
|
||||
variant metal2vulkan::error::Feature::Tessellation Tessellation
|
||||
variant metal2vulkan::error::Feature::TexelBuffer TexelBuffer
|
||||
variant metal2vulkan::error::Feature::TexelOffset TexelOffset
|
||||
variant metal2vulkan::error::Feature::TextureSwizzle TextureSwizzle
|
||||
variant metal2vulkan::error::Feature::ThreadgroupMemorySize ThreadgroupMemorySize
|
||||
@@ -10060,7 +10051,6 @@ variant metal2vulkan::pipeline::PrecisionNote::ExtendedRangeBlend ExtendedRangeB
|
||||
variant metal2vulkan::pipeline::PrecisionNote::ExtendedRangeBlendWindow ExtendedRangeBlendWindow
|
||||
variant metal2vulkan::pipeline::PrecisionNote::ExtrapolatedInterpolation ExtrapolatedInterpolation
|
||||
variant metal2vulkan::pipeline::PrecisionNote::F16FmaDoubleRounding F16FmaDoubleRounding
|
||||
variant metal2vulkan::pipeline::PrecisionNote::F16IntConvDoubleRounding F16IntConvDoubleRounding
|
||||
variant metal2vulkan::pipeline::PrecisionNote::FastMathRewrites FastMathRewrites
|
||||
variant metal2vulkan::pipeline::PrecisionNote::Fp8Value Fp8Value
|
||||
variant metal2vulkan::pipeline::PrecisionNote::FragmentSimdgroupGrouping FragmentSimdgroupGrouping
|
||||
@@ -10117,7 +10107,6 @@ variant metal2vulkan::pipeline::PushField::CaptureIndexAddress CaptureIndexAddre
|
||||
variant metal2vulkan::pipeline::PushField::CaptureLayout CaptureLayout
|
||||
variant metal2vulkan::pipeline::PushField::ConstexprSampler ConstexprSampler(CombinedSampler)
|
||||
variant metal2vulkan::pipeline::PushField::ControlPointIndexAddress ControlPointIndexAddress
|
||||
variant metal2vulkan::pipeline::PushField::ControlPointIndexOffset ControlPointIndexOffset
|
||||
variant metal2vulkan::pipeline::PushField::DepthClampRange DepthClampRange
|
||||
variant metal2vulkan::pipeline::PushField::DepthRangeFold DepthRangeFold
|
||||
variant metal2vulkan::pipeline::PushField::DispatchRegion DispatchRegion
|
||||
@@ -10168,7 +10157,6 @@ variant metal2vulkan::pipeline::RuntimeFact::AliasedImageblock AliasedImageblock
|
||||
variant metal2vulkan::pipeline::RuntimeFact::AmplificationCount AmplificationCount
|
||||
variant metal2vulkan::pipeline::RuntimeFact::AmplificationDraws AmplificationDraws { layered: bool, viewports: bool }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::BaseVertexInstance BaseVertexInstance
|
||||
variant metal2vulkan::pipeline::RuntimeFact::BorderTexels BorderTexels { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::CallStackDepth CallStackDepth { depth: u32 }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::CallThreadgroups CallThreadgroups
|
||||
variant metal2vulkan::pipeline::RuntimeFact::DepthClampRange DepthClampRange
|
||||
@@ -10189,9 +10177,7 @@ variant metal2vulkan::pipeline::RuntimeFact::LocalSizeConstraint LocalSizeConstr
|
||||
variant metal2vulkan::pipeline::RuntimeFact::LocalSizeLimits LocalSizeLimits
|
||||
variant metal2vulkan::pipeline::RuntimeFact::MergedDraws MergedDraws
|
||||
variant metal2vulkan::pipeline::RuntimeFact::ObjectThreadgroupArena ObjectThreadgroupArena { static_bytes: u32, payload: Option<u32> }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::OpenClLineTexture OpenClLineTexture { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::OpenClMode OpenClMode
|
||||
variant metal2vulkan::pipeline::RuntimeFact::OutOfBoundsAlpha OutOfBoundsAlpha { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::PartialObjectThreadgroups PartialObjectThreadgroups
|
||||
variant metal2vulkan::pipeline::RuntimeFact::PartialThreadgroups PartialThreadgroups
|
||||
variant metal2vulkan::pipeline::RuntimeFact::PredicationVote PredicationVote
|
||||
@@ -10201,7 +10187,6 @@ variant metal2vulkan::pipeline::RuntimeFact::QuadPrimitiveIds QuadPrimitiveIds
|
||||
variant metal2vulkan::pipeline::RuntimeFact::RegionViewports RegionViewports
|
||||
variant metal2vulkan::pipeline::RuntimeFact::RenderTargetArrayLength RenderTargetArrayLength { layer_dropped: bool }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::ReplayBindings ReplayBindings
|
||||
variant metal2vulkan::pipeline::RuntimeFact::ResourcePresence ResourcePresence { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::RobustStorageBuffers RobustStorageBuffers
|
||||
variant metal2vulkan::pipeline::RuntimeFact::RotatedWeights RotatedWeights
|
||||
variant metal2vulkan::pipeline::RuntimeFact::SampleCount SampleCount
|
||||
@@ -10209,8 +10194,6 @@ variant metal2vulkan::pipeline::RuntimeFact::SimdgroupEmulation SimdgroupEmulati
|
||||
variant metal2vulkan::pipeline::RuntimeFact::StageInRegion StageInRegion
|
||||
variant metal2vulkan::pipeline::RuntimeFact::StageInStride StageInStride { layout: u32 }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::StencilBitDraws StencilBitDraws
|
||||
variant metal2vulkan::pipeline::RuntimeFact::StorageTextureLevelViews StorageTextureLevelViews { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::StorageTextureLevels StorageTextureLevels { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::StorageTextureNumericType StorageTextureNumericType { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::TextureSwizzle TextureSwizzle { slot: SlotRef }
|
||||
variant metal2vulkan::pipeline::RuntimeFact::ThreadgroupMemoryLength ThreadgroupMemoryLength { index: u32 }
|
||||
@@ -10242,26 +10225,20 @@ variant metal2vulkan::pipeline::SlotInterface::Buffer Buffer(BufferSlot)
|
||||
variant metal2vulkan::pipeline::SlotInterface::Sampler Sampler(SamplerSlot)
|
||||
variant metal2vulkan::pipeline::SlotInterface::Texture Texture(TextureSlot)
|
||||
variant metal2vulkan::pipeline::SpecKey::AmplificationCount AmplificationCount
|
||||
variant metal2vulkan::pipeline::SpecKey::BorderTexels BorderTexels(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::DeepThreadgroup DeepThreadgroup
|
||||
variant metal2vulkan::pipeline::SpecKey::FlatLocalSize FlatLocalSize
|
||||
variant metal2vulkan::pipeline::SpecKey::ImageblockHeight ImageblockHeight
|
||||
variant metal2vulkan::pipeline::SpecKey::ImageblockWidth ImageblockWidth
|
||||
variant metal2vulkan::pipeline::SpecKey::LocalSize LocalSize(Axis)
|
||||
variant metal2vulkan::pipeline::SpecKey::MultiRegion MultiRegion
|
||||
variant metal2vulkan::pipeline::SpecKey::NearestPixelSampler NearestPixelSampler(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::ObjectFlatLocalSize ObjectFlatLocalSize
|
||||
variant metal2vulkan::pipeline::SpecKey::ObjectLocalSize ObjectLocalSize(Axis)
|
||||
variant metal2vulkan::pipeline::SpecKey::ObjectMultiRegion ObjectMultiRegion
|
||||
variant metal2vulkan::pipeline::SpecKey::OffsetBaseAxes OffsetBaseAxes(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::OutOfBoundsAlpha OutOfBoundsAlpha(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::Presence Presence(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::RenderAreaHeight RenderAreaHeight
|
||||
variant metal2vulkan::pipeline::SpecKey::RenderAreaWidth RenderAreaWidth
|
||||
variant metal2vulkan::pipeline::SpecKey::SampleCount SampleCount
|
||||
variant metal2vulkan::pipeline::SpecKey::SamplerMinLevel SamplerMinLevel(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::TexelBufferWords TexelBufferWords { stage: Stage, handles: bool }
|
||||
variant metal2vulkan::pipeline::SpecKey::TextureSwizzle TextureSwizzle(SlotRef)
|
||||
variant metal2vulkan::pipeline::SpecKey::TgLength TgLength(u32)
|
||||
variant metal2vulkan::pipeline::SpecKey::TgOffset TgOffset(u32)
|
||||
variant metal2vulkan::pipeline::SpecKey::TileGridWidth TileGridWidth
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1791,8 +1791,6 @@ category, and says what makes an operation carry the note and what may differ. E
|
||||
device.
|
||||
- `metal2vulkan-degrade-f16-fma-double-rounding` (precision). `PrecisionNote::F16FmaDoubleRounding`:
|
||||
Widened half fma rounds twice.
|
||||
- `metal2vulkan-degrade-f16-int-conv-double-rounding` (precision).
|
||||
`PrecisionNote::F16IntConvDoubleRounding`: Widened half-integer conversions round twice.
|
||||
- `metal2vulkan-degrade-grad-from-bias` (precision). `PrecisionNote::GradFromBias`: Bias sampling
|
||||
emulated with gradients may pick another level and another anisotropic footprint than Metal's:
|
||||
derivatives hoisted out of a per-fragment texture choice, which scale by `2^B` through every
|
||||
|
||||
+2
-5
@@ -26,7 +26,7 @@ Columns:
|
||||
|
||||
| Kind | Variants | With a site | Reach system | Reach app | Reach rare | Reach none | Unassessed |
|
||||
|---|---|---|---|---|---|---|---|
|
||||
| Translator and front-end refusals | 114 | 111 | 6 | 25 | 62 | 21 | 0 |
|
||||
| Translator and front-end refusals | 111 | 111 | 6 | 23 | 61 | 21 | 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 |
|
||||
| The translation deadline | 1 | 1 | 0 | 0 | 0 | 1 | 0 |
|
||||
@@ -39,7 +39,7 @@ Columns:
|
||||
|
||||
| Kind | `metal-measured` | `metal-documented` | `metal-takes` | `device` | `ours` | `unknown` | `delegated` | `-` |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| Translator and front-end refusals | 0 | 0 | 3 | 41 | 67 | 0 | 0 | 3 |
|
||||
| Translator and front-end refusals | 0 | 0 | 3 | 41 | 67 | 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 |
|
||||
| The translation deadline | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
|
||||
@@ -67,7 +67,6 @@ Columns:
|
||||
| `InlineAsm` | A call to inline assembly (`asm`) that an entry reaches, other than the empty `asm sideeffect "", ""` decode drops | every device (not implemented) | `ours` | 1: `crates/metal2vulkan-air/src/canon/mod.rs (post_check)` | `none`: inline assembly other than the empty asm("") decode drops, which MSL refuses to compile |
|
||||
| `Linking` | Linkage signatures / stitching / dynamic libraries | every device (not implemented) | `ours` | 3: `crates/metal2vulkan-air/src/canon/link.rs (not_implemented)`, `crates/metal2vulkan-air/src/canon/mod.rs (post_check)` (+1) | `rare`: dynamic libraries and linked functions |
|
||||
| `SimdWidth` | Simdgroup width 32 is not achievable for this usage, stage, and device | devices without a capability the site computes (`subgroup::width_needs(cx.stage, model.stage(cx.stage))`); devices without a capability the site computes (`width_needs(stage, st)`) | `device` | 2: `crates/metal2vulkan/src/device/subgroup.rs (subgroup_tier)`, `crates/metal2vulkan/src/lower/simd/mod.rs (finish)` | `app`: simdgroup functions on a device whose subgroups cannot run 32 wide for the use |
|
||||
| `LocalSize` | A local size beyond a device limit on this axis (`None` | - | `-` | 0 | `app`: a threadgroup size past a smaller device's limit |
|
||||
| `PartialThreadgroups` | A kernel's partial-threadgroups variant (`LoweringInputs::partial_threadgroups`) that the lowering cannot make, its cause named... | devices without a capability the site computes (`limit`); every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/error/mod.rs (partial_threadgroups)`, `crates/metal2vulkan/src/lower/simd/divergent.rs (barriers)` | `app`: a dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made |
|
||||
| `IrreducibleConvergent` | An irreducible region containing a convergent instruction | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/structurize/irreducible.rs (refuse_tangled)` | `rare`: irreducible loops around barriers or simd operations |
|
||||
| `ComputeDerivativesWithSimd` | Compute derivatives in a flattened simd tier | every device (no Vulkan mechanism) | `device` | 1: `crates/metal2vulkan/src/lower/dispatch.rs (plan_kernel)` | `rare`: derivatives in a kernel |
|
||||
@@ -101,7 +100,6 @@ Columns:
|
||||
| `SamplerLodBias` | Sampler LOD bias | devices short of a Vulkan feature the site names; devices without VkLimit::MaxSamplerLodBias; every device (no Vulkan mechanism) | `device` | 3: `crates/metal2vulkan/src/lower/sampler/constexpr.rs (constexpr_desc, 3 sites)` | `app`: constexpr samplers with an LOD bias |
|
||||
| `SamplerCompare` | Sampler compare functions outside what Vulkan allows for the image | devices short of a Vulkan feature the site names | `device` | 1: `crates/metal2vulkan/src/metal/sampler.rs (check_sampler)` | `app`: compare samplers a device cannot apply to the image |
|
||||
| `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 | - | `-` | 0 | `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 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 |
|
||||
@@ -144,7 +142,6 @@ Columns:
|
||||
| `StageStoresAndAtomics` | Buffer or image stores or atomics in a vertex or fragment function without the stage's store feature (`vertexPipelineStoresAndAtomics`,... | devices without VkFeature::FragmentStoresAndAtomics | `device` | 1: `crates/metal2vulkan/src/lower/access/tile_memory.rs (written)` | `app`: stores or atomics in vertex or fragment functions on a device without the feature |
|
||||
| `FunctionConstantArgument` | An observed read of a pointer entry argument that a function-constant predicate removes, other than an absent buffer (which reads as null) or an... | every device (not implemented) | `ours` | 1: `crates/metal2vulkan-air/src/canon/interface.rs (absent_values)` | `rare`: a function-constant-removed argument read |
|
||||
| `SamplerBicubicFilter` | A use of Metal's bicubic filter that no Metal reading establishes | every device (not implemented) | `ours` | 2: `crates/metal2vulkan/src/lower/sampler/bicubic.rs (refuse)`, `crates/metal2vulkan/src/lower/sampler/select.rs (bicubic_refused)` | `system`: bicubic filtering forms Metal does not establish, through a constexpr sampler of filter::bicubic (a runtime sampler of MTLSamplerMinMagFilterCubic filters as nearest) |
|
||||
| `GroupCount` | A dispatch whose threadgroup count on `axis` exceeds `maxComputeWorkGroupCount` by more than the binder splits into regions (`None` | - | `-` | 0 | `rare`: more threadgroups than a device dispatches, past the binder's split |
|
||||
| `IntersectionFunctionTable` | A ray intersection through intersection functions | every device (not implemented) | `ours` | 6: `crates/metal2vulkan/src/lower/raytracing/mod.rs (intersect, 2 sites)`, `crates/metal2vulkan/src/lower/raytracing/mod.rs (null_table)` (+3) | `rare`: ray tracing (out of scope by ruling) |
|
||||
| `IndependentBlending` | Color attachments whose write masks or blend states differ, as Metal sets them per attachment, on a device without `independentBlend`, where no... | devices without VkFeature::IndependentBlend | `device` | 1: `crates/metal2vulkan/src/pipeline/link/graphics.rs (uniform_blend)` | `rare`: per-attachment blending on a device without independentBlend |
|
||||
| `RasterSampleCount` | A `rasterSampleCount` outside the device's framebuffer sample counts for the pipeline's attachments (`framebuffer*SampleCounts`), and, for a color... | devices without a capability the site computes | `device` | 1: `crates/metal2vulkan/src/pipeline/graphics.rs (sample_count_properties)` | `app`: a sample count a device lacks for the attachments |
|
||||
|
||||
@@ -17,7 +17,6 @@ feature DynamicCall rare function pointers and function tables
|
||||
feature InlineAsm none inline assembly other than the empty asm("") decode drops, which MSL refuses to compile
|
||||
feature Linking rare dynamic libraries and linked functions
|
||||
feature SimdWidth app simdgroup functions on a device whose subgroups cannot run 32 wide for the use
|
||||
feature LocalSize app a threadgroup size past a smaller device's limit
|
||||
feature PartialThreadgroups app a dispatchThreads grid that is not whole threadgroups, of a kernel whose partial-threadgroups variant cannot be made
|
||||
feature IrreducibleConvergent rare irreducible loops around barriers or simd operations
|
||||
feature ComputeDerivativesWithSimd rare derivatives in a kernel
|
||||
@@ -51,7 +50,6 @@ feature SamplerBorderColor app border colors a device cannot express
|
||||
feature SamplerLodBias app constexpr samplers with an LOD bias
|
||||
feature SamplerCompare app compare samplers a device cannot apply to the image
|
||||
feature PixelSamplerCompare none Apple's compiler rejects it
|
||||
feature TexelBuffer app texture buffers past a device's texel-buffer limits
|
||||
feature RasterOrderGroups rare raster order groups
|
||||
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)
|
||||
feature PrimitiveId rare primitive_id on a device without geometry or tessellation shaders, in an indexed draw or behind a mesh function
|
||||
@@ -94,7 +92,6 @@ feature AlphaToOne rare alphaToOneEnabled on a device without alphaToOne
|
||||
feature StageStoresAndAtomics app stores or atomics in vertex or fragment functions on a device without the feature
|
||||
feature FunctionConstantArgument rare a function-constant-removed argument read
|
||||
feature SamplerBicubicFilter system bicubic filtering forms Metal does not establish, through a constexpr sampler of filter::bicubic (a runtime sampler of MTLSamplerMinMagFilterCubic filters as nearest)
|
||||
feature GroupCount rare more threadgroups than a device dispatches, past the binder's split
|
||||
feature IntersectionFunctionTable rare ray tracing (out of scope by ruling)
|
||||
feature IndependentBlending rare per-attachment blending on a device without independentBlend
|
||||
feature RasterSampleCount app a sample count a device lacks for the attachments
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 17 and column 65.
|
Reference in new issue
Block a user