From 85bf1ef03d2ffad2f0ca7422b4f617710167293c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 02:27:48 -0800 Subject: [PATCH] Narrow writes device test: count the narrow report lines from the classes, not a fixed three The pooled class adds four narrow lines (two accesses, two row ends). Correction to 44fa96d151's message: WorkCounts is not #[non_exhaustive], so a consumer building it with a struct literal breaks on the new field; its docs say it is for the lanes, not part of the API. Verified: the M3 run 7901 failed here (16 lines, asserted 12); rerun follows. (cherry picked from commit f430e4a52279d588cf73cbf2b89bb52a69d997dc) --- .../metal2vulkan-runtime/src/tests/narrow_writes_device.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/narrow_writes_device.rs b/crates/metal2vulkan-runtime/src/tests/narrow_writes_device.rs index 1a005336a..4a7165fdf 100644 --- a/crates/metal2vulkan-runtime/src/tests/narrow_writes_device.rs +++ b/crates/metal2vulkan-runtime/src/tests/narrow_writes_device.rs @@ -187,8 +187,9 @@ fn narrow_written_textures_take_the_path_their_narrow_check_answered() { "NARROW-WRITES on {name}: the check took {:?}", device.in_place_check_took() ); - // Three classes, two narrow accesses, two row ends; none pending. - assert_eq!(narrow.len(), 12, "{report:?}"); + // Every class, two narrow accesses, two row ends; none pending. + let lines = crate::in_place::PagesClass::ALL.len() * 2 * crate::in_place::RowEnds::ALL.len(); + assert_eq!(narrow.len(), lines, "{report:?}"); assert!( narrow.iter().all(|line| !line.ends_with("Pending")), "{narrow:?}"