DriverDeviation::MetalSampler, CubeGradientRoute and GraphicsCubeGradientTangents, with
VkProperty::MetalSampler and its codec tag, were never taken: Device::from_queries enables no
Metal* property and always inserts VkProperty::DeviceSampling, and no committed profile carries
a Metal* property. ProfileFields::cube_gradients, with CubeGradients and CubeGradientRoute, had
one reachable value (Vulkan's rule for both stages), so it goes too. The forms only they reached
go with them:
- Cube gradients: CubeFootprint::Metal and ::Projected (MoltenVK's gradientcube and its
graphics fixup); a cube's explicit gradients take Length, Face or Word by the sampler's
anisotropy alone, and CubeGradientFootprint is raised wherever the shader does not take
Metal's level and taps itself.
- The sampler requirement: SamplerFamily::metal_sampler merges into device_sampling. Every
sample, gather and LOD query, the hoisted no-bias samples and BiasReach::Metal's included,
requires VkProperty::DeviceSampling and records DeviceSampling, as on every real device.
- The half-texel routine (lower/texture/half.rs) and everything only it read: HalfClass,
half_class and heap_half_class, TexelLanes and TexelOrigin, the texel argument of texel_value
and held_value, sample_lanes and word_reads_one, Sampling::one_texel's word forms (one_texel
now answers whether an access may read one texel, which float_texel_notes reads) and
half_texel, SamplerSlot::texels, SlotPlan::half_format and unmeasured, TexturePlan::heap_half,
the declarations half_format, half_routine and plain_half, the module's table of heap texel
classes (AccessPlan::heap_class, declare_heap_classes, heap_texel_class, HEAP_CLASS_WORDS, and
texel_format::heap_classes, whose tests now read the layout itself),
texel_round::f32_to_half_from_even, NoteOn::Unmeasured, SpecKey::UnmeasuredTexels and
PlainHalfTexels with their plan answers, TexelFormat::YCBCR_8192, MEASURED_ON_METAL_SAMPLER,
unmeasured_on_metal_sampler and plain_on_metal_sampler, and the identity-domain refusal of a
heap half sample that only a Metal-sampler profile met.
- The Metal sampler's YCbCr filter note (linear::filter_note and metal_filtered_ycbcr), with
NoteOn::HeapYCbCr and ArgumentSamplers, SpecKey::HeapYCbCrTextures and
FilteringArgumentSampler, their plan answers and TexelFormat::two_plane_ycbcr.
- The anisotropic not-mipmapped clamp [0, 0] (vk_sampler's own_anisotropic) and its note's
source (anisotropic::own_not_mipmapped); PrecisionNote::NotMipmappedAnisotropicFilter, its
codec tag, conformance Degradation and validation allowance go with its only source.
- The rest: device_texels, device_decode's and fragment/color.rs's Metal decode,
bind::plan::resources' swizzled_packed profile test, and border_read's metal_sampler (and
device_opaque_black's format argument, which nothing then read).
Rule 1, per note the commits stop raising: every one is case (b), no difference goes silent.
- filter_note's HalfSampleFilter and FloatSampleFilter (slot clauses on a bound two-plane YCbCr
format and the bound sampler word, heap clauses on HeapYCbCrTextures and
FilteringArgumentSampler): raised only on a profile with VkProperty::MetalSampler, so on no
real device. Such a filtered sample goes to the device's own sampler, and every sample,
gather and LOD query sets device_sampling, so the stage records DeviceSampling, whose entry
covers the device's filter of a two-plane texture. The in-place Y'CbCr model's
HalfSampleFilter and FloatSampleFilter stay as they were.
- NotMipmappedAnisotropicFilter: raised only under own_not_mipmapped, which needed
MetalSampler. An anisotropic sample on a device with samplerAnisotropy goes to the device's
sampler (DeviceSampling, its not-mipmapped clamp [0, 0.25] the device's footprint), and one
without it keeps AnisotropicFilter or DeviceAnisotropicFilter, as on every real device.
- The rest only widen: HalfTexelConversion (now outright at every half read, sample and gather,
where the Metal-sampler profile tested the bound class), DeviceTexelConversion, SrgbTexelDecode
and CubeGradientFootprint, each withheld only on a Metal-sampler or Metal-route profile.
The precision-note catalogue loses NotMipmappedAnisotropicFilter alone; the docs of
GradFromBias, HalfTexelConversion, HalfSampleFilter, SrgbTexelDecode, FloatSampleFilter,
DeviceSampling and DeviceTexelConversion lose their Metal-sampler clauses (docs/API.md's entries
already stated the one rule).
Validation: comparison.rs's allowance list loses NotMipmappedAnisotropicFilter (unbounded),
which no device raised; its HalfSampleFilter and FloatSampleFilter reasons now name the in-place
model, their class unchanged (unbounded). No validation file names a deleted DriverDeviation.
Also, from the planner: the citation of VUID-RuntimeSpirv-NonUniform-06274, which spec 1.4.366
no longer has, becomes VUID-RuntimeSpirv-None-10148 and VUID-RuntimeSpirv-subgroupSize-10149 in
spirv/builder/ops/memory.rs, spirv/ir/module.rs (twice), spirv/serialize/mod.rs and the doc of
non_uniform_elements_are_decorated_through_what_carries_them. Comments only.
Tests: each deleted form's tests go with it: lower/arith/tests/half_texel.rs (the routine, its
plain arm, and the steps that bounded the Metal-sampler note) with arith/tests.rs'
quantize_flush_of, which only it read,
f32_to_half_from_even_is_exact_on_every_tie, the projected-footprint test and the swizzle
helper of face/tests/anisotropic.rs, texel_format's ycbcr_8192, wide16 and
metal_sampler_s_read_bits tests, the format version 326 round trip, and the routes' asserts in
engine_handles, engine_heap_binder and engine_sampler_unk. The rest assert the device's sampler
on every profile: half_reads_round_their_texel_to_nearest_even (was
half_reads_convert_by_the_bound_format), heap_half_texels_round_the_device_s_texel (was
heap_half_texels_convert_by_the_handle_s_class), heap_linear_samples_are_the_device_s (no
FloatSampleFilter, outright or specialized), engine_sample_coordinates' requires_the_sampler,
engine_bias_reach, engine_graphics_binder's border test, engine_srgb_decode, engine_sampler,
the routines test, the merged-members round trip, and metal/sampler.rs' and
format/tests.rs' opaque-black calls.
SEMANTICS_VERSION 2239, ARTIFACT_FORMAT_VERSION 577 (placeholders; main renumbers). SEMANTICS:
the profile's fingerprint and the notes of the same input change form. ARTIFACT: the codec loses
the VkProperty, the PrecisionNote and four SpecKey tags. RUNTIME_VERSION stays: the pinned
sources' edits (device/, bind/plan/resources.rs and slots.rs, metal/sampler.rs, cache/codec.rs)
remove forms and keys no profile reached, so no run changes; runtime-sources.sha256 takes the new
hash. api_signatures is blessed; docs/REFUSALS.md and the coverage are unchanged.
Consumer check (consumer-uses.sh, consumer development 2040502291, 62 refs): CubeGradientRoute,
GraphicsCubeGradientTangents, CubeGradients, cube_gradients, FilteringArgumentSampler,
HeapYCbCrTextures, PlainHalfTexels and UnmeasuredTexels 0 hits (code). MetalSampler and
NotMipmappedAnisotropicFilter: 0 hits on development (its answer.rs names neither, and it has no
gpu/rgbx.rs); named in crates/reims-vgpu-vulkan/src/answer.rs and gpu/rgbx.rs on 36 of the
consumer's steelbrain/* branches younger than a day.
Verified: m3-max-61441 (msi-laptop, this tree): fmt, clippy (all features, --cfg m2v_gpu,
--cfg m2v_cpu_icd), Rustdoc green; tests 5861 of 5863 passed. The two failures:
golden_hashes_match_the_table, every one of its 29536 cells under a changed profile fingerprint
(re-blessed on development at a named pin), and the_old_render_descriptor_key_keeps_its_value,
left unpinned until the next named pin.
Rebased onto development d10a14d5af: the SEMANTICS placeholder is one above its 2235 in stack order
(ARTIFACT_FORMAT_VERSION is already above its 574). The checks above ran at the old base acc706ca47;
the rebased stack's tip is checked by m3-max-61756 (msi-laptop), at the stack rebased on d6d56b8a7c
(tip 5c74fad38d, whose diff from its base is this stack's diff from d10a14d5af): fmt, clippy (all
features, --cfg m2v_gpu, --cfg m2v_cpu_icd) and Rustdoc green; nextest of metal2vulkan,
metal2vulkan-validation, metal2vulkan-conformance and metal2vulkan-runtime ran 5877 tests, 5870
passed. Of the 7 failures, the old render descriptor key's test is unpinned; golden_hashes and
engine inventory parts 4, 5, 7 and 8 are bless due (the profiles' fingerprints changed); and
metal::state's encoder_raster_state_needs_its_features fails the same way at development d10a14d5af
itself (m3-max-61802, where runtime-floor gained depthBiasClamp in a529fb658e), as inventory parts
3, 4, 5 and 8 do there. The stack as rebased on 72e1754218 (tip 090d544208: the same product
changes, without the test-only push sweep fix) played 36 distinct streams over 61 runs on five nodes
with 0 refused (player m3-max-61537; plays m3-max-61548, 61549, 61550, 61559 and 61569).