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