SEMANTICS_VERSION 2005 for Metal 4.1's block reads and the base-level clamp-to-edge read

nvreds 35692bb372..591b8e1804: air.block_read_{texture,depth}_2d[_array].<T>
(MSL block_read<2,1>/<1,2> and sparse_block_read) expands in canon into the
two reads of its texels through the call's own sampler, level
clamp(lod, 0, levels-1), each status byte bit 0 of its read's status word; a
non-literal block size stays refused (typed). A constexpr clamp-to-edge
read(sampler, coord, offset, lod) now reads level 0 with the coordinate
clamped into it, and 0 at lod >= levels, as the M3 measures; a cube's
clamp-to-edge read is refused (Metal reads 0 past the extent and level 0
inside, not built). Measured on the M3 Max, macOS 27.0.1, metal 32023.922,
-std=metal4.1. Refused inputs translate and nonzero-level edge reads change:
SEMANTICS 2004 -> 2005. golden_hashes, public_fixture_expectations and the
compile census are re-blessed on development after this.

Verified by nvreds: M3 at the commit-2 tree (llvm 21): clippy, golden bless
moving nothing, 559/559 tests matching texture|edge|sparse|status|canon|
air_input|families|api_signatures; the engine test runs nine kernels on every
profile in both scheduling orders over 14 points x 2 texels with spirv-val;
7 authored cases: Metal's outputs equal the model word for word, MoltenVK
matches Metal 7/7 (11827). Here: signatures --check, refusal surface and
METAL-COVERAGE regenerate unchanged.
This commit is contained in:
Anees Iqbal committed 2026-11-09 06:15:23 -08:00
1 parent 4cc7e2c2d4
commit 4669a4f991
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ mod tests;
/// unchanged version, and its bless records the version. Independent of the crate's version and of
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
/// history.
pub const SEMANTICS_VERSION: u32 = 2004;
pub const SEMANTICS_VERSION: u32 = 2005;
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another