From a477c5d857d9f95fb893dc7eb758e0013e20804f Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 10 Nov 2026 04:46:19 -0800 Subject: [PATCH] SEMANTICS_VERSION 2018 and RUNTIME_VERSION 2010, with the runtime-sources pin, for border texels in handle-table entries and the heap filter note What: abborder (steelbrain/abborder fbfb71b163, the six commits before the last) and overnotes (2) (steelbrain/overnotes dbc8a2781e, the commit before this one), landed together. - An argument buffer's texture read through a sampler with a border (an opaque border colour, a runtime sampler, clamp_to_zero past a swizzled texture's edge) reads Metal's border texels: a bordered heap read uses an Indexed handle (element | entry_index << 16) and loads the read flags and border texels (FLAG_BORDER_TEXELS, bits 3..14) from the handle-table entry, the slot BorderTexels constant's layout. The runtime's handle tables (bind/heap.rs entry_flags) now carry each texture's border texels. The entry stays 16 bytes, so ARTIFACT_FORMAT stays 499. read-through-heap-border and -heap-sampler were refused NotImplemented(ArgumentBufferTextures); read-through-rgba8-swizzled read the unswizzled out-of-bounds texel. - An argument buffer's linear sample announces bicubic-filter-arithmetic only where its heap can name a raw-held texture of a form we filter (SpecKey::HeapRawTextures carries two bits). SEMANTICS 2017 -> 2018 (both branches' bumps met development's 2017); RUNTIME_VERSION 2009 -> 2010 for the table entries; the pin follows. Verified by the branches: abborder: clippy -D warnings (m2v_gpu, m2v_cpu_icd), rustdoc; the translator negative control (border bits cleared) fails both table tests; the runtime test heap_border_texels passes on llvmpipe and fails with the border bits cleared; the whole read-through family replayed: lavapipe exactly the expected 96 rows, M3 6 exact and 7 announced, RADV 780M 12 announced and 1 exact with 0 element differences; release translations of the six touched kernels on five profiles at most 0.030 s and 44.5 MiB. overnotes: 141/141 engine tests (lavapipe cfg), the fix reverted fails all 4 touched tests; heap_extended_reads and half_write_nans lanes 11/11, the RGBA8 and bfloat dispatches announcing no note. Here: refusal surface, conformance and Metal coverage regenerated, api-signatures --check clean. Owed: the M3 re-bless of the engine inventory (rt_heap_ow, rt_heap_arg) and golden tables, and the two cases' cost records. --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 30c1500fb..ede8ca8ed 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -77855a9862d95c2d886166083745096c0da630700e632ecb3fc1d742f74626ca +eebdfd316339882eaa4d76a485b7b95389de9d6cfcc23bedadc67d6dd0377094 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 56975bbf4..831587d84 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 499; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 2009; +pub const RUNTIME_VERSION: u32 = 2010; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles