A half read of a 32-bit or small float texel records no NaN note where the device's half is Metal's
On MoltenVK on the M3 Max (m3-max-13447, default policy) half-texel-nans-r32f, -rgba32f, -rg11b10f and -rgb9e5f answered every value as Metal does and still announced device-nan-encoding; runtime_lane::half_texel_nans read 0 differing half lanes. The profile takes DriverDeviation::MetalHalfConversion, whose measurement covers the half result of a read, sample and gather of every float word of RGBA32Float (NaNs among them) and 16,384 random words each of RG11B10Float and RGB9E5Float. half_texel_nans now records DeviceNanEncoding on such a profile only where the bound class is a half-float one (packed field 0) or of no family, and requires VkProperty::MetalHalfConversion; elsewhere it keeps the one clause of TexelFormat::NAN_FREE. The 16-bit float formats keep the note: no deviation records their NaN payloads as measured. Test: engine_texture's half-read test checks both forms per committed profile (clauses, formats that hold, the property) and that a profile of the deviation ran. Docs: the note's rustdoc, API.md's exemptions, the storage_properties doc. Under the branch's SEMANTICS_VERSION (2015). (cherry picked from commit b03555f8c9f05e382f744593cfaa01f2dc3bbb20)
This commit is contained in:
1 parent
9eae0f923a
commit
782da3582b
4 files changed
+83
-34
No files matched your search
+5
-1
@@ -3693,7 +3693,11 @@ bound.
|
||||
write to a packed small float one (`RG11B10Float`) on a profile that takes
|
||||
`DriverDeviation::MetalSmallFloatNans`, MoltenVK on Apple's GPUs of the Apple M3 Max's macOS 27
|
||||
identity, measured byte for byte against plain Metal over every `half` and 33,792 `float` words,
|
||||
16,446 NaNs among them (the module requires `VkProperty::MetalSmallFloatNans`).
|
||||
16,446 NaNs among them (the module requires `VkProperty::MetalSmallFloatNans`); and a `half`
|
||||
read, sample or gather of a texture slot bound to a 32-bit float or packed small float format
|
||||
(`RG11B10Float`, `RGB9E5Float`) on a profile that takes `DriverDeviation::MetalHalfConversion`,
|
||||
the same identity, whose `half` of such a texel is Metal's, its NaN `0x7e00` (the module
|
||||
requires `VkProperty::MetalHalfConversion`).
|
||||
- `metal2vulkan-degrade-restricted-depth-range` (precision). `PrecisionNote::RestrictedDepthRange`:
|
||||
The device compares a depth texture's texels on a device without `VK_EXT_depth_range_unrestricted`
|
||||
enabled (MoltenVK on the M3 Max, ANV on the Iris Xe, RADV), where Vulkan gives a depth image no
|
||||
|
||||
Reference in new issue
Block a user