diff --git a/crates/metal2vulkan-runtime/src/degradation.rs b/crates/metal2vulkan-runtime/src/degradation.rs index d38b97e3e..6d7b37ede 100644 --- a/crates/metal2vulkan-runtime/src/degradation.rs +++ b/crates/metal2vulkan-runtime/src/degradation.rs @@ -2231,8 +2231,10 @@ degradations! { /// float or `A8Unorm` format, among others, an 8-bit unorm one written by fewer than four /// lanes, or a 16-bit float or 8-bit unorm one under a blend of the second source): in /// `float`, each step rounded, the sources and the blend color clamped to a normalized - /// format's range, the device's conversion storing the result. Metal's blend for these - /// formats is not measured. + /// format's range, the device's conversion storing the result; or of an 8-bit sRGB format + /// under a blend of the second source in a module compiled with fast math, in the 8-bit + /// unorm blend's rounded forms over the decoded texel. Metal's blend for these is not + /// measured. UnmeasuredFetchBlend = "unmeasured-fetch-blend"; } } diff --git a/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/blend8.rs b/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/blend8.rs index 13e945193..7c5ef0c19 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/blend8.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/framebuffer_fetch/blend8.rs @@ -32,6 +32,11 @@ //! encoder's color past each end, blue alone stored, and alpha alone stored, against the //! arithmetic `Blend::unorm8` names for each, each channel the mask leaves out its code; checked as //! above. +//! +//! The four-channel 8-bit sRGB formats (`BGRA8Unorm_sRGB`, `RGBA8Unorm_sRGB`) under premultiplied +//! over and those blends: the same arithmetic over the texel as a fetch decodes it, encoded by +//! Metal's table (`Blend::srgb8`, measured on the M3 Max); asserted on a device that fetches +//! through the pixel interlock. use super::{form, library, through_inputs}; use crate::runtime_lane::degrade_notices::counts; @@ -530,16 +535,13 @@ type State = ( Option