Files
metal2vulkan/docs
Anees Iqbal 041cdad847 Declare the device's native answers at the notices site for every case
One work packet, landed as 7 commits (8c74f645e2..5a1a62bb0e on archive/development-linear-2026-10-28), in order:

* Declare the device's native answers at the notices site for every case

Under the owner's native-arithmetic ruling the device's own answer is the
contract wherever it has a native form, and the note that says so fires in
almost every case that computes, converts or samples: on llvmpipe 270 cases
differed only by announcing such notes (2,123 unlisted gaps in all, against 62
before the exact paths' deletion).

The suite now holds a fixed set of those notes declared for every case
(replay::NATIVE_NOTES), chosen from the PrecisionNote and Degradation docs:
the native maths, half and sampling classes, the device's denormals, NaN bits,
functions and precision bounds, tiny-product rounding, depth conversion and
depth test, texel and colour conversions, sampling level and filters, and the
device's resolve. compare_run holds them beside a case's own allowances under
the same rules (the notices site alone, justified only where the code was
announced), and they never count among a case's named or unfired allowances.
They declare nothing about a value: every value still compares field by field,
and the README says a value the device's answer moves is a known-gaps row where
the note derives no tolerance. Notes of what the device lacks, of an emulation's
own precision, or of a Metal form not measured or not built stay each case's.

Also: Policy::Exact and the replay docs now say what
DevicePolicy::exact_answers() selects (the five runtime switches) and that no
switch touches arithmetic.

Tests: a native note is declared for every case and counted nowhere; it
declares no value and excuses no other notice; every native-* kind is in the
set, each once, each a precision kind. The first two fail with the set emptied
(checked by chaining an empty iterator). The undeclared-notice test moves off
two kinds that are now native. Verified: cargo nextest run -p
metal2vulkan-conformance --all-features (1006 passed); on lavapipe in
linux-gate (arm64) the replay's unlisted gaps fall from 2,123 to 584.

* Drop the shader-color-conversion declarations that can no longer fire

Since color writes were left to the device's own conversion, the runtime
announces shader-color-conversion only for a half-float attachment of a
pipeline under TextureWriteRoundingMode::NearestEven (StageModule's
rounded_colors), whatever the device. No case of the suite sets that rounding
mode, so the 18 case files that declared the notice for normalized
attachments declared something no venue can announce: the lavapipe replay
reported 81 such declarations as never fired. The normalized store is now the
device's colour conversion, a native note the suite declares for every case.

The declarations, the comments that explained them, the one helper only they
used (blend_interactions' converts_in_the_shader) and the tests' allowance
counts go; rotated_targets also drops its per-state choice, since blended and
unblended states both store through the device's conversion.

Verified: cargo nextest run -p metal2vulkan-conformance --all-features (1006
passed) and clippy on the crate clean.

* Declare three cases' own notices; keep unannounced native declarations out of loosening reports

read-write-tier-descriptors now names carried-decoded-twin and decoded-block-twin,
read-write-tier-held names unnamed-texture-unviewable beside the shared-memory
notice, and texture-pairs-usage-crossings' usage row names decoded-texel-precision.
Each fired on llvmpipe (LLVM 21.1.8) at the notices site and nowhere else; they are
not the device's arithmetic, so they stay per case.

The walk tried every covering allowance and, where none held, reported the first
unjustified one as "the case loosens this site". With the native-note declarations
covering case/notices/* for every case, a case that named nothing read as loosening
its notices site with native-transcendentals. Only the case's own allowances can be
such a loosening now; a native declaration the run did not announce is as if absent.

Verified: cargo nextest run -p metal2vulkan-conformance --all-features, 1007 passed;
the new test an_unannounced_native_note_is_no_unjustified_loosening fails with the
guard removed. The arm64 lavapipe replay (linux-gate) before the guard and after the
declarations shows no notice-site row left: 576 unlisted, 573 divergent values and 3
refusals, all in value sites.

* Hold the device's vertex conversion among the suite's native notes

device-vertex-conversion, which landed on development, is the device's
fixed-function conversion of a normalized vertex attribute's codes: a conversion
the device answers natively, as the texel and colour conversions are. The suite
now declares it at the notices site for every case with the rest of the set.

Verified: the native-note tests of the conformance crate pass (the set test holds
every member a precision kind, once).

* Bring the llvmpipe known-gaps rows to the device's native answers

With the native notes declared for every case, the arm64 lavapipe replay left
576 unlisted sites (573 divergent values, 3 refusals) and 14 rows that looked
fixed. Each is now a row that says what differs, which note records the
device's answer, whether that note's recorded bound covers the site, and what
is open; the header gains a paragraph on such rows, the one kind that is not a
bug of ours in itself under the owner's rule 1.

- 13 rows take their new answers: half-texel-nans r16f/rg16f/rgba16f at three
  sites each (472/940/1874 elements, bound 511), the RGB9E5 rows of
  vertex-format-float4 and -half4 (32, 65407), and blend-interaction-format-srgb8
  one-one-add (55) and one-one-reverse-subtract (90).
- sampler-mip-linear's clamp-float-max row is dropped: the site is exact now.
- 19 rows scoped to the CI venue (LLVM 23.1.1) whose answer the arm64 venue
  matches exactly are widened to every llvmpipe; blend srgb8 one-one-subtract,
  which differs (78 on CI, 81 here), gets a row scoped to the arm64 venue.
- 543 new rows, venue llvmpipe, in families: texel and storage NaN encodings,
  half and vertex conversions, 8-bit one-ulp texel conversions, colour
  conversions at ties, the device's linear filter, 3D and border addressing
  (open: unmeasured against the note), digests (open: an element read), and
  read-write-tier-held's three refusals of a held read-write texture
  (open: runtime and translator work).
- Rows asking for an exact fix the ruling rules out are reworded: the fast-math
  blend families (half-output-blends, argb8-targets, blend srgb8,
  blend-sweep-operations), half-texel-nans, and the nine 8-bit normalized vertex
  rows, which device-vertex-conversion now records within its stated bound.
  The RGB9E5 rows keep their fix: a missing component's default and a vertex
  format the device need not offer are capability, not arithmetic.

Verified: scripts/linux-gate --platform arm64 replay --cpu on lavapipe
(llvmpipe LLVM 21.1.8, 128 bits) exits 0: 0 unlisted, 0 looking fixed; verdicts
announced 419, divergent 130, exact 522, lacks-feature 36, never-returned 4,
refused 11. The ledger tests of the conformance crate pass. The CI venue's
(amd64, LLVM 23.1.1) answers for the new llvmpipe rows are not verified here.

* Regenerate CONFORMANCE-COVERAGE.md for the llvmpipe ledger rows

The coverage document lists the known-gaps ledger's rows, which the previous
commit brought to the device's native answers (298 ledger rows before, 841 now).

Verified: python3 -I scripts/conformance-coverage/coverage.py --check passes, and
so does the conformance crate's conformance_coverage test.

* Say that sampler-border-colours' rows sample a 3D texture

The case samples an RGBA 3D texture (sampler_filtering.rs, Family::Border), and
device-sampling's probe measured 2D textures only; the six rows now say so.

Text only, the waiting-on field, which the replay does not match. Verified: the
ledger and coverage tests of the conformance crate pass, and coverage.py --check
reads the regenerated document as derived.
2026-10-28 17:24:21 +02:00
..