Carve MoltenVK on the M3 Max's identity out of DevicePackConversion for the measured forms
reims-vgpu treats precision notes as fatal on Apple GPUs. On the M3 Max (MoltenVK 1.4.2, macOS 27.0.1) the module's air.pack/air.unpack of rgb565 in float, and in half of unorm4x8, snorm4x8, unorm.rgb10a2 and unorm.rgb565 (both ways) and unorm2x16 and snorm2x16 (packed), answer Metal's words, so DevicePackConversion was recorded where nothing differs. What: DriverDeviation::MetalPackConversions (VkProperty::MetalPackConversions), taken by the APPLE9 MoltenVK row alone. Where taken, select_pack records no note for a form lower::arith::pack::measured names and the module requires the property (ArithPlan::metal_packs). The lowering is unchanged on every profile. Kept noted, with the inputs that differ (probe over the same inputs, fast and precise math): the sRGB format (85,511 of 3,083,776 float packs, 3,286 of 65,536 half packs, every unpack), unorm.rgb10a2 in float (9,163 of 131,072 unpacked words, 1,257 packed floats), the half unpacks of unorm2x16/snorm2x16 (8 lanes: our float quotient rounded twice), and snorm.rgb10a2 (unmeasured). Docs: Metal's float rgb565 measured to round the product to float first (the exact-product model misses 55 of the tie set) and to unpack by the float reciprocal; the artifact rustdoc and API.md said Metal rounds the exact product and divides correctly rounded for every format, now qualified for rgb565 in float. Verified (all on this M3 Max): - Plain Metal running runtime_lane::pack_conversions' own AIR (12 kernels: every code of every field, every half in every channel, 68,672 float words incl. 33 around each 5/6-bit tie): the lane's model matches Metal in every word. - runtime_lane::pack_conversions on MoltenVK: no kernel records the note, 0 inputs differ. - tests::engine_arith::pack_conversions_are_metals_where_measured: all 32 normalized forms on lavapipe and moltenvk-m3 (note and property per form); it fails without the deviation row (its takes == moltenvk-m3 assertion) and without the select_pack change (the note). - Focused core run (engine_arith, driver_facts, fast_paths, golden, api_signatures, pack, engine_tile, engine_texture): 197 passed. Also: drops an unused binding the NaN-moves commit left in engine_native_half. The NaN-moves commit's message gives SEMANTICS_VERSION 1946; since the rebase onto 68074019a3 it is 1948 (ARTIFACT_FORMAT_VERSION 483), which covers this commit too. FAST-PATHS row for air.pack updated. api_signatures blessed (two variants); golden hashes re-blessed (the moltenvk-m3 profile). (cherry picked from commit b344f5e515e5b1c586877ca45fedead512ea0ad2)
This commit is contained in:
1 parent
3e28f68331
commit
452c17aa2c
19 files changed
+732
-25
No files matched your search
+12
-2
@@ -3490,12 +3490,22 @@ bound.
|
||||
device's: `GLSL.std.450`'s `Pack`/`Unpack` `Unorm4x8`, `Snorm4x8`, `Unorm2x16` and `Snorm2x16`,
|
||||
their definition by the device's `NClamp`, multiply, `RoundEven` and reciprocal for `rgb10a2` and
|
||||
`rgb565`, and the MSL transfer functions by the device's `Pow` for `unorm4x8_srgb`'s colour. Metal
|
||||
rounds the exact product and divides correctly rounded, answers code 0 for a NaN channel, and
|
||||
rounds the exact product and divides correctly rounded (`unorm565` in `float`: the product
|
||||
rounded to `float` first, and the code times the `float` nearest the reciprocal, as the
|
||||
definition does), answers code 0 for a NaN channel, and
|
||||
takes an sRGB colour through its twelve-bit table; a packed code is within one of Metal's, an
|
||||
unpacked value within 2.5 ulp, a decoded sRGB colour within half a twelve-bit step (`1 / 8190`)
|
||||
of Metal's step beyond its `Pow`'s bound. Also a write of an 8-bit sRGB storage texture held
|
||||
through its UNORM alias, which encodes by `unorm4x8_srgb`'s pack. Not recorded for a
|
||||
`float` conversion of the four named formats on MoltenVK, Metal's own there. The same conversions
|
||||
`float` conversion of the four named formats on MoltenVK, Metal's own there. **Exempt:** on a
|
||||
profile that takes `DriverDeviation::MetalPackConversions`, MoltenVK on Apple's GPUs of the
|
||||
Apple M3 Max's macOS 27 identity, the forms measured to answer Metal's at every code and every
|
||||
`half` (on Metal and on the runtime, `runtime_lane::pack_conversions`) record no note and
|
||||
require `VkProperty::MetalPackConversions`: `unorm565` in `float`, and in `half` `unorm4x8`,
|
||||
`snorm4x8`, `unorm10a2` and `unorm565` both ways and `unorm2x16` and `snorm2x16` packed. The
|
||||
sRGB format, `unorm10a2` in `float` (9,163 of 131,072 unpacked words and 1,257 of 3,083,776
|
||||
packed `float`s differ), `snorm10a2`, and the `half` unpacks of `unorm2x16` and `snorm2x16`
|
||||
(Metal's single rounding, 8 lanes differ) stay noted there. The same conversions
|
||||
serve an implicit imageblock access of a normalized attachment (a `half` load rounding the
|
||||
unpacked `float` once more), a fragment function's read and write of an 8-bit sRGB attachment
|
||||
in the interlocked storage form or through its word view, and a snapshot read's decode of a
|
||||
|
||||
Reference in new issue
Block a user