2021-04-10 07:44:14 +05:30
Notes for macOS
================
2022-08-15 10:22:57 +01:00
.. image :: https://github.com/mesa3d/mesa/actions/workflows/macos.yml/badge.svg
:target: https://github.com/mesa3d/mesa/actions/workflows/macos.yml
2022-06-09 10:47:00 +01:00
:alt: macOS CI
2021-04-10 07:44:14 +05:30
Mesa builds on macOS without modifications. However, there are some details to
be aware of.
- Mesa has a number of build-time dependencies. Most dependencies, including
2022-11-03 08:50:29 +01:00
Meson itself, are available in `homebrew <https://brew.sh> `__ , which has a
2021-04-10 07:44:14 +05:30
Mesa package for reference. The exception seems to be Mako, a Python module
2022-11-02 20:50:58 +01:00
used for templating, which you can install as `` pip3 install mako `` .
- macOS is picky about its build-time environment. Type `` brew sh `` before
2021-04-10 07:44:14 +05:30
building to get the Homebrew dependencies in your path.
2021-04-21 00:44:32 +05:30
Mesa's default builds with the Apple GLX uses Mesa as a front for the
hardware-accelerated system OpenGL framework, to provide hardware acceleration
to X11 applications on macOS running via XQuartz.
Mesa's software rasterizers also work on macOS. To build, set the build options
2024-03-22 09:07:58 +00:00
`` -Dosmesa=true -Dglx=xlib `` .
Mesa's Gallium drivers can be used on macOS by using the `` -Dgallium-drivers=<drivers> `` build option. Do not use with the previous software rasterizers options, instead add `swrast` to the `` <drivers> `` list. Only software renderers and drivers that forward to other APIs can work, any linux hardware drivers will not work. For details on each driver's macOS support see their specific documentation.