source: x/installing/mesa.xml@ 0515763

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0515763 was 0515763, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to NetworkManager-1.22.4.
Update to grantlee-5.2.0.
Update to btrfs-progs-v5.4.1.
Update to mesa-19.3.2.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22564 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 16.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 "ftp://ftp.freedesktop.org/pub/mesa/mesa-&mesa-version;.tar.xz">
9 <!ENTITY mesa-md5sum "9de2503cce0b864b99ff15d74e5059e9">
10 <!ENTITY mesa-size "11 MB">
11 <!ENTITY mesa-buildsize "397 MB (with demos and docs), add 204 MB for tests">
12 <!ENTITY mesa-time "2.6 SBU (with parallelism=4, demos, and docs), add 0.4 SBU for tests">
13]>
14
15<sect1 id="mesa" xreflabel="Mesa-&mesa-version;">
16 <?dbhtml filename="mesa.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Mesa-&mesa-version;</title>
24
25 <indexterm zone="mesa">
26 <primary sortas="a-Mesa">Mesa</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Mesa</title>
31
32 <para>
33 <application>Mesa</application> is an OpenGL compatible 3D graphics
34 library.
35 </para>
36
37 <note>
38 <para>
39 <application>Mesa</application> is updated relatively often. You may
40 want to use the latest available &mesa-major-minor;.x mesa version.
41 </para>
42 </note>
43
44 &lfs90_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>
50 Download (HTTP): <ulink url="&mesa-download-http;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download (FTP): <ulink url="&mesa-download-ftp;"/>
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download MD5 sum: &mesa-md5sum;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Download size: &mesa-size;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated disk space required: &mesa-buildsize;
71 </para>
72 </listitem>
73 <listitem>
74 <para>
75 Estimated build time: &mesa-time;
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
81 <itemizedlist spacing="compact">
82 <listitem>
83 <para>
84 Recommended patch:
85 <ulink
86 url="&patch-root;/mesa-&mesa-version;-add_xdemos-1.patch"/>
87 (installs 2 demo programs for testing Mesa - not needed if you
88 install the <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">
89 mesa-demos</ulink> package)
90 </para>
91 </listitem>
92 </itemizedlist>
93
94 <bridgehead renderas="sect3">Mesa Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
97 <para role="required">
98 <xref linkend="xorg7-lib"/>,
99 <xref linkend="libdrm"/>, and
100 <xref linkend="Mako"/>
101 </para>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="recommended">
105
106 <xref role="first" linkend="libva"/> (to provide VA-API support for some
107 gallium drivers, note that there is a circular dependency. You must
108 build <application>libva</application> first without EGL and GLX support,
109 install this package, and rebuild <application>libva</application>),
110 <xref linkend="libvdpau"/> (to build VDPAU drivers),
111 <xref linkend="llvm"/> (required for Gallium3D, nouveau, r300, and radeonsi
112 drivers and for swrast, the software rasterizer which is sometimes referred
113 to as llvmpipe. See <ulink role="nodep"
114 url="http://www.mesa3d.org/systems.html"/> for more information), and
115 <xref linkend="wayland-protocols"/> (required for
116 <xref role="nodep" linkend='plasma5-build'/>,
117 <!-- <xref role="nodep" linkend='lxqt'/>, -->
118 GNOME, and recommended for <xref role="nodep" linkend='gtk3'/>)
119 </para>
120
121 <bridgehead renderas="sect4">Optional</bridgehead>
122 <para role="optional">
123 <xref linkend="libgcrypt"/>,
124 <xref linkend="lm_sensors"/> <!-- for libsensors according to Meson -->,
125 <xref linkend="nettle"/>,
126 <xref linkend="valgrind"/>,
127 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
128 (provides more than 300 extra demos to test
129 <application>Mesa</application>; this includes the same programs added by
130 the patch above),
131 <ulink url="http://omxil.sourceforge.net/">Bellagio OpenMAX Integration
132 Layer</ulink> (for mobile platforms), and
133 <ulink url="https://github.com/tizonia/tizonia-openmax-il/wiki/Tizonia-OpenMAX-IL/">
134 libtizonia</ulink>
135 </para>
136
137 <note>
138 <para>
139 The instructions below assume that
140 <application>LLVM</application> with the r600/amdgpu and host backends
141 and run-time type information (RTTI - needed for nouveau) are installed.
142 You will need to modify the instructions if you
143 choose not to install all of these. For an explanation of Gallium3D see
144 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
145 </para>
146 </note>
147
148 <para condition="html" role="usernotes">User Notes:
149 <ulink url="&blfs-wiki;/mesa"/>
150 </para>
151 </sect2>
152
153 <sect2 role="installation">
154 <title>Installation of Mesa</title>
155
156 <para>
157 If you have downloaded the xdemos patch (needed if testing the Xorg
158 installation per BLFS instructions), apply it by running the following
159 command:
160 </para>
161
162<screen><userinput>patch -Np1 -i ../mesa-&mesa-version;-add_xdemos-1.patch</userinput></screen>
163
164 <!-- Note that freedreno, vc4, and virgl all need special support from
165 libdrm - renodr
166 For me, libdrm does not mention virgl, but mesa accepts it. AFAICS
167 freedreno is for qualcom hardware, libdrm will build for it on suitable
168 systems. VC4 is for the Broadcom VC4 used in the raspberry pi - ken -->
169
170 <para>
171 If <xref linkend="python2"/> is not installed, adjust a script file
172 in test suite to use Python 3:
173 </para>
174
175<screen><userinput>sed '1s@python@&amp;3@' -i bin/symbols-check.py</userinput></screen>
176
177 <note>
178 <para>
179 The measurements above, and the Contents below, are for a full build.
180 Many people will not wish to install drivers they cannot use, so the
181 following paragraphs explain how to limit the drivers, and give an
182 example which can be be reduced or amended as necessary.
183 </para>
184 </note>
185
186 <para>
187 Now, select the drivers you wish to install. For the X86 architecture, the
188 available gallium drivers are auto, <emphasis>or alternatively a choice
189 from</emphasis> i915, nouveau, r300, r600, radeonsi, svga, swrast, and
190 virgl. The latter is recommended if you intend to run the system under
191 <xref linkend="qemu"/>. If you wish to build all available gallium drivers,
192 use 'auto'.
193 </para>
194
195 <para>
196 The (non-gallium) DRI drivers available in X86 are auto, <emphasis>or
197 alternatively a choice from</emphasis> i915, i965, nouveau, r100, r200,
198 and swrast. Use 'auto' to build all available DRI drivers, or use an
199 empty string (DRI_DRIVERS="") if you wish to only build gallium drivers.
200 </para>
201
202 <para>
203 The platforms ("window systems") available for X86 linux are x11, wayland,
204 drm, and surfaceless. By not specifying anything, the meson build-system
205 will build for all these platforms if you have the dependencies, identical
206 to if you had specified '-Dplatforms=auto'.
207 </para>
208
209 <para>
210 Modify the commands below for your desired drivers. The drivers listed
211 below will cover most modern video cards and virtual machines. For help in
212 selecting drivers see <ulink url='http://www.mesa3d.org/systems.html'/>.
213 </para>
214
215 <note>
216 <para>
217 Although the nouveau drivers can be built for both gallium and dri, the
218 i915 driver can only be built for one or the other.
219 </para>
220 </note>
221
222<screen><userinput>GALLIUM_DRV="i915,nouveau,r600,radeonsi,svga,swrast,virgl"
223DRI_DRIVERS="i965,nouveau"</userinput></screen>
224
225 <para>
226 Install <application>Mesa</application> by running the following
227 commands:
228 </para>
229
230<screen><userinput>mkdir build &amp;&amp;
231cd build &amp;&amp;
232
233meson --prefix=$XORG_PREFIX \
234 -Dbuildtype=release \
235 -Ddri-drivers=$DRI_DRIVERS \
236 -Dgallium-drivers=$GALLIUM_DRV \
237 -Dgallium-nine=false \
238 -Dglx=dri \
239 -Dosmesa=gallium \
240 -Dvalgrind=false \
241 .. &amp;&amp;
242
243unset GALLIUM_DRV DRI_DRIVERS &amp;&amp;
244
245ninja</userinput></screen>
246
247 <para>
248 If you built the tests (see 'Command Explanations'), to run them issue:
249 <command>ninja test</command>.
250 </para>
251
252 <para>
253 Now, as the <systemitem class="username">root</systemitem> user:
254 </para>
255
256<screen role="root"><userinput>ninja install</userinput></screen>
257
258 <para>
259 If desired, install the optional documentation by running
260 the following commands as the
261 <systemitem class="username">root</systemitem> user:
262 </para>
263
264<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesa-version; &amp;&amp;
265cp -rfv ../docs/* /usr/share/doc/mesa-&mesa-version;</userinput></screen>
266
267 </sect2>
268
269 <sect2 role="commands">
270 <title>Command Explanations</title>
271
272 <para>
273 <parameter>-Dbuildtype=release</parameter>: This switch ensures a
274 fully-optimized build, and disables debug assertions which will
275 severely slow down the libraries in certain use-cases. Without this
276 switch, build sizes can span into the 2GB range.
277 </para>
278
279 <para>
280 <parameter>-Ddri-drivers="..."</parameter>: This parameter
281 controls which (non-gallium) dri drivers should be built.
282 </para>
283
284 <para>
285 <parameter>-Dgallium-drivers="..."</parameter>: This parameter
286 controls which Gallium3D drivers should be built.
287 </para>
288
289 <para>
290 <option>-Dgallium-nine=true</option>: Setting this option to true will
291 provide support for (MS Windows) games designed for DX9.
292 </para>
293
294 <para>
295 <parameter>-Dosmesa=gallium</parameter>: This switch enables building
296 the <filename class="libraryfile">libOSMesa</filename> library and
297 provides Gallium3D support in it. It requires the swrast gallium driver.
298 </para>
299<!--
300 <para>
301 <parameter>-Dplatforms="..."</parameter>: This parameter
302 controls which platforms EGL will be built for. Available
303 linux X86 platforms are drm, x11, wayland, and surfaceless.
304 </para>
305-->
306 <para>
307 <parameter>-Dvalgrind=false</parameter>: This parameter disables
308 the usage of Valgrind during the build process. Remove this parameter
309 if you have Valgrind installed, and wish to check for memory leaks.
310 </para>
311
312<!--
313 <para>
314 <parameter>- -enable-xa</parameter>: This switch enables building the
315 XA X Acceleration API (Required for VMware 3D Driver).
316 </para>
317
318 <para>
319 <parameter>- -enable-gbm</parameter>: This switch enables building the
320 <application>Mesa</application> Graphics Buffer Manager library.
321 </para>
322 These two seem to be automatic in 19.0 - ken
323
324 <para>
325 <parameter>- -enable-glx-tls</parameter>: This switch enables TLS (Thread Local
326 Storage) support in GLX.
327 </para>
328-->
329 <para>
330 <option>-Dbuild-tests=true</option>: This option will cause the test code
331 to be enabled.
332 </para>
333
334 </sect2>
335
336 <sect2 role="content">
337 <title>Contents</title>
338
339 <segmentedlist>
340 <segtitle>Installed Programs</segtitle>
341 <segtitle>Installed Libraries</segtitle>
342 <segtitle>Installed Directories</segtitle>
343
344 <seglistitem>
345 <seg>
346 glxgears and glxinfo
347 </seg>
348 <seg>
349 <!-- Begin DRI drivers : this is the full set from auto -->
350 d3dadapter9.so, <!-- For Windows games. This is DirectX's Direct3D -->
351 i915_dri.so,
352 i965_dri.so,
353 kms_swrast_dri.so,
354 nouveau_dri.so,
355 nouveau_drv_video.so,
356 nouveau_vieux_dri.so,
357 r200_dri.so,
358 r300_dri.so,
359 r600_dri.so,
360 r600_drv_video.so,
361 radeon_dri.so,
362 radeonsi_dri.so,
363 radeonsi_drv_video.so,
364 swrast_dri.so,
365 virtio_gpu_dri.so,
366 vmwgfx_dri.so
367 <!-- End DRI Drivers -->
368 libEGL.so,
369 libGL.so,
370 libGLESv1_CM.so,
371 libGLESv2.so,
372 libOSMesa.so,
373 libXvMCnouveau.so,
374 libXvMCr600.so,
375 libgbm.so,
376 libglapi.so,
377 <!-- Begin Vulkan drivers -->
378 libvulkan_intel.so,
379 libvulkan_radeon.so,
380 <!-- End Vulkan drivers -->
381 libxatracker.so,
382 <!-- Begin VDPAU drivers -->
383 libvdpau_nouveau.so,
384 libvdpau_r300.so,
385 libvdpau_r600.so, and
386 libvdpau_radeonsi.so
387 <!-- End VDPAU drivers -->
388 </seg>
389 <seg>
390 $XORG_PREFIX/{include/{d3dapater,EGL,GL,GLES,GLES2,GLES3,KHR,vulkan},lib/{d3d,dri,vdpau}}
391 $XORG_PREFIX/share/drirc.d (contains workarounds for various applications,
392 particularly browsers and games)
393 $XORG_PREFIX/share/vulkan/icd.d,
394 and
395 /usr/share/doc/mesa-&mesa-version; (optional)
396 </seg>
397 </seglistitem>
398 </segmentedlist>
399
400 <variablelist>
401 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
402 <?dbfo list-presentation="list"?>
403 <?dbhtml list-presentation="table"?>
404
405 <varlistentry id="glxgears">
406 <term><command>glxgears</command></term>
407 <listitem>
408 <para>
409 is a GL demo useful for troubleshooting graphics
410 problems.
411 </para>
412 <indexterm zone="mesa glxgears">
413 <primary sortas="b-glxgears">glxgears</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="glxinfo">
419 <term><command>glxinfo</command></term>
420 <listitem>
421 <para>
422 is a diagnostic program that displays information about the
423 graphics hardware and installed GL libraries.
424 </para>
425 <indexterm zone="mesa glxinfo">
426 <primary sortas="b-glxinfo">glxinfo</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="libEGL">
432 <term><filename class="libraryfile">libEGL.so</filename></term>
433 <listitem>
434 <para>
435 provides a native platform graphics interface as
436 defined by the EGL-1.4 specification.
437 </para>
438 <indexterm zone="mesa libEGL">
439 <primary sortas="c-libGL">libEGL.so</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="libgbm">
445 <term><filename class="libraryfile">libgbm.so</filename></term>
446 <listitem>
447 <para>
448 is the <application>Mesa</application> Graphics Buffer
449 Manager library.
450 </para>
451 <indexterm zone="mesa libgbm">
452 <primary sortas="c-libgbm">libgbm.so</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="libGLESv1_CM">
458 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
459 <listitem>
460 <para>
461 is the <application>Mesa</application> OpenGL ES 1.1 library.
462 </para>
463 <indexterm zone="mesa libGLESv1_CM">
464 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="libGLES2">
470 <term><filename class="libraryfile">libGLES2.so</filename></term>
471 <listitem>
472 <para>
473 is the <application>Mesa</application> OpenGL ES 2.0 library.
474 </para>
475 <indexterm zone="mesa libGLES2">
476 <primary sortas="c-libGLES2">libGLES2.so</primary>
477 </indexterm>
478 </listitem>
479 </varlistentry>
480
481 <varlistentry id="libGL">
482 <term><filename class="libraryfile">libGL.so</filename></term>
483 <listitem>
484 <para>
485 is the main <application>Mesa</application> OpenGL library.
486 </para>
487 <indexterm zone="mesa libGL">
488 <primary sortas="c-libGL">libGL.so</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
493 <varlistentry id="libOSMesa">
494 <term><filename class="libraryfile">libOSMesa.so</filename></term>
495 <listitem>
496 <para>
497 is the <application>Mesa</application> Off-screen Rendering library.
498 </para>
499 <indexterm zone="mesa libOSMesa">
500 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
505 </variablelist>
506
507 </sect2>
508
509</sect1>
Note: See TracBrowser for help on using the repository browser.