From 8329c9e9546d695523e1293c4a187dc1eb0d0e67 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 06:30:41 -0800 Subject: [PATCH] RUNTIME_VERSION 1891: in-place YCbCr linear samples take Vulkan's model by default, Metal's behind Exact video4k (26 commits, f195cfae62..171e80a3c1): DevicePolicy::ycbcr_in_place_reads (YCbCrInPlacePolicy::Model by default, Exact under exact_answers) for linear samples of two-plane 4:2:0 planes read in place through texel buffers, which no device filters natively: the model blends 4 luma and 4 chroma fetches with midpoint siting and Metal's coefficients, recorded as HalfSampleFilter/FloatSampleFilter and announced ycbcr-filter-not-exact; Exact keeps Metal's filter. FAST-PATHS row, both settings tested. The conversion's staging buffer, sets and refresh are made at the first conversion, and the device-conversion notice is announced there. SEMANTICS_VERSION 1993 (the branch's). Lane fixes for devices that convert the format (780M), and half reads off Metal's texture unit take the device's rounding (PrecisionNote::HalfTexelConversion, one half ulp). Verified (video4k): 780M um870 8546 core 31/31, runtime ycbcr 5/5, aligned_byte 2/2, lane ycbcr 48/48; M3 8549 core 31/31, runtime 7/7, lane 48/48; 780M linear sample 1314-1744 us model against 3094-7793 us exact. gem10 780M lane 8547 and clippy x3/rustdoc/lavapipe 8550 follow post-merge. --- 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 cfaa68fb0..932efb5c9 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -97e5f459c3f69055ddbf694e20a8f67aa49f51ad3de130c8e0674d48033f94fb +c6ecd10c1e75df7f018cdfebaac4abe2f99e42956ae6f91f46bdf12947b6129c diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 7fcf3f5c5..d7a7bdfd0 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 = 493; /// 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 = 1890; +pub const RUNTIME_VERSION: u32 = 1891; /// 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