1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY mesa-download-http "https://mesa.freedesktop.org/archive/mesa-&mesa-version;.tar.xz">
|
---|
8 | <!ENTITY mesa-download-ftp " ">
|
---|
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)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="mesa" xreflabel="Mesa-&mesa-version;">
|
---|
16 | <?dbhtml filename="mesa.html"?>
|
---|
17 |
|
---|
18 | <title>Mesa-&mesa-version;</title>
|
---|
19 |
|
---|
20 | <indexterm zone="mesa">
|
---|
21 | <primary sortas="a-Mesa">Mesa</primary>
|
---|
22 | </indexterm>
|
---|
23 |
|
---|
24 | <sect2 role="package">
|
---|
25 | <title>Introduction to Mesa</title>
|
---|
26 |
|
---|
27 | <para>
|
---|
28 | <application>Mesa</application> is an OpenGL compatible 3D graphics
|
---|
29 | library.
|
---|
30 | </para>
|
---|
31 |
|
---|
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 |
|
---|
39 | &lfs121_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&mesa-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&mesa-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &mesa-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &mesa-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &mesa-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &mesa-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
76 | <itemizedlist spacing="compact">
|
---|
77 | <!-- 9 Apr 23. Change to unversioned patch since it never changes. -->
|
---|
78 | <listitem>
|
---|
79 | <para>
|
---|
80 | Recommended patch:
|
---|
81 | <ulink url="&patch-root;/mesa-add_xdemos-2.patch"/>
|
---|
82 | (installs 2 demo programs for testing Mesa - not needed if you
|
---|
83 | install the <ulink url="https://archive.mesa3d.org/demos/">
|
---|
84 | mesa-demos</ulink> package)
|
---|
85 | </para>
|
---|
86 | </listitem>
|
---|
87 | </itemizedlist>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect3">Mesa Dependencies</bridgehead>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
92 | <para role="required">
|
---|
93 | <xref linkend="xorg7-lib"/>,
|
---|
94 | <xref linkend="libdrm"/>, and
|
---|
95 | <xref linkend="Mako"/>
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
99 | <para role="recommended">
|
---|
100 |
|
---|
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>
|
---|
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>
|
---|
149 | </itemizedlist>
|
---|
150 | </para>
|
---|
151 |
|
---|
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 |
|
---|
198 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
199 | <para role="optional">
|
---|
200 | <xref linkend="libgcrypt"/>,
|
---|
201 | <xref linkend="libunwind"/>,
|
---|
202 | <xref linkend="lm_sensors"/> <!-- for libsensors according to Meson -->,
|
---|
203 | <xref linkend="nettle"/>,
|
---|
204 | <xref linkend="valgrind"/>,
|
---|
205 | <ulink url="https://archive.mesa3d.org/demos/">mesa-demos</ulink>
|
---|
206 | (provides more than 300 extra demos to test
|
---|
207 | <application>Mesa</application>; this includes the same programs added by
|
---|
208 | the patch above),
|
---|
209 | <ulink url="https://omxil.sourceforge.net/">Bellagio OpenMAX Integration
|
---|
210 | Layer</ulink> (for mobile platforms), and
|
---|
211 | <!--<ulink url="https://github.com/KhronosGroup/glslang">glslang</ulink>
|
---|
212 | (for vulkan drivers),-->
|
---|
213 | <ulink url="https://github.com/tizonia/tizonia-openmax-il/wiki/Tizonia-OpenMAX-IL/">
|
---|
214 | libtizonia</ulink>,
|
---|
215 | <!-- <ulink url="https://github.com/KhronosGroup/Vulkan-Loader">Vulkan-Loader</ulink> -->
|
---|
216 | </para>
|
---|
217 | <!--
|
---|
218 | <note>
|
---|
219 | <para>
|
---|
220 | The instructions below assume that
|
---|
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
|
---|
225 | <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
|
---|
226 | </para>
|
---|
227 | </note>
|
---|
228 | -->
|
---|
229 | </sect2>
|
---|
230 |
|
---|
231 | <sect2 role="kernel" id="mesa-kernel"
|
---|
232 | xreflabel='Mesa Kernel Configuration'>
|
---|
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 |
|
---|
240 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
241 | href="mesa-kernel.xml"/>
|
---|
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
|
---|
255 | <option>CONFIG_DRM_I915</option> may require firmware.
|
---|
256 | See <xref linkend='postlfs-firmware'/> for details.
|
---|
257 | </para>
|
---|
258 |
|
---|
259 | <para>
|
---|
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.
|
---|
265 | </para>
|
---|
266 |
|
---|
267 | <para>
|
---|
268 | The sub-entries under <option>CONFIG_DRM_AMDGPU</option> are used
|
---|
269 | to ensure the AMDGPU kernel driver supports all GPUs using the
|
---|
270 | <literal>radeonsi</literal> driver. They are not needed if you
|
---|
271 | won't need <option>CONFIG_DRM_AMDGPU</option> itself. They
|
---|
272 | may be unneeded for some GPU models.
|
---|
273 | </para>
|
---|
274 |
|
---|
275 | <para>
|
---|
276 | For <literal>swrast</literal>, <option>CONFIG_DRM_VGEM</option>
|
---|
277 | is not strictly needed but recommended as an optimization.
|
---|
278 | </para>
|
---|
279 | </note>
|
---|
280 | <indexterm zone="mesa mesa-kernel">
|
---|
281 | <primary sortas="d-mesa">mesa</primary>
|
---|
282 | </indexterm>
|
---|
283 | </sect2>
|
---|
284 |
|
---|
285 | <sect2 role="installation">
|
---|
286 | <title>Installation of Mesa</title>
|
---|
287 | <para>
|
---|
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:
|
---|
291 | </para>
|
---|
292 |
|
---|
293 | <!--<screen><userinput>patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch</userinput></screen>-->
|
---|
294 | <screen><userinput>patch -Np1 -i ../mesa-add_xdemos-2.patch</userinput></screen>
|
---|
295 |
|
---|
296 | <!-- Note that freedreno, vc4, and virgl all need special support from
|
---|
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 -->
|
---|
301 | <!--
|
---|
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 |
|
---|
311 | -->
|
---|
312 | <!--
|
---|
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,
|
---|
322 | drm, and surfaceless. By not specifying anything, the meson
|
---|
323 | build-system will build for all these platforms if you have the
|
---|
324 | dependencies, identical to if you had specified '-Dplatforms=auto'.
|
---|
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
|
---|
330 | selecting drivers see <ulink url="https://docs.mesa3d.org/systems.html"/>.
|
---|
331 | -->
|
---|
332 | <!-- these two don't seem to be mentioned in that mesa link -->
|
---|
333 | <!--
|
---|
334 | For intel drivers, specify crocus for i965 gen 4 through to haswell, iris
|
---|
335 | for broadwell and later.
|
---|
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 |
|
---|
345 | <screen><userinput>GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl"
|
---|
346 | DRI_DRIVERS="i965,nouveau"</userinput></screen>
|
---|
347 | -->
|
---|
348 |
|
---|
349 | <!-- https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22021 -->
|
---|
350 | <!-- No longer needed
|
---|
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>
|
---|
358 | -->
|
---|
359 | <para>
|
---|
360 | Install <application>Mesa</application> by running the following
|
---|
361 | commands:
|
---|
362 | </para>
|
---|
363 |
|
---|
364 | <screen><userinput>mkdir build &&
|
---|
365 | cd build &&
|
---|
366 |
|
---|
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 &&
|
---|
375 |
|
---|
376 | ninja</userinput></screen>
|
---|
377 |
|
---|
378 | <para>
|
---|
379 | To test the results, issue:
|
---|
380 | <command>meson configure -Dbuild-tests=true && ninja test</command>.
|
---|
381 | </para>
|
---|
382 | <!-- All 88 tests passed for me for 22.3.3 [pierre]
|
---|
383 | All 90 tests passed for me for 23.1.0 [bdubbs]
|
---|
384 | 89 Tests passed for me, 1 timeout on 23.1.8 [rahul]
|
---|
385 | All 98 tests passed for me for 23.3.1 [bdubbs]
|
---|
386 | -->
|
---|
387 |
|
---|
388 | <para>
|
---|
389 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
390 | </para>
|
---|
391 |
|
---|
392 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
393 |
|
---|
394 | <para>
|
---|
395 | If desired, install the optional documentation by running
|
---|
396 | the following commands as the
|
---|
397 | <systemitem class="username">root</systemitem> user:
|
---|
398 | </para>
|
---|
399 |
|
---|
400 | <screen role="root"
|
---|
401 | remap="doc"><userinput>cp -rv ../docs -T /usr/share/doc/mesa-&mesa-version;</userinput></screen>
|
---|
402 |
|
---|
403 | </sect2>
|
---|
404 |
|
---|
405 | <sect2 role="commands">
|
---|
406 | <title>Command Explanations</title>
|
---|
407 |
|
---|
408 | <para>
|
---|
409 | <parameter>--buildtype=release</parameter>: This switch ensures a
|
---|
410 | fully-optimized build, and disables debug assertions which will
|
---|
411 | severely slow down the libraries in certain use-cases. Without this
|
---|
412 | switch, build sizes can span into the 2GB range.
|
---|
413 | </para>
|
---|
414 |
|
---|
415 | <para>
|
---|
416 | <anchor id='mesa-gallium-drivers' xreflabel='Mesa Gallium3D Drivers'/>
|
---|
417 | <parameter>-Dgallium-drivers=auto</parameter>: This parameter
|
---|
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>
|
---|
495 | </para>
|
---|
496 |
|
---|
497 | <para>
|
---|
498 | <parameter>-Dplatforms=...</parameter>: This parameter
|
---|
499 | controls which windowing systems will be supported. Available
|
---|
500 | linux platforms are x11 and wayland.
|
---|
501 | </para>
|
---|
502 |
|
---|
503 | <para>
|
---|
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,
|
---|
507 | valid options include 'amd', 'intel', 'intel_hasvk' (Haswell CPUs),
|
---|
508 | and 'swrast'. If you do not want Vulkan support, change 'auto' to "".
|
---|
509 | </para>
|
---|
510 |
|
---|
511 | <para>
|
---|
512 | <parameter>-Dvalgrind=disabled</parameter>: This parameter disables
|
---|
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.
|
---|
515 | </para>
|
---|
516 |
|
---|
517 | <para>
|
---|
518 | <parameter>-Dlibunwind=disabled</parameter>: This parameter disables
|
---|
519 | the usage of libunwind.
|
---|
520 | </para>
|
---|
521 |
|
---|
522 | <para>
|
---|
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.
|
---|
528 | </para>
|
---|
529 |
|
---|
530 | <para>
|
---|
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.
|
---|
534 | </para>
|
---|
535 |
|
---|
536 | </sect2>
|
---|
537 |
|
---|
538 | <sect2 role="content">
|
---|
539 | <title>Contents</title>
|
---|
540 |
|
---|
541 | <segmentedlist>
|
---|
542 | <segtitle>Installed Programs</segtitle>
|
---|
543 | <segtitle>Installed Libraries</segtitle><!-- in /usr/lib -->
|
---|
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 -->
|
---|
547 | <segtitle>Installed Directories</segtitle>
|
---|
548 |
|
---|
549 | <seglistitem>
|
---|
550 | <seg>
|
---|
551 | glxgears,
|
---|
552 | glxinfo,
|
---|
553 | mme_fermi_sim_hw_test, and
|
---|
554 | mme_tu104_sim_hw_test
|
---|
555 | </seg>
|
---|
556 | <seg>
|
---|
557 | libEGL.so,
|
---|
558 | libGL.so,
|
---|
559 | libGLESv1_CM.so,
|
---|
560 | libGLESv2.so,
|
---|
561 | libgbm.so,
|
---|
562 | libglapi.so, and
|
---|
563 | libxatracker.so
|
---|
564 | </seg>
|
---|
565 | <seg>
|
---|
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 -->
|
---|
572 | crocus_dri.so,
|
---|
573 | i915_dri.so,
|
---|
574 | iris_dri.so,
|
---|
575 | kms_swrast_dri.so,
|
---|
576 | nouveau_dri.so,
|
---|
577 | nouveau_drv_video.so,
|
---|
578 | r300_dri.so,
|
---|
579 | r600_dri.so,
|
---|
580 | r600_drv_video.so,
|
---|
581 | radeonsi_dri.so,
|
---|
582 | radeonsi_drv_video.so,
|
---|
583 | swrast_dri.so,
|
---|
584 | virtio_gpu_dri.so,
|
---|
585 | virtio_gpu_drv_video.so,
|
---|
586 | vmwgfx_dri.so, and
|
---|
587 | zink_dri.so
|
---|
588 | <!-- End DRI Drivers -->
|
---|
589 | </seg>
|
---|
590 | <seg>
|
---|
591 | <!-- Begin VDPAU drivers -->
|
---|
592 | libvdpau_nouveau.so,
|
---|
593 | libvdpau_r600.so, and
|
---|
594 | libvdpau_radeonsi.so
|
---|
595 | libvdpau_virtio_gpu.so
|
---|
596 | <!-- End VDPAU drivers -->
|
---|
597 | (Many of these drivers are hard-linked).
|
---|
598 | </seg>
|
---|
599 | <seg>
|
---|
600 | libvulkan_intel_hasvk.so,
|
---|
601 | libvulkan_intel.so,
|
---|
602 | libvulkan_lvp.so,
|
---|
603 | libvulkan_nouveau.so, and
|
---|
604 | libvulkan_radeon.so
|
---|
605 | </seg>
|
---|
606 | <seg>
|
---|
607 | <!-- $XORG_PREFIX/include/GL is installed by xorg-protos -->
|
---|
608 | $XORG_PREFIX/{include/{EGL,GLES,GLES2,GLES3,KHR},
|
---|
609 | $XORG_PREFIX/lib/{dri,vdpau}},
|
---|
610 | $XORG_PREFIX/share/drirc.d (contains workarounds for various applications,
|
---|
611 | particularly browsers and games),
|
---|
612 | $XORG_PREFIX/share/vulkan,
|
---|
613 | and /usr/share/doc/mesa-&mesa-version;
|
---|
614 | </seg>
|
---|
615 | </seglistitem>
|
---|
616 | </segmentedlist>
|
---|
617 |
|
---|
618 | <variablelist>
|
---|
619 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
620 | <?dbfo list-presentation="list"?>
|
---|
621 | <?dbhtml list-presentation="table"?>
|
---|
622 |
|
---|
623 | <varlistentry id="glxgears">
|
---|
624 | <term><command>glxgears</command></term>
|
---|
625 | <listitem>
|
---|
626 | <para>
|
---|
627 | is a GL demo useful for troubleshooting graphics
|
---|
628 | problems
|
---|
629 | </para>
|
---|
630 | <indexterm zone="mesa glxgears">
|
---|
631 | <primary sortas="b-glxgears">glxgears</primary>
|
---|
632 | </indexterm>
|
---|
633 | </listitem>
|
---|
634 | </varlistentry>
|
---|
635 |
|
---|
636 | <varlistentry id="glxinfo">
|
---|
637 | <term><command>glxinfo</command></term>
|
---|
638 | <listitem>
|
---|
639 | <para>
|
---|
640 | is a diagnostic program that displays information about the
|
---|
641 | graphics hardware and installed GL libraries
|
---|
642 | </para>
|
---|
643 | <indexterm zone="mesa glxinfo">
|
---|
644 | <primary sortas="b-glxinfo">glxinfo</primary>
|
---|
645 | </indexterm>
|
---|
646 | </listitem>
|
---|
647 | </varlistentry>
|
---|
648 |
|
---|
649 | <varlistentry id="libEGL">
|
---|
650 | <term><filename class="libraryfile">libEGL.so</filename></term>
|
---|
651 | <listitem>
|
---|
652 | <para>
|
---|
653 | provides a native platform graphics interface as
|
---|
654 | defined by the EGL-1.4 specification
|
---|
655 | </para>
|
---|
656 | <indexterm zone="mesa libEGL">
|
---|
657 | <primary sortas="c-libGL">libEGL.so</primary>
|
---|
658 | </indexterm>
|
---|
659 | </listitem>
|
---|
660 | </varlistentry>
|
---|
661 |
|
---|
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
|
---|
667 | Manager library
|
---|
668 | </para>
|
---|
669 | <indexterm zone="mesa libgbm">
|
---|
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>
|
---|
679 | is the <application>Mesa</application> OpenGL ES 1.1 library
|
---|
680 | </para>
|
---|
681 | <indexterm zone="mesa libGLESv1_CM">
|
---|
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>
|
---|
691 | is the <application>Mesa</application> OpenGL ES 2.0 library
|
---|
692 | </para>
|
---|
693 | <indexterm zone="mesa libGLES2">
|
---|
694 | <primary sortas="c-libGLES2">libGLES2.so</primary>
|
---|
695 | </indexterm>
|
---|
696 | </listitem>
|
---|
697 | </varlistentry>
|
---|
698 |
|
---|
699 | <varlistentry id="libGL">
|
---|
700 | <term><filename class="libraryfile">libGL.so</filename></term>
|
---|
701 | <listitem>
|
---|
702 | <para>
|
---|
703 | is the main <application>Mesa</application> OpenGL library
|
---|
704 | </para>
|
---|
705 | <indexterm zone="mesa libGL">
|
---|
706 | <primary sortas="c-libGL">libGL.so</primary>
|
---|
707 | </indexterm>
|
---|
708 | </listitem>
|
---|
709 | </varlistentry>
|
---|
710 |
|
---|
711 | </variablelist>
|
---|
712 |
|
---|
713 | </sect2>
|
---|
714 |
|
---|
715 | </sect1>
|
---|