Files
metal2vulkan/docs
Anees Iqbal 9873d6cfed Logic operation: RGB10A2Unorm and BGR10A2Unorm on 16-bit codes, as Metal's
The probe (job m3-max-17294 on the M3 Max) confirms Metal's rule for the 10-bit unorm formats at
all 12,800 texels of its formats and masks cases: each stored code widened to 16 bits
(round(d * 65535 / max)), the operation on it and the output's 16-bit code, the result narrowed
back to the channel's code. The fragment function's operation now computes it as a 16-bit
channel's (logic::channels answers 16 for a 10-bit or 2-bit unorm channel), the device's write
narrowing the result, so these formats are no longer refused under the function's operation.

Vulkan's logicOp, which a device that has it draws with, operates on the 10-bit codes
themselves: recorded as a known gap in FAST-PATHS. The lane now checks Metal's rule for
RGB10A2Unorm and counts apart the draws that store exactly the per-channel rule's texel under
Vulkan's operation. Translator tests: RGB10A2Unorm compiles under the function's operation on
MoltenVK and on lavapipe without logicOp; B5G6R5Unorm is refused there.

Not yet built or run.
2026-11-11 14:18:20 -08:00
..