diff --git a/crates/metal2vulkan-conformance/src/cases/compute_render_chains.rs b/crates/metal2vulkan-conformance/src/cases/compute_render_chains.rs index f971f6c5c..94dffe02f 100644 --- a/crates/metal2vulkan-conformance/src/cases/compute_render_chains.rs +++ b/crates/metal2vulkan-conformance/src/cases/compute_render_chains.rs @@ -810,7 +810,8 @@ mod tests { use crate::allowance::Justification; for case in all() { // Every allowance is a notice declaration on the notices site, so no row loosens a - // value, and the one notice declared is the venue's memory model. + // value: the venue's memory model, and pixel-sampler-scaling for the row whose + // fragment function samples through a runtime sampler slot. let codes: Vec = case .allowances() .iter() @@ -827,12 +828,11 @@ mod tests { } }) .collect(); - assert_eq!( - codes, - [metal2vulkan_runtime::Degradation::SharedInSystemMemory.code()], - "{}", - case.name() - ); + let mut wanted = vec![metal2vulkan_runtime::Degradation::SharedInSystemMemory.code()]; + if case.subject.crossing == Crossing::KernelToFragment { + wanted.push(metal2vulkan_runtime::Degradation::PixelSamplerScaling.code()); + } + assert_eq!(codes, wanted, "{}", case.name()); assert_eq!(case.metal_source(), MetalSource::Run); case.shaders().unwrap(); let inputs = case.inputs().unwrap(); diff --git a/crates/metal2vulkan-conformance/src/cases/render_chains.rs b/crates/metal2vulkan-conformance/src/cases/render_chains.rs index 95fcda850..08fac383f 100644 --- a/crates/metal2vulkan-conformance/src/cases/render_chains.rs +++ b/crates/metal2vulkan-conformance/src/cases/render_chains.rs @@ -791,7 +791,10 @@ mod tests { // The whole set, one declaration a code the row can announce: a code the row // announces and declares nowhere is a divergence, and a code it declares but cannot // announce is an allowance standing behind nothing, so the set is stated exactly. - let mut wanted = vec![Degradation::SharedInSystemMemory.code().to_owned()]; + let mut wanted = vec![ + Degradation::SharedInSystemMemory.code().to_owned(), + Degradation::PixelSamplerScaling.code().to_owned(), + ]; if case.subject.sample.half_output { wanted.push(Degradation::HalfOutputFastMathBlend.code().to_owned()); }