4 ms·
The announcement is pretty confusing since Mesa is used on Linux but Metal only exists on macOS/iOS. I guess this is only for Linux VMs running on macOS such as
by wmf 1y ago
The announcement is pretty confusing since Mesa is used on Linux but Metal only exists on macOS/iOS. I guess this is only for Linux VMs running on macOS such as the Android emulator. Maybe it could also be used to run desktop Linux in a VM.
- lights0123 1y agoMesa can be used on other operating systems. See https://www.phoronix.com/news/Zink-Windows-Kopper-Progress https://www.phoronix.com/news/Zink-Windows-Kopper-Progress for an example of using its OpenGL-to-Vulkan translator on Windows.
- justsid 1y agoNot just that, we actually ship Zink with our Vulkan based game because for absolutely insane reasons many years ago the decision was made to expose a GL context to plugins for graphics work. The hardest part was to provide a couple of required extensions and massaging Zink to use our Vulkan device with our extensions and also stub out its memory allocator for ours. Oh, and making sure we get to get dibs on loading opengl32.dll/libgl.so that translates into Zink. It weirdly sounds crazier than it is. Mike is an absolute legend for all of his work on Zink. Edit: Clicked on your link and they are directly talking about work there. Serves me right for not reading it first.
- jchw 1y agoMesa is also usable on other platforms, including Windows and macOS. It's even theoretically possible to use the Asahi Linux hardware Mesa drivers on macOS, though actually doing so would involve hacking around undocumented APIs. I actually thought this was demonstrated before (during early testing) but I can't find it. Someone else managed to get the RADV AMD driver working on Windows[1]. It is not fully merged upstream yet, but I think they would like to get it merged upstream eventually. Windows 10 on ARM (maybe Windows 11?) also use Mesa with Microsoft and Collabora's d3d12 backend to run OpenGL and OpenCL applications on top of d3d12, for hardware that does not have proper OpenGL and OpenCL drivers[2]. And of course, it ought to be possible to use llvmpipe/lavapipe with off-screen rendering pretty much anywhere you can get Mesa to build, although in practice I believe SwiftShader usually nets you a lot better performance if it's applicable. So Mesa is actually not used only on Linux, it can be used pretty much anywhere, actually ships with Windows, and of course many other free software operating systems also ship Mesa. [1]: https://www.phoronix.com/news/RADV-Windows-XDC-2024 https://www.phoronix.com/news/RADV-Windows-XDC-2024 [2]: https://devblogs.microsoft.com/directx/announcing-the-opencl-and-opengl-compatibility-pack-for-windows-10-on-arm/ https://devblogs.microsoft.com/directx/announcing-the-opencl...
- pjmlp 1y agoMesa has taken a middleware role for quite some time now.