One work packet, landed as 10 commits (262093ec48..8e4bfa28b4 on archive/development-linear-2026-10-28), in order:
* Describe each driver deviation's route as the code takes it now
The DriverDeviation, VkProperty and driver-table docs still named the
exact emulations the native-arithmetic change sets deleted (Metal's
libm, division, denormal flushing, NaN selection, min/max picks, the
emulated sampler, the color, storage and Depth16 write roundings, the
depth stand-in). Each variant's doc now says what a profile that takes
it gets and what one without it gets: the device's own answer with the
precision note recorded, or, where a capability hangs on the answer, its
emulation or refusal.
- error/mod.rs: DriverDeviation's header and the float-function, NaN,
sampler, color-write, FMA, denormal, quantize, min/max, half
arithmetic, storage-write, texel-write and Depth16 variants.
- device/requirements.rs: the matching VkProperty docs; MetalColorWrites
says no module requires it (compile.rs never adds it), and
MetalHalfQuantize drops the clamp claim the code does not make.
- device/driver_facts.rs: the table preambles and measurement paragraphs
(docs and citations only, no row or variant changed); the deleted
resolve_rounding::color_resolves_against_metals_rules citation now
names the_device_resolve_rounds_as_announced, which holds the row.
- runtime_lane/heap_textures.rs: heap_depth_textures_keep_their_bytes,
renamed from ..._with_their_twins (no twin exists), with the two
driver_facts.rs citations updated.
- lower/texture/mod.rs and pipeline/compile.rs: the storage_properties
doc and comment list the four properties select_write relies on,
dropping the 0x7fc00000 store.
Verified by reading each route in lower/ (narrow, fma, denormal, nan,
arith, sampler, stage_io/color_write, texture) and pipeline/compile.rs,
and by git grep for every cited test and item.
* Describe the pixel samplers, routines and color-write inputs as they run now
Translator docs that still described the deleted emulated sampler, the
cube face fold routine, the compiler-word-bound fit and the shader's own
color-write rounding:
- pipeline/artifact.rs: PixelSamplerScaling no longer names a linear
sample's emulation or a MetalSampler condition; a runtime word's linear
pixel sample snaps onto its footprint cell on every device
(position::plan plans SnapKind::WordCell with no device test), a word of
mixed filters is the device's. ArgumentPixelSamplerScaling says it is
recorded on every device for any access but a 2D gather and a sample
without a comparison, as select.rs pixel_note does.
- lower/sampler/select.rs (pixel_note) and lower/sampler/mod.rs
(RuntimeSlot::cells, ::texels): the cell snap holds on every device; the
slot's word filter fields are read for a half texel's conversion alone,
on a MetalSampler device (half_converts requires !device_texels).
- device/profile.rs: FunctionsInlinedAtEveryCall lists the routines that
exist (wide-integer divisions, precise fmod, texel conversions, filter
sums, sampling routines; no face fold); takes_driver_deviation names the
route a deviation's docs give for a driver without it.
- error/mod.rs: RuntimeInput::ColorWrites says what the color-write map
decides (the conversion that records a note, and NearestEven's half
rounding), not a rounding of every output.
- bind/color_resolve.rs and its tests: drop the citation of
resolve_rounding's cost test, which is deleted.
- device/mechanism.rs: drop the trailing comment on the deleted
ExactFormsOverCompilerLimit fact.
Verified by reading position::plan, select.rs pixel_note and the
half_converts branch, spirv/builder/module.rs's routine kinds and every
mb.routine site, pipeline/color_writes.rs, and git grep for each cited
item.
* Describe texel conversion, YCbCr filtering and depth comparison as the device's
Translator docs still named the deleted linear-filter emulation, the
shader's own depth comparison and the depth twin:
- lower/texture/half.rs: off MetalSampler devices the device's sampler
filters and the half is its float texel rounded to nearest even
(device_texels), not this routine's; the only fetch-computed filter that
skips the routine is the in-place YCbCr one.
- lower/texture/mod.rs (half_texels): drop the example of a runtime
sampler's sRGB raw-code emulation for the `arm` clauses.
- metal/format/mod.rs: a two-plane YCbCr texture's linear sample is the
device's filter, noted, but where its planes are read in place.
- pipeline/artifact.rs (RestrictedDepthRange) and lower/texture/slot.rs
(depth_comparison): every comparison is the device's; no shader-made
comparison is left to exclude.
- lower/sampler/select.rs: a depth comparison reads the texture's own
depth image (no twin).
- lower/sampler/mod.rs (Sampling::words): list the terms plain_words
sums; no linear emulation, level grid or shader comparison term exists.
Verified by reading device_texels, half_texels and both its callers,
linear.rs filter_note and metal_filtered_ycbcr, depth_comparison's one
caller, in_place.rs, and plain_words.
* Describe the runtime's YCbCr filter notice and variant kinds as they fire now
- degradation.rs: YCbCrFilterNotExact fires on a device that samples
through Metal's own sampler alone (linear.rs metal_filtered_ycbcr is
None elsewhere), where the stage records HalfSampleFilter or
FloatSampleFilter for any two-plane YCbCr format bound; a native sampler
announces device-sampling. The module doc drops the exact forms dropped
to fit a compiler word bound, whose kind and fit are deleted.
- ycbcr.rs: linear filtering of the converted texels is the device
sampler's (Metal's own on MoltenVK, announced ycbcr-filter-not-exact);
only planes read in place are Metal's filter exactly.
Verified by reading lower/sampler/linear.rs, in_place.rs and the runtime's
Kinds::of and degrade_bound_formats.
* Describe the lanes' and cases' native forms where they named deleted emulations
Docs and comments only; no expectation changed.
- validation runtime_lane/driver_deviations.rs: the half quantize,
min/max, half arithmetic and half widening bullets say what the module
does off the deviation (the device's own conversion or quantize, the
same NMin/NMax/NClamp noted native-min-max, narrow::from_bits' decode),
not the deleted integer rounding, operand picks and exact_answers
decode.
- validation observation_contract/comparison.rs: HalfSampleFilter and
FloatSampleFilter are a YCbCr texture through Metal's own sampler.
- validation runtime_lane/pixel_samplers.rs, conformance
cases/pixel_samplers.rs: the pixel coordinates reach Metal's texels
through the translator's snaps, filtered by the device's sampler.
- conformance cases/snorm_tile_store.rs: no exact tile store and no
FAST-PATHS row; only extended-range, padded and bfloat attachments take
a load pass.
Verified by reading the lanes' assertions, select.rs pixel_note,
position::plan and narrow.rs.
* State the native forms in the doc pages where they promised exact switches
- README.md: the promise that every speed-for-accuracy choice has an
opt-in exact switch was false for the device's maths, rounding,
conversions and sampler, which have none; it now says those are the
device's, recorded, and the runtime's choices keep their switches.
- docs/API.md: exact_answers selects the runtime's five switches (as
policy.rs's exact_answers sets them), not exact forms of the native
arithmetic; an unmeasured driver takes each deviation's documented
route, not a conservative one; half widening's NaN and denormal are the
device's under its own conversion or the float controls; Depth32Float
texels are the depth image's, announced where it clamps or flushes; the
catalogue intro names the native forms.
- docs/ARCHITECTURE.md: the native forms are the device's on every device
with no policy choice; the policy's accuracy switches are the runtime's.
- docs/FAST-PATHS.md (after the opening section): a YCbCr texture's image
form holds Metal's texels exactly and its linear sample is the device's
filter; only the in-place form is Metal's filter.
Verified against device/policy.rs, lower/arith/narrow.rs, the depth twin's
deletion (c11e653acd) and lower/sampler/linear.rs.
* Drop the exact golden table from VALIDATION.md's emitter-stability contract
4bf2c22aad deleted golden_hashes_exact.tsv and its table in
golden_hashes.rs; VALIDATION.md still described a second table of every
sampling fixture under exact_answers. The contract now names the one table.
Verified: crates/metal2vulkan/tests/ holds golden_hashes.tsv alone, and
golden_hashes.rs names no exact table.
* Re-pin the runtime sources after the doc audit
The audit's commits edit doc comments and comments only in files the
runtime guard hashes (degradation.rs, ycbcr.rs, and translator files the
build lists); no run's behaviour changes, so RUNTIME_VERSION stays.
Verified: the_runtime_sources_are_the_committed_ones failed with 81ebd500
committed against 8bc0e06b computed, and passes after this pin.
* Drop the 0x7fc00000 hand-off from half_write_nans_converted's doc
a6e97e7f93 deleted the NaN canonicalization before storage writes
(StorageImageClass::SmallFloatQuietNan among it): a half write to a
packed small float hands the device the half widened, as to a 16-bit
float channel. The doc still said such a write hands it 0x7fc00000, and
tied MetalHalfTexelWrites to both kinds, where it states the 16-bit
float store alone (lower/texture/mod.rs half_write_nans).
Verified by reading half_write_nans and the write emission
(lower/texture/emit.rs), which canonicalizes no small-float NaN.
* Re-pin the runtime sources after the half-write NaN doc fix
metal/format/mod.rs is a runtime guard input; the preceding commit edits a
doc comment there alone, so no run's behaviour changes and RUNTIME_VERSION
stays.
Verified: the_runtime_sources_are_the_committed_ones failed with 8bc0e06b
committed against 279b25d4 computed, and passes after this pin.