File: macos.rst

package info (click to toggle)
mesa 24.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 279,568 kB
  • sloc: ansic: 2,122,763; xml: 1,010,303; cpp: 513,137; python: 70,351; asm: 38,315; lisp: 20,211; yacc: 12,036; lex: 3,372; sh: 841; makefile: 256
file content (21 lines) | stat: -rw-r--r-- 1,285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Notes for macOS
================

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
   Meson itself, are available in `homebrew <https://brew.sh>`__, which has a
   Mesa package for reference. The exception seems to be Mako, a Python module
   used for templating, which you can install as ``pip3 install mako``.
-  macOS is picky about its build-time environment. Type ``brew sh`` before
   building to get the Homebrew dependencies in your path.

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
``-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.