From cb4dfa3bbee144c699e1a4063f4c9ef5cf79ec11 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 00:33:17 -0800 Subject: [PATCH] texture_placement_device: the pitch test counts the refusals a device reached, and requires none Development's lavapipe leg at edde5779b1 failed a_pitch_the_device_lays_no_image_at_answers_its_shadow: llvmpipe refused none of the 8 pitches (its DRM_FORMAT_MOD_LINEAR image takes every one), and the test required at least one. Every answer matched the texture made there, as on the M3, where MoltenVK refuses six of the eight and the refusal arm runs (inplace's m3-max-7464). Which pitches a device refuses is the driver's answer, so the test reports the count and holds the answer-against-made comparison only. Verified: the lavapipe rerun at edde5779b1 (msi m3-max-7539) printed every case's answer equal to its made route, 0 of 8 refused. --- .../src/tests/texture_placement_device.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/texture_placement_device.rs b/crates/metal2vulkan-runtime/src/tests/texture_placement_device.rs index 18340b23c..b3b0af9d3 100644 --- a/crates/metal2vulkan-runtime/src/tests/texture_placement_device.rs +++ b/crates/metal2vulkan-runtime/src/tests/texture_placement_device.rs @@ -590,13 +590,12 @@ fn a_pitch_the_device_lays_no_image_at_answers_its_shadow() { refused += 1; } } + // Which pitches a device refuses is the driver's answer: MoltenVK refuses six of these, + // llvmpipe none (its modifier image takes every one). Every answer above matched the texture + // made, refused or not; the count says whether this device reached the refusal. eprintln!( "TEXTURE-PLACEMENT on {}: {refused} of {} pitches refused", device.name(), cases.len() ); - assert!( - refused > 0, - "no pitch was refused: the test reached no refusal" - ); }