News: 0001492460

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Autodesk Contributes Mesa Vulkan WSI Support For Apple's Metal

([Mesa] 2 Hours Ago Software Vulkan To Apple Metal)


An interesting merge request opened this week and already merged for Mesa 24.3 comes from an Autodesk engineer adding Vulkan Windowing System Integration (WSI) around Apple's Metal API for use on macOS.

Aleksi Sapon of Autodesk contributed WSI Metal support to Mesa. The intent here is on better leveraging Mesa's Lavapipe Vulkan software implementation atop Apple macOS systems. Unfortunately no Vulkan hardware driver magic for use on macOS -- for that there is MoltenVK for routing Vulkan API to Metal.

Sapon explained in [1]the Mesa merge request :

Implement WSI Metal support for macOS. Based on the headless and Win32 implementations. Implements the core functionality.

This takes advantage of unified memory on Apple devices to directly blit the CPU image to the surface, using a "no copy" buffer interpreted as a texutre.

The code was merged today for Mesa 24.3. Autodesk dabbling with Vulkan on macOS shouldn't come as too much of a surprise as even all the way back to 2021 [2]Autodesk began exploring MoltenVK use .



[1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31208

[2] https://www.phoronix.com/news/Vulkanised-Fall-2021-Materials



zexelon

O! Wanderers in the shadowed land
despair not! For though dark they stand,
all woods there be must end at last,
and see the open sun go past:
the setting sun, the rising sun,
the day's end, or the day begun.
For east or west all woods must fail ...
-- J. R. R. Tolkien