[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[868c7c2] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c0a8c0dc] | 7 | <!ENTITY mesa-download-http "https://mesa.freedesktop.org/archive/mesa-&mesa-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY mesa-download-ftp " ">
|
---|
[b8b314f5] | 9 | <!ENTITY mesa-md5sum "8415005045bfa3a423da5ef1a2303a42">
|
---|
| 10 | <!ENTITY mesa-size "28 MB">
|
---|
| 11 | <!ENTITY mesa-buildsize "1.2 GB (with docs, add 263 MB for tests)">
|
---|
| 12 | <!ENTITY mesa-time "5.1 SBU (with docs; add 0.6 SBU for tests; both with parallelism=4)">
|
---|
[868c7c2] | 13 | ]>
|
---|
| 14 |
|
---|
[7a395d1] | 15 | <sect1 id="mesa" xreflabel="Mesa-&mesa-version;">
|
---|
| 16 | <?dbhtml filename="mesa.html"?>
|
---|
[868c7c2] | 17 |
|
---|
[7a395d1] | 18 | <title>Mesa-&mesa-version;</title>
|
---|
[868c7c2] | 19 |
|
---|
[7a395d1] | 20 | <indexterm zone="mesa">
|
---|
| 21 | <primary sortas="a-Mesa">Mesa</primary>
|
---|
[868c7c2] | 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="package">
|
---|
[7a395d1] | 25 | <title>Introduction to Mesa</title>
|
---|
[868c7c2] | 26 |
|
---|
[eb425b4] | 27 | <para>
|
---|
| 28 | <application>Mesa</application> is an OpenGL compatible 3D graphics
|
---|
| 29 | library.
|
---|
| 30 | </para>
|
---|
[868c7c2] | 31 |
|
---|
[fdcf97c7] | 32 | <note>
|
---|
| 33 | <para>
|
---|
| 34 | <application>Mesa</application> is updated relatively often. You may
|
---|
| 35 | want to use the latest available &mesa-major-minor;.x mesa version.
|
---|
| 36 | </para>
|
---|
| 37 | </note>
|
---|
| 38 |
|
---|
[b9874725] | 39 | &lfs121_checked;
|
---|
[ca0c29cc] | 40 |
|
---|
[868c7c2] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[de938a4e] | 44 | <para>
|
---|
[7a395d1] | 45 | Download (HTTP): <ulink url="&mesa-download-http;"/>
|
---|
[de938a4e] | 46 | </para>
|
---|
[868c7c2] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[de938a4e] | 49 | <para>
|
---|
[7a395d1] | 50 | Download (FTP): <ulink url="&mesa-download-ftp;"/>
|
---|
[de938a4e] | 51 | </para>
|
---|
[868c7c2] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[de938a4e] | 54 | <para>
|
---|
[7a395d1] | 55 | Download MD5 sum: &mesa-md5sum;
|
---|
[de938a4e] | 56 | </para>
|
---|
[868c7c2] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[de938a4e] | 59 | <para>
|
---|
[7a395d1] | 60 | Download size: &mesa-size;
|
---|
[de938a4e] | 61 | </para>
|
---|
[868c7c2] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[de938a4e] | 64 | <para>
|
---|
[7a395d1] | 65 | Estimated disk space required: &mesa-buildsize;
|
---|
[de938a4e] | 66 | </para>
|
---|
[868c7c2] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[de938a4e] | 69 | <para>
|
---|
[7a395d1] | 70 | Estimated build time: &mesa-time;
|
---|
[de938a4e] | 71 | </para>
|
---|
[868c7c2] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
[1334c9a] | 74 |
|
---|
[625079b6] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[a07e9eb] | 76 | <itemizedlist spacing="compact">
|
---|
[ab75b52] | 77 | <!-- 9 Apr 23. Change to unversioned patch since it never changes. -->
|
---|
[a07e9eb] | 78 | <listitem>
|
---|
[eb425b4] | 79 | <para>
|
---|
| 80 | Recommended patch:
|
---|
[3edc406] | 81 | <ulink url="&patch-root;/mesa-add_xdemos-2.patch"/>
|
---|
[7a395d1] | 82 | (installs 2 demo programs for testing Mesa - not needed if you
|
---|
[713981db] | 83 | install the <ulink url="https://archive.mesa3d.org/demos/">
|
---|
[39dd48b] | 84 | mesa-demos</ulink> package)
|
---|
[ace536a] | 85 | </para>
|
---|
[eeb29511] | 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
[1334c9a] | 88 |
|
---|
[7a395d1] | 89 | <bridgehead renderas="sect3">Mesa Dependencies</bridgehead>
|
---|
[868c7c2] | 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[7b74537e] | 92 | <para role="required">
|
---|
[df343952] | 93 | <xref linkend="xorg7-lib"/>,
|
---|
[e2aae21f] | 94 | <xref linkend="libdrm"/>, and
|
---|
| 95 | <xref linkend="Mako"/>
|
---|
[eb425b4] | 96 | </para>
|
---|
[868c7c2] | 97 |
|
---|
[606dfd4] | 98 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[eb425b4] | 99 | <para role="recommended">
|
---|
[d2f50ba] | 100 |
|
---|
[c833c06] | 101 | <itemizedlist spacing="compact">
|
---|
| 102 | <listitem>
|
---|
| 103 | <para>
|
---|
| 104 | <xref linkend="glslang"/> and <xref linkend="vulkan-loader"/>
|
---|
| 105 | (required for Vulkan support)
|
---|
| 106 | </para>
|
---|
| 107 | </listitem>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>
|
---|
| 110 | <xref linkend="libva"/> (to provide VA-API support for some
|
---|
| 111 | gallium drivers. Note that there is a circular dependency.
|
---|
| 112 | You must build <application>libva</application> first without
|
---|
| 113 | mesa's EGL and GLX support, install this package, and rebuild
|
---|
| 114 | <application>libva</application>)
|
---|
| 115 | </para>
|
---|
| 116 | </listitem>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>
|
---|
| 119 | <xref linkend="libvdpau"/> (to build VDPAU drivers)
|
---|
| 120 | </para>
|
---|
| 121 | </listitem>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>
|
---|
| 124 | <xref linkend="llvm"/> (required for the r300, r600, and radeonsi
|
---|
| 125 | drivers, and the LLVMpipe software rasterizer which can make the
|
---|
| 126 | swrast driver much faster)
|
---|
| 127 | </para>
|
---|
| 128 | </listitem>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>
|
---|
| 131 | <xref linkend="wayland-protocols"/> (required for
|
---|
| 132 | <xref role="nodep" linkend='plasma-build'/>,
|
---|
| 133 | GNOME, and recommended for
|
---|
| 134 | <xref role="nodep" linkend='gtk3'/>)
|
---|
| 135 | </para>
|
---|
| 136 | </listitem>
|
---|
[b8b314f5] | 137 | <listitem>
|
---|
| 138 | <para>
|
---|
| 139 | <xref linkend="libclc"/> and <xref linkend="ply"/> (required for
|
---|
| 140 | the Intel drivers)
|
---|
| 141 | </para>
|
---|
| 142 | </listitem>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>
|
---|
| 145 | <xref linkend="cbindgen"/> and <xref linkend="rust-bindgen"/>
|
---|
| 146 | (required for the swrast Vulkan driver and the Nouveau driver)
|
---|
| 147 | </para>
|
---|
| 148 | </listitem>
|
---|
[c833c06] | 149 | </itemizedlist>
|
---|
[606dfd4] | 150 | </para>
|
---|
[60bcf481] | 151 |
|
---|
[87a677a] | 152 | <note>
|
---|
| 153 | <para>
|
---|
| 154 | <emphasis role="bold">Choosing Mesa Drivers</emphasis>
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | In the instructions below, all the available drivers are built. That
|
---|
| 159 | will almost always work. However, it is not efficient. Depending on
|
---|
| 160 | your video hardware, you probably need only specific drivers.
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <para>
|
---|
| 164 | The first thing you need to know is which type of video device you
|
---|
| 165 | have. In some cases it is built into the CPU. In others is is a
|
---|
| 166 | separate PCI card. In either case you can tell what video hardware you
|
---|
| 167 | have by running:
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | <command>lspci | grep VGA</command>
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
| 174 | <para>
|
---|
| 175 | The video device is most likely one of three families: AMD, Intel, or
|
---|
| 176 | Nvidia. See the Command Explanations for 'gallium-drivers' below to
|
---|
| 177 | see what options are available for your specific video hardware (or
|
---|
| 178 | emulated video hardware). You should probably add the swrast option as
|
---|
| 179 | a backup driver.
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <para>
|
---|
| 183 | For 'platforms' you can select x11 and/or wayland. Note that in BLFS
|
---|
| 184 | currently only Gnome and KDE can use wayland. If you are not going to
|
---|
| 185 | use one of those desktop environments then you probably only want x11.
|
---|
| 186 | </para>
|
---|
| 187 |
|
---|
| 188 | <para>
|
---|
| 189 | For 'vulkan-drivers' you may want to limit the selection to your
|
---|
| 190 | current hardware. These drivers are used by some specific applications.
|
---|
| 191 |
|
---|
| 192 | For example, ffmpeg (including ffplay) will use Vulkan instead of
|
---|
| 193 | OpenGL for rendering video on the GPU. If you do not want to do this
|
---|
| 194 | you may or may not want to install them.
|
---|
| 195 | </para>
|
---|
| 196 | </note>
|
---|
| 197 |
|
---|
[07584d8] | 198 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 199 | <para role="optional">
|
---|
[57bcce9] | 200 | <xref linkend="libgcrypt"/>,
|
---|
[751dd1e] | 201 | <xref linkend="libunwind"/>,
|
---|
[b4d0b5a] | 202 | <xref linkend="lm_sensors"/> <!-- for libsensors according to Meson -->,
|
---|
[57bcce9] | 203 | <xref linkend="nettle"/>,
|
---|
[b4d0b5a] | 204 | <xref linkend="valgrind"/>,
|
---|
[9dc1c31] | 205 | <ulink url="https://archive.mesa3d.org/demos/">mesa-demos</ulink>
|
---|
[1cdb1f7] | 206 | (provides more than 300 extra demos to test
|
---|
[973dabe9] | 207 | <application>Mesa</application>; this includes the same programs added by
|
---|
[b4d0b5a] | 208 | the patch above),
|
---|
[17aa21c] | 209 | <ulink url="https://omxil.sourceforge.net/">Bellagio OpenMAX Integration
|
---|
[e929885] | 210 | Layer</ulink> (for mobile platforms), and
|
---|
| 211 | <!--<ulink url="https://github.com/KhronosGroup/glslang">glslang</ulink>
|
---|
| 212 | (for vulkan drivers),-->
|
---|
[b4d0b5a] | 213 | <ulink url="https://github.com/tizonia/tizonia-openmax-il/wiki/Tizonia-OpenMAX-IL/">
|
---|
[e929885] | 214 | libtizonia</ulink>,
|
---|
| 215 | <!-- <ulink url="https://github.com/KhronosGroup/Vulkan-Loader">Vulkan-Loader</ulink> -->
|
---|
[07584d8] | 216 | </para>
|
---|
[bee072a] | 217 | <!--
|
---|
[9065a56b] | 218 | <note>
|
---|
[fd2f9a2] | 219 | <para>
|
---|
[e4fbb24] | 220 | The instructions below assume that
|
---|
[d2f50ba] | 221 | <application>LLVM</application> with the r600/amdgpu and host backends
|
---|
| 222 | and run-time type information (RTTI - needed for nouveau) are installed.
|
---|
| 223 | You will need to modify the instructions if you
|
---|
| 224 | choose not to install all of these. For an explanation of Gallium3D see
|
---|
[e83a3bb] | 225 | <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
|
---|
[fd2f9a2] | 226 | </para>
|
---|
[9065a56b] | 227 | </note>
|
---|
[bee072a] | 228 | -->
|
---|
[868c7c2] | 229 | </sect2>
|
---|
| 230 |
|
---|
[797182d] | 231 | <sect2 role="kernel" id="mesa-kernel"
|
---|
| 232 | xreflabel='Mesa Kernel Configuration'>
|
---|
[2c92dada] | 233 | <title>Kernel Configuration</title>
|
---|
| 234 |
|
---|
| 235 | <para>
|
---|
| 236 | Enable the following options in the kernel configuration and
|
---|
| 237 | recompile the kernel if necessary:
|
---|
| 238 | </para>
|
---|
| 239 |
|
---|
[5ca8d70] | 240 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 241 | href="mesa-kernel.xml"/>
|
---|
[2c92dada] | 242 |
|
---|
| 243 | <note>
|
---|
| 244 | <para>
|
---|
| 245 | The corresponding Mesa Gallium3D driver name is provided as the
|
---|
| 246 | comment for the configuration entries. If you don't know the name
|
---|
| 247 | of the Mesa Gallium3D driver for your GPU, see <xref
|
---|
| 248 | linkend="mesa-gallium-drivers"/> below.
|
---|
| 249 | </para>
|
---|
| 250 |
|
---|
| 251 | <para>
|
---|
| 252 | <option>CONFIG_DRM_RADEON</option>,
|
---|
| 253 | <option>CONFIG_DRM_AMDGPU</option>,
|
---|
| 254 | <option>CONFIG_DRM_NOUVEAU</option>, and
|
---|
[d4102ce] | 255 | <option>CONFIG_DRM_I915</option> may require firmware.
|
---|
| 256 | See <xref linkend='postlfs-firmware'/> for details.
|
---|
[2c92dada] | 257 | </para>
|
---|
| 258 |
|
---|
| 259 | <para>
|
---|
[d4102ce] | 260 | Selecting <option>CONFIG_DRM_RADEON</option> or
|
---|
| 261 | <option>CONFIG_DRM_AMDGPU</option> as
|
---|
| 262 | <quote><literal>y</literal></quote> is not recommended. If it is, any
|
---|
| 263 | required firmware must be built as a part of the kernel image or the
|
---|
| 264 | initramfs for the driver to function correctly.
|
---|
[2c92dada] | 265 | </para>
|
---|
| 266 |
|
---|
| 267 | <para>
|
---|
| 268 | The sub-entries under <option>CONFIG_DRM_AMDGPU</option> are used
|
---|
[d4102ce] | 269 | to ensure the AMDGPU kernel driver supports all GPUs using the
|
---|
[2c92dada] | 270 | <literal>radeonsi</literal> driver. They are not needed if you
|
---|
[d4102ce] | 271 | won't need <option>CONFIG_DRM_AMDGPU</option> itself. They
|
---|
[2c92dada] | 272 | may be unneeded for some GPU models.
|
---|
| 273 | </para>
|
---|
| 274 |
|
---|
| 275 | <para>
|
---|
| 276 | For <literal>swrast</literal>, <option>CONFIG_DRM_VGEM</option>
|
---|
[797182d] | 277 | is not strictly needed but recommended as an optimization.
|
---|
[2c92dada] | 278 | </para>
|
---|
| 279 | </note>
|
---|
[117b4e9] | 280 | <indexterm zone="mesa mesa-kernel">
|
---|
| 281 | <primary sortas="d-mesa">mesa</primary>
|
---|
| 282 | </indexterm>
|
---|
[2c92dada] | 283 | </sect2>
|
---|
| 284 |
|
---|
[868c7c2] | 285 | <sect2 role="installation">
|
---|
[7a395d1] | 286 | <title>Installation of Mesa</title>
|
---|
[a07e9eb] | 287 | <para>
|
---|
[51c08f3] | 288 | If you have downloaded the xdemos patch (needed if testing the Xorg
|
---|
| 289 | installation per BLFS instructions), apply it by running the following
|
---|
| 290 | command:
|
---|
[a07e9eb] | 291 | </para>
|
---|
| 292 |
|
---|
[ab75b52] | 293 | <!--<screen><userinput>patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch</userinput></screen>-->
|
---|
[3edc406] | 294 | <screen><userinput>patch -Np1 -i ../mesa-add_xdemos-2.patch</userinput></screen>
|
---|
[1334c9a] | 295 |
|
---|
[054e926] | 296 | <!-- Note that freedreno, vc4, and virgl all need special support from
|
---|
[d2f50ba] | 297 | libdrm - renodr
|
---|
| 298 | For me, libdrm does not mention virgl, but mesa accepts it. AFAICS
|
---|
| 299 | freedreno is for qualcom hardware, libdrm will build for it on suitable
|
---|
| 300 | systems. VC4 is for the Broadcom VC4 used in the raspberry pi - ken -->
|
---|
[bee072a] | 301 | <!--
|
---|
[d2f50ba] | 302 | <note>
|
---|
| 303 | <para>
|
---|
| 304 | The measurements above, and the Contents below, are for a full build.
|
---|
| 305 | Many people will not wish to install drivers they cannot use, so the
|
---|
| 306 | following paragraphs explain how to limit the drivers, and give an
|
---|
| 307 | example which can be be reduced or amended as necessary.
|
---|
| 308 | </para>
|
---|
| 309 | </note>
|
---|
| 310 |
|
---|
[bee072a] | 311 | -->
|
---|
| 312 | <!--
|
---|
[d2f50ba] | 313 | <para>
|
---|
| 314 | The (non-gallium) DRI drivers available in X86 are auto, <emphasis>or
|
---|
| 315 | alternatively a choice from</emphasis> i915, i965, nouveau, r100, r200,
|
---|
| 316 | and swrast. Use 'auto' to build all available DRI drivers, or use an
|
---|
| 317 | empty string (DRI_DRIVERS="") if you wish to only build gallium drivers.
|
---|
| 318 | </para>
|
---|
| 319 |
|
---|
| 320 | <para>
|
---|
| 321 | The platforms ("window systems") available for X86 linux are x11, wayland,
|
---|
[bee072a] | 322 | drm, and surfaceless. By not specifying anything, the meson
|
---|
[17ae4374] | 323 | build-system will build for all these platforms if you have the
|
---|
| 324 | dependencies, identical to if you had specified '-Dplatforms=auto'.
|
---|
[d2f50ba] | 325 | </para>
|
---|
| 326 |
|
---|
| 327 | <para>
|
---|
| 328 | Modify the commands below for your desired drivers. The drivers listed
|
---|
| 329 | below will cover most modern video cards and virtual machines. For help in
|
---|
[c6cb93b] | 330 | selecting drivers see <ulink url="https://docs.mesa3d.org/systems.html"/>.
|
---|
[bee072a] | 331 | -->
|
---|
[ef936e4] | 332 | <!-- these two don't seem to be mentioned in that mesa link -->
|
---|
[bee072a] | 333 | <!--
|
---|
[ef936e4] | 334 | For intel drivers, specify crocus for i965 gen 4 through to haswell, iris
|
---|
| 335 | for broadwell and later.
|
---|
[d2f50ba] | 336 | </para>
|
---|
| 337 |
|
---|
| 338 | <note>
|
---|
| 339 | <para>
|
---|
| 340 | Although the nouveau drivers can be built for both gallium and dri, the
|
---|
| 341 | i915 driver can only be built for one or the other.
|
---|
| 342 | </para>
|
---|
| 343 | </note>
|
---|
| 344 |
|
---|
[ef936e4] | 345 | <screen><userinput>GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl"
|
---|
[d2f50ba] | 346 | DRI_DRIVERS="i965,nouveau"</userinput></screen>
|
---|
[bee072a] | 347 | -->
|
---|
[43149b8] | 348 |
|
---|
[b565745d] | 349 | <!-- https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22021 -->
|
---|
[92202f73] | 350 | <!-- No longer needed
|
---|
[b565745d] | 351 | <para>
|
---|
| 352 | Remove two unneeded references to LLVM headers to avoid a build
|
---|
| 353 | failure with LLVM 17 or later:
|
---|
| 354 | </para>
|
---|
| 355 |
|
---|
| 356 | <screen><userinput>sed '/Scalar.h/d;/Utils.h/d' \
|
---|
| 357 | -i src/gallium/auxiliary/gallivm/lp_bld_init.c</userinput></screen>
|
---|
[92202f73] | 358 | -->
|
---|
[eb425b4] | 359 | <para>
|
---|
[7a395d1] | 360 | Install <application>Mesa</application> by running the following
|
---|
[eb425b4] | 361 | commands:
|
---|
| 362 | </para>
|
---|
[868c7c2] | 363 |
|
---|
[b565745d] | 364 | <screen><userinput>mkdir build &&
|
---|
[b3f053c5] | 365 | cd build &&
|
---|
[a85e5ce] | 366 |
|
---|
[c833c06] | 367 | meson setup .. \
|
---|
| 368 | --prefix=$XORG_PREFIX \
|
---|
| 369 | --buildtype=release \
|
---|
| 370 | -D platforms=x11,wayland \
|
---|
| 371 | -D gallium-drivers=auto \
|
---|
| 372 | -D vulkan-drivers=auto \
|
---|
| 373 | -D valgrind=disabled \
|
---|
| 374 | -D libunwind=disabled &&
|
---|
[f7bc172] | 375 |
|
---|
[b3f053c5] | 376 | ninja</userinput></screen>
|
---|
[868c7c2] | 377 |
|
---|
[b3f053c5] | 378 | <para>
|
---|
[5ba1d98e] | 379 | To test the results, issue:
|
---|
[adcccac] | 380 | <command>meson configure -Dbuild-tests=true && ninja test</command>.
|
---|
[b3f053c5] | 381 | </para>
|
---|
[f7bc172] | 382 | <!-- All 88 tests passed for me for 22.3.3 [pierre]
|
---|
[28818fd3] | 383 | All 90 tests passed for me for 23.1.0 [bdubbs]
|
---|
[b968722] | 384 | 89 Tests passed for me, 1 timeout on 23.1.8 [rahul]
|
---|
[92202f73] | 385 | All 98 tests passed for me for 23.3.1 [bdubbs]
|
---|
[bee072a] | 386 | -->
|
---|
[ef936e4] | 387 |
|
---|
[eb425b4] | 388 | <para>
|
---|
| 389 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 390 | </para>
|
---|
[ff55539b] | 391 |
|
---|
[b3f053c5] | 392 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[a07e9eb] | 393 |
|
---|
[eb425b4] | 394 | <para>
|
---|
[a07e9eb] | 395 | If desired, install the optional documentation by running
|
---|
| 396 | the following commands as the
|
---|
[eb425b4] | 397 | <systemitem class="username">root</systemitem> user:
|
---|
| 398 | </para>
|
---|
[91859cf] | 399 |
|
---|
[3713bc71] | 400 | <screen role="root"
|
---|
[8c25fe7] | 401 | remap="doc"><userinput>cp -rv ../docs -T /usr/share/doc/mesa-&mesa-version;</userinput></screen>
|
---|
[5a883bc4] | 402 |
|
---|
[868c7c2] | 403 | </sect2>
|
---|
| 404 |
|
---|
[a07e9eb] | 405 | <sect2 role="commands">
|
---|
| 406 | <title>Command Explanations</title>
|
---|
[d2f50ba] | 407 |
|
---|
[95e8211] | 408 | <para>
|
---|
[3918112a] | 409 | <parameter>--buildtype=release</parameter>: This switch ensures a
|
---|
[d2f50ba] | 410 | fully-optimized build, and disables debug assertions which will
|
---|
[ec77633] | 411 | severely slow down the libraries in certain use-cases. Without this
|
---|
| 412 | switch, build sizes can span into the 2GB range.
|
---|
[95e8211] | 413 | </para>
|
---|
[869bf46b] | 414 |
|
---|
[d2f50ba] | 415 | <para>
|
---|
[2c92dada] | 416 | <anchor id='mesa-gallium-drivers' xreflabel='Mesa Gallium3D Drivers'/>
|
---|
| 417 | <parameter>-Dgallium-drivers=auto</parameter>: This parameter
|
---|
[c833c06] | 418 | controls which Gallium3D drivers should be built:
|
---|
| 419 |
|
---|
| 420 | <itemizedlist spacing="compact">
|
---|
| 421 | <listitem>
|
---|
| 422 | <para>
|
---|
| 423 | <literal>auto</literal> selects all Gallium3D drivers available
|
---|
| 424 | for x86. With a comma-separated list, only a subset of these
|
---|
| 425 | drivers will be built. If you precisely know which drivers you
|
---|
| 426 | need, you can build. for example.
|
---|
| 427 | <option>-Dgallium-drivers=radeonsi,iris,swrast</option>.
|
---|
| 428 | </para>
|
---|
| 429 | </listitem>
|
---|
| 430 | <listitem>
|
---|
| 431 | <para>
|
---|
| 432 | <literal>r300</literal> (for ATI Radeon 9000 or Radeon X series)
|
---|
| 433 | </para>
|
---|
| 434 | </listitem>
|
---|
| 435 | <listitem>
|
---|
| 436 | <para>
|
---|
| 437 | <literal>r600</literal> (for AMD/ATI Radeon HD 2000-6000 series)
|
---|
| 438 | </para>
|
---|
| 439 | </listitem>
|
---|
| 440 | <listitem>
|
---|
| 441 | <para>
|
---|
| 442 | <literal>radeonsi</literal> (for AMD Radeon HD 7000 or newer AMD GPU models)
|
---|
| 443 | </para>
|
---|
| 444 | </listitem>
|
---|
| 445 | <listitem>
|
---|
| 446 | <para>
|
---|
| 447 | <literal>nouveau</literal> (for Supported NVIDIA GPUs, they are
|
---|
| 448 | listed as all <quote>3D features</quote> either <quote>DONE</quote> or
|
---|
| 449 | <quote>N/A</quote> in
|
---|
| 450 | <ulink url='https://nouveau.freedesktop.org/FeatureMatrix.html'>the Nouveau
|
---|
| 451 | status page</ulink>)
|
---|
| 452 | </para>
|
---|
| 453 | </listitem>
|
---|
| 454 | <listitem>
|
---|
| 455 | <para>
|
---|
| 456 | <literal>virgl</literal> (for a QEMU virtual GPU
|
---|
| 457 | with <application>virglrender</application> support; note that BLFS
|
---|
| 458 | <xref linkend='qemu'/> is not built with
|
---|
| 459 | <application>virglrender</application>)
|
---|
| 460 | </para>
|
---|
| 461 | </listitem>
|
---|
| 462 | <listitem>
|
---|
| 463 | <para>
|
---|
| 464 | <literal>svga</literal> (for a VMWare virtual GPU)
|
---|
| 465 | </para>
|
---|
| 466 | </listitem>
|
---|
| 467 | <listitem>
|
---|
| 468 | <para>
|
---|
| 469 | <literal>swrast</literal> (using CPU for 3D
|
---|
| 470 | rasterisation. Note that it's much slower than using a modern
|
---|
| 471 | 3D-capable GPU, so it should be only used if the GPU is not supported
|
---|
| 472 | by other drivers),
|
---|
| 473 | </para>
|
---|
| 474 | </listitem>
|
---|
| 475 | <listitem>
|
---|
| 476 | <para>
|
---|
| 477 | <literal>iris</literal> (for Intel GPUs shipped with Broadwell
|
---|
| 478 | or newer CPUs)
|
---|
| 479 | </para>
|
---|
| 480 | </listitem>
|
---|
| 481 | <listitem>
|
---|
| 482 | <para>
|
---|
| 483 | <literal>crocus</literal> (for Intel GMA 3000, X3000 series,
|
---|
| 484 | 4000 series, or X4000 series GPUs shipped with chipsets,
|
---|
| 485 | or Intel HD GPUs shipped with pre-Broadwell CPUs)
|
---|
| 486 | </para>
|
---|
| 487 | </listitem>
|
---|
| 488 | <listitem>
|
---|
| 489 | <para>
|
---|
| 490 | <literal>i915</literal> (for Intel GMA 900, 950, 3100, or 3150 GPUs
|
---|
| 491 | shipped with chipsets or Atom D/N 4xx/5xx CPUs)
|
---|
| 492 | </para>
|
---|
| 493 | </listitem>
|
---|
| 494 | </itemizedlist>
|
---|
[d2f50ba] | 495 | </para>
|
---|
[bee072a] | 496 |
|
---|
[eb425b4] | 497 | <para>
|
---|
[875b3b57] | 498 | <parameter>-Dplatforms=...</parameter>: This parameter
|
---|
[bee072a] | 499 | controls which windowing systems will be supported. Available
|
---|
| 500 | linux platforms are x11 and wayland.
|
---|
[eb425b4] | 501 | </para>
|
---|
[bee072a] | 502 |
|
---|
| 503 | <para>
|
---|
[e929885] | 504 | <parameter>-Dvulkan-drivers=auto</parameter>: This switch enables support
|
---|
| 505 | for the Vulkan graphics API. It automatically builds all graphics drivers
|
---|
| 506 | that are available for Vulkan. If you wish to build specific drivers,
|
---|
[c833c06] | 507 | valid options include 'amd', 'intel', 'intel_hasvk' (Haswell CPUs),
|
---|
| 508 | and 'swrast'. If you do not want Vulkan support, change 'auto' to "".
|
---|
[bee072a] | 509 | </para>
|
---|
| 510 |
|
---|
[2993b2f] | 511 | <para>
|
---|
[d7fcae6] | 512 | <parameter>-Dvalgrind=disabled</parameter>: This parameter disables
|
---|
[d2f50ba] | 513 | the usage of Valgrind during the build process. Remove this parameter
|
---|
| 514 | if you have Valgrind installed, and wish to check for memory leaks.
|
---|
[2993b2f] | 515 | </para>
|
---|
| 516 |
|
---|
[42117d4e] | 517 | <para>
|
---|
[d7fcae6] | 518 | <parameter>-Dlibunwind=disabled</parameter>: This parameter disables
|
---|
[42117d4e] | 519 | the usage of libunwind.
|
---|
| 520 | </para>
|
---|
| 521 |
|
---|
[a07e9eb] | 522 | <para>
|
---|
[adcccac] | 523 | <command>meson configure -Dbuild-tests=true</command>: This command will
|
---|
| 524 | reconfigure the build to set <option>-Dbuild-tests=true</option>, but
|
---|
| 525 | keep the other options specified in the <command>meson setup</command>
|
---|
| 526 | command unchanged. It allows <command>ninja test</command> to build and
|
---|
| 527 | run unit tests.
|
---|
[b4d0b5a] | 528 | </para>
|
---|
| 529 |
|
---|
[3713bc71] | 530 | <para>
|
---|
[869bf46b] | 531 | <option>-Degl-native-platform="..."</option>: This parameter
|
---|
| 532 | controls which Embedded Graphics Library support will be built. Available
|
---|
| 533 | linux options are auto (default), x11, wayland, surfaceless, and drm.
|
---|
[3713bc71] | 534 | </para>
|
---|
| 535 |
|
---|
[371ff30] | 536 | </sect2>
|
---|
| 537 |
|
---|
[868c7c2] | 538 | <sect2 role="content">
|
---|
| 539 | <title>Contents</title>
|
---|
| 540 |
|
---|
| 541 | <segmentedlist>
|
---|
[1263ab1e] | 542 | <segtitle>Installed Programs</segtitle>
|
---|
[42117d4e] | 543 | <segtitle>Installed Libraries</segtitle><!-- in /usr/lib -->
|
---|
[e929885] | 544 | <segtitle>Installed DRI Drivers</segtitle><!-- in /usr/lib/dri -->
|
---|
| 545 | <segtitle>Installed VDPAU Drivers</segtitle><!-- in /usr/lib/vdpau -->
|
---|
| 546 | <segtitle>Installed Vulkan Drivers</segtitle><!-- in /usr/lib -->
|
---|
[ba2ac60] | 547 | <segtitle>Installed Directories</segtitle>
|
---|
[868c7c2] | 548 |
|
---|
| 549 | <seglistitem>
|
---|
[eb425b4] | 550 | <seg>
|
---|
[b8b314f5] | 551 | glxgears,
|
---|
| 552 | glxinfo,
|
---|
| 553 | mme_fermi_sim_hw_test, and
|
---|
| 554 | mme_tu104_sim_hw_test
|
---|
[eb425b4] | 555 | </seg>
|
---|
[42117d4e] | 556 | <seg>
|
---|
| 557 | libEGL.so,
|
---|
| 558 | libGL.so,
|
---|
| 559 | libGLESv1_CM.so,
|
---|
| 560 | libGLESv2.so,
|
---|
| 561 | libgbm.so,
|
---|
[7b9b069] | 562 | libglapi.so, and
|
---|
| 563 | libxatracker.so
|
---|
[42117d4e] | 564 | </seg>
|
---|
[eb425b4] | 565 | <seg>
|
---|
[2c92dada] | 566 | <!-- d3dadapter9.so (optional)
|
---|
| 567 | I guess this is useless today, Wine applications use Vulkan
|
---|
| 568 | through libvkd3d, and new games with native Linux support
|
---|
| 569 | likely uses Vulkan directly. -->
|
---|
| 570 | <!-- Begin gallium DRI drivers (*_dri.so) and VA-API drivers
|
---|
| 571 | (*_drv_video.so): this is the full set -->
|
---|
[ef936e4] | 572 | crocus_dri.so,
|
---|
[b3f053c5] | 573 | i915_dri.so,
|
---|
[db480be] | 574 | iris_dri.so,
|
---|
[b3f053c5] | 575 | kms_swrast_dri.so,
|
---|
| 576 | nouveau_dri.so,
|
---|
[d2f50ba] | 577 | nouveau_drv_video.so,
|
---|
[bee072a] | 578 | r300_dri.so,
|
---|
[d2f50ba] | 579 | r600_dri.so,
|
---|
| 580 | r600_drv_video.so,
|
---|
[b3f053c5] | 581 | radeonsi_dri.so,
|
---|
| 582 | radeonsi_drv_video.so,
|
---|
| 583 | swrast_dri.so,
|
---|
[d2f50ba] | 584 | virtio_gpu_dri.so,
|
---|
[b8b314f5] | 585 | virtio_gpu_drv_video.so,
|
---|
| 586 | vmwgfx_dri.so, and
|
---|
| 587 | zink_dri.so
|
---|
[e4fbb24] | 588 | <!-- End DRI Drivers -->
|
---|
[e929885] | 589 | </seg>
|
---|
| 590 | <seg>
|
---|
[e4fbb24] | 591 | <!-- Begin VDPAU drivers -->
|
---|
[d2f50ba] | 592 | libvdpau_nouveau.so,
|
---|
| 593 | libvdpau_r600.so, and
|
---|
[b3f053c5] | 594 | libvdpau_radeonsi.so
|
---|
[f7bc172] | 595 | libvdpau_virtio_gpu.so
|
---|
[e4fbb24] | 596 | <!-- End VDPAU drivers -->
|
---|
[ef936e4] | 597 | (Many of these drivers are hard-linked).
|
---|
[eb425b4] | 598 | </seg>
|
---|
[e929885] | 599 | <seg>
|
---|
| 600 | libvulkan_intel_hasvk.so,
|
---|
| 601 | libvulkan_intel.so,
|
---|
[b8b314f5] | 602 | libvulkan_lvp.so,
|
---|
| 603 | libvulkan_nouveau.so, and
|
---|
[e929885] | 604 | libvulkan_radeon.so
|
---|
| 605 | </seg>
|
---|
[eb425b4] | 606 | <seg>
|
---|
[869bf46b] | 607 | <!-- $XORG_PREFIX/include/GL is installed by xorg-protos -->
|
---|
| 608 | $XORG_PREFIX/{include/{EGL,GLES,GLES2,GLES3,KHR},
|
---|
[bee072a] | 609 | $XORG_PREFIX/lib/{dri,vdpau}},
|
---|
[d2f50ba] | 610 | $XORG_PREFIX/share/drirc.d (contains workarounds for various applications,
|
---|
[f72bfbe1] | 611 | particularly browsers and games),
|
---|
[e929885] | 612 | $XORG_PREFIX/share/vulkan,
|
---|
[7b9b069] | 613 | and /usr/share/doc/mesa-&mesa-version;
|
---|
[eb425b4] | 614 | </seg>
|
---|
[868c7c2] | 615 | </seglistitem>
|
---|
| 616 | </segmentedlist>
|
---|
[d3ef1e4] | 617 |
|
---|
[4437f63] | 618 | <variablelist>
|
---|
| 619 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 620 | <?dbfo list-presentation="list"?>
|
---|
| 621 | <?dbhtml list-presentation="table"?>
|
---|
| 622 |
|
---|
| 623 | <varlistentry id="glxgears">
|
---|
[eb50ddde] | 624 | <term><command>glxgears</command></term>
|
---|
[4437f63] | 625 | <listitem>
|
---|
[eb425b4] | 626 | <para>
|
---|
| 627 | is a GL demo useful for troubleshooting graphics
|
---|
[4c24eb0a] | 628 | problems
|
---|
[eb425b4] | 629 | </para>
|
---|
[7a395d1] | 630 | <indexterm zone="mesa glxgears">
|
---|
[4437f63] | 631 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
| 632 | </indexterm>
|
---|
| 633 | </listitem>
|
---|
| 634 | </varlistentry>
|
---|
| 635 |
|
---|
| 636 | <varlistentry id="glxinfo">
|
---|
[eb50ddde] | 637 | <term><command>glxinfo</command></term>
|
---|
[4437f63] | 638 | <listitem>
|
---|
[eb425b4] | 639 | <para>
|
---|
| 640 | is a diagnostic program that displays information about the
|
---|
[4c24eb0a] | 641 | graphics hardware and installed GL libraries
|
---|
[eb425b4] | 642 | </para>
|
---|
[7a395d1] | 643 | <indexterm zone="mesa glxinfo">
|
---|
[4437f63] | 644 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
| 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
[25f6d94] | 649 | <varlistentry id="libEGL">
|
---|
[a07e9eb] | 650 | <term><filename class="libraryfile">libEGL.so</filename></term>
|
---|
[25f6d94] | 651 | <listitem>
|
---|
[eb425b4] | 652 | <para>
|
---|
[a07e9eb] | 653 | provides a native platform graphics interface as
|
---|
[4c24eb0a] | 654 | defined by the EGL-1.4 specification
|
---|
[eb425b4] | 655 | </para>
|
---|
[7a395d1] | 656 | <indexterm zone="mesa libEGL">
|
---|
[25f6d94] | 657 | <primary sortas="c-libGL">libEGL.so</primary>
|
---|
| 658 | </indexterm>
|
---|
| 659 | </listitem>
|
---|
| 660 | </varlistentry>
|
---|
| 661 |
|
---|
[a07e9eb] | 662 | <varlistentry id="libgbm">
|
---|
| 663 | <term><filename class="libraryfile">libgbm.so</filename></term>
|
---|
| 664 | <listitem>
|
---|
| 665 | <para>
|
---|
| 666 | is the <application>Mesa</application> Graphics Buffer
|
---|
[4c24eb0a] | 667 | Manager library
|
---|
[a07e9eb] | 668 | </para>
|
---|
[7a395d1] | 669 | <indexterm zone="mesa libgbm">
|
---|
[a07e9eb] | 670 | <primary sortas="c-libgbm">libgbm.so</primary>
|
---|
| 671 | </indexterm>
|
---|
| 672 | </listitem>
|
---|
| 673 | </varlistentry>
|
---|
| 674 |
|
---|
| 675 | <varlistentry id="libGLESv1_CM">
|
---|
| 676 | <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
|
---|
| 677 | <listitem>
|
---|
| 678 | <para>
|
---|
[4c24eb0a] | 679 | is the <application>Mesa</application> OpenGL ES 1.1 library
|
---|
[a07e9eb] | 680 | </para>
|
---|
[7a395d1] | 681 | <indexterm zone="mesa libGLESv1_CM">
|
---|
[a07e9eb] | 682 | <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
|
---|
| 683 | </indexterm>
|
---|
| 684 | </listitem>
|
---|
| 685 | </varlistentry>
|
---|
| 686 |
|
---|
| 687 | <varlistentry id="libGLES2">
|
---|
| 688 | <term><filename class="libraryfile">libGLES2.so</filename></term>
|
---|
| 689 | <listitem>
|
---|
| 690 | <para>
|
---|
[4c24eb0a] | 691 | is the <application>Mesa</application> OpenGL ES 2.0 library
|
---|
[a07e9eb] | 692 | </para>
|
---|
[7a395d1] | 693 | <indexterm zone="mesa libGLES2">
|
---|
[a07e9eb] | 694 | <primary sortas="c-libGLES2">libGLES2.so</primary>
|
---|
| 695 | </indexterm>
|
---|
| 696 | </listitem>
|
---|
| 697 | </varlistentry>
|
---|
| 698 |
|
---|
[ba2ac60] | 699 | <varlistentry id="libGL">
|
---|
[a07e9eb] | 700 | <term><filename class="libraryfile">libGL.so</filename></term>
|
---|
[ba2ac60] | 701 | <listitem>
|
---|
[eb425b4] | 702 | <para>
|
---|
[4c24eb0a] | 703 | is the main <application>Mesa</application> OpenGL library
|
---|
[eb425b4] | 704 | </para>
|
---|
[7a395d1] | 705 | <indexterm zone="mesa libGL">
|
---|
[ba2ac60] | 706 | <primary sortas="c-libGL">libGL.so</primary>
|
---|
| 707 | </indexterm>
|
---|
| 708 | </listitem>
|
---|
| 709 | </varlistentry>
|
---|
[bee072a] | 710 |
|
---|
[4437f63] | 711 | </variablelist>
|
---|
| 712 |
|
---|
[868c7c2] | 713 | </sect2>
|
---|
[d3ef1e4] | 714 |
|
---|
[868c7c2] | 715 | </sect1>
|
---|