From dbbdec25b6dcee69080297ca42663f10c7bc44bf Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 10 Nov 2026 03:53:45 -0800 Subject: [PATCH] Heap texel write test: a half texel requires the small float property where the profile takes it The heap half write now records its NaN note under the families the stage's handles can name (SpecKey::HeapNanFamilies) and, as the slot path does, requires each family's property where the profile takes its deviation. On MoltenVK's M3 Max identity that is MetalSmallFloatNans for a half texel too, not only for a float one, so `a_heap_texel_write_is_the_devices_write` expected the property only for a float texel and failed for the half one (gem10 m3-max-13561, f4fab8b4ec). It now expects the property wherever the profile takes the deviation, for either texel. Verified: the test failed at f4fab8b4ec (moltenvk-m3 float false); the run of the fixed test is the next potluck job. (cherry picked from commit e4e3d069bdeadaf72cd5893040019f7591b2f513) --- crates/metal2vulkan/src/tests/engine_handles.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan/src/tests/engine_handles.rs b/crates/metal2vulkan/src/tests/engine_handles.rs index 516165c83..242e8af8a 100644 --- a/crates/metal2vulkan/src/tests/engine_handles.rs +++ b/crates/metal2vulkan/src/tests/engine_handles.rs @@ -1776,8 +1776,10 @@ declare void @air.write_texture_2d.{elem}(ptr addrspace(1), <2 x i32>, {ty}, i32 /// packed small float texture, whose stored NaN is the device's; but for a `float` texel on a /// profile whose stores of a `float` NaN into the half-float and the packed small float formats /// are measured to be Metal's (`DriverDeviation::MetalHalfStorageNans` and -/// `DriverDeviation::MetalSmallFloatNans`: MoltenVK on the M3 Max's identity), which then -/// requires `VkProperty::MetalSmallFloatNans`. +/// `DriverDeviation::MetalSmallFloatNans`: MoltenVK on the M3 Max's identity). A `half` texel's +/// note holds under the families the heap can name (`SpecKey::HeapNanFamilies`, held in +/// `tests::engine_extended_range::heap`). Either texel requires `VkProperty::MetalSmallFloatNans` +/// where the profile takes `DriverDeviation::MetalSmallFloatNans`. #[test] fn a_heap_texel_write_is_the_devices_write() { for float in [false, true] { @@ -1815,7 +1817,7 @@ fn a_heap_texel_write_is_the_devices_write() { a.requirements .properties .contains(&crate::device::requirements::VkProperty::MetalSmallFloatNans), - float && small, + small, "{what}" ); compiled += 1;