From 2edb063c6aa55117bcc9465db49ba6dbbd478751 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 12 Nov 2026 03:43:05 -0800 Subject: [PATCH] tests::linear_alignment: skip a profile that states no nonCoherentAtomSize roadmap-2022, a requirements profile, states none; the rule's sweep over the committed profiles now reads the 18 that state their line and checks that many do. Job m3-max-20418 failed on it. --- .../metal2vulkan-runtime/src/tests/linear_alignment.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/tests/linear_alignment.rs b/crates/metal2vulkan-runtime/src/tests/linear_alignment.rs index cb0a73167..c4f607b5c 100644 --- a/crates/metal2vulkan-runtime/src/tests/linear_alignment.rs +++ b/crates/metal2vulkan-runtime/src/tests/linear_alignment.rs @@ -47,11 +47,18 @@ fn the_answer_is_the_usages_largest_and_at_least_the_line() { ); assert_eq!(placed_answer(&[None, None, None], line), 16, "{stem}"); } + // Every profile that states its line (a requirements profile may state none: roadmap-2022). + let mut stated = 0; for (stem, _) in committed_descriptions() { - let line = line(&stem); + let Some(line) = profile_value(&stem, "nonCoherentAtomSize").and_then(|v| v.as_u64()) + else { + continue; + }; + stated += 1; assert!(line.is_power_of_two() && line <= 256, "{stem}: {line}"); assert_eq!(placed_answer(&[Some(16)], line), line.max(16), "{stem}"); } + assert!(stated >= 18, "{stated} profiles state their line"); } fn identity() -> DriverIdentity {