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)
This commit is contained in:
Anees Iqbal committed 2026-11-10 06:13:23 -08:00
1 parent 131be007fa
commit dbbdec25b6
1 file changed
+5 -3
@@ -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;