source: x/installing/mesalib.xml@ 1bac25ed

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules 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 1bac25ed was e83a3bb, checked in by Pierre Labastie <pieere@…>, 9 years ago

Add some explanations about LLVM r600 backend to mesa

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

  • Property mode set to 100644
File size: 14.2 KB
RevLine 
[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
[358cbee6]7 <!ENTITY mesalib-download-http " ">
[d443361]8 <!ENTITY mesalib-download-ftp "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/mesa-&mesalib-version;.tar.xz">
[b3b7e36]9 <!ENTITY mesalib-md5sum "ce091e6e969392f7c63ca8c0275bbc0f">
[5ee1266]10 <!ENTITY mesalib-size "6.8 MB">
[472a89e3]11 <!ENTITY mesalib-buildsize "234 MB (without tests)">
12 <!ENTITY mesalib-time "8.0 SBU (without tests)">
[868c7c2]13]>
14
[4a1f001]15<sect1 id="mesalib" xreflabel="MesaLib-&mesalib-version;">
[868c7c2]16 <?dbhtml filename="mesalib.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>MesaLib-&mesalib-version;</title>
24
[d8838ed5]25 <indexterm zone="mesalib">
[868c7c2]26 <primary sortas="a-MesaLib">MesaLib</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to MesaLib</title>
31
[eb425b4]32 <para>
33 <application>Mesa</application> is an OpenGL compatible 3D graphics
34 library.
35 </para>
[868c7c2]36
[7b273030]37 &lfs78_checked;
[ca0c29cc]38
[868c7c2]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[de938a4e]42 <para>
43 Download (HTTP): <ulink url="&mesalib-download-http;"/>
44 </para>
[868c7c2]45 </listitem>
46 <listitem>
[de938a4e]47 <para>
48 Download (FTP): <ulink url="&mesalib-download-ftp;"/>
49 </para>
[868c7c2]50 </listitem>
51 <listitem>
[de938a4e]52 <para>
53 Download MD5 sum: &mesalib-md5sum;
54 </para>
[868c7c2]55 </listitem>
56 <listitem>
[de938a4e]57 <para>
58 Download size: &mesalib-size;
59 </para>
[868c7c2]60 </listitem>
61 <listitem>
[de938a4e]62 <para>
63 Estimated disk space required: &mesalib-buildsize;
64 </para>
[868c7c2]65 </listitem>
66 <listitem>
[de938a4e]67 <para>
68 Estimated build time: &mesalib-time;
69 </para>
[868c7c2]70 </listitem>
71 </itemizedlist>
72
[625079b6]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[a07e9eb]74 <itemizedlist spacing="compact">
[b3b7e36]75 <listitem>
76 <para>
77 Required patch:
78 <ulink
79 url="&patch-root;/mesa-&mesalib-version;-llvm_3_7-1.patch"/>
80 </para>
81 </listitem>
[a07e9eb]82 <listitem>
[eb425b4]83 <para>
84 Recommended patch:
[39dd48b]85 <ulink
86 url="&patch-root;/mesa-&mesalib-version;-add_xdemos-1.patch"/>
[1cdb1f7]87 (installs 2 demo programs for testing MesaLib - not needed if you
[39dd48b]88 install the <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">
89 mesa-demos</ulink> package)
[ace536a]90 </para>
[eeb29511]91 </listitem>
92 </itemizedlist>
93
[868c7c2]94 <bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
[7b74537e]97 <para role="required">
[880727e]98 <xref linkend="xorg7-lib"/> and
99 <xref linkend="libdrm"/>
[eb425b4]100 </para>
[868c7c2]101
[606dfd4]102 <bridgehead renderas="sect4">Recommended</bridgehead>
[eb425b4]103 <para role="recommended">
[7be98fa1]104 <xref linkend="elfutils"/> (required for Gallium3D radeonsi driver),
[9065a56b]105 <xref linkend="libvdpau"/> (to build VDPAU drivers),
[e83a3bb]106 <xref linkend="llvm"/> (required for Gallium3D r300, r600 and radeonsi
107 drivers and also for llvmpipe which is intended to be the fastest of the
108 three sw rasterizers, see
109 <ulink url="http://www.mesa3d.org/faq.html#part3"/>)
[606dfd4]110 </para>
[60bcf481]111
[07584d8]112 <bridgehead renderas="sect4">Optional</bridgehead>
113 <para role="optional">
[58720a7b]114 <ulink url="ftp://ftp.freedesktop.org/pub/mesa/demos/">mesa-demos</ulink>
[1cdb1f7]115 (provides more than 300 extra demos to test
116 <application>MesaLib</application>; this includes the same programs
[c18b8f23]117 added by the patch above),
118 <ulink url="http://omxil.sourceforge.net/">Bellagio OpenMAX Integration
119 Layer</ulink> (for mobile platforms) and
[07584d8]120 <ulink url="http://wayland.freedesktop.org/">Wayland</ulink>
121 </para>
122
[9065a56b]123 <note>
[fd2f9a2]124 <para>
[dae25ca5]125 The instructions below assume that <application>elfutils</application>
[e83a3bb]126 and <application>LLVM</application> with the r600/amdgpu backend are
127 installed. You will need to modify the instructions if you choose not
128 to install them. Please note that <application>elfutils</application>
129 and <application>LLVM</application> are <emphasis>required</emphasis>
130 for Gallium3D r300, r600 and radeonsi drivers. For an explanation of
[a640d58]131 Gallium3D please see
[e83a3bb]132 <ulink url="https://en.wikipedia.org/wiki/Gallium3D"/>.
[fd2f9a2]133 </para>
[9065a56b]134 </note>
[fd2f9a2]135
[c5c2654]136 <para condition="html" role="usernotes">User Notes:
[2993b2f]137 <ulink url="&blfs-wiki;/mesalib"/>
138 </para>
[868c7c2]139 </sect2>
140
141 <sect2 role="installation">
142 <title>Installation of MesaLib</title>
143
[a07e9eb]144 <para>
[51c08f3]145 If you have downloaded the xdemos patch (needed if testing the Xorg
146 installation per BLFS instructions), apply it by running the following
147 command:
[a07e9eb]148 </para>
149
[39dd48b]150<screen><userinput>patch -Np1 -i ../mesa-&mesalib-version;-add_xdemos-1.patch</userinput></screen>
[a07e9eb]151
[eb425b4]152 <para>
153 Install <application>MesaLib</application> by running the following
154 commands:
155 </para>
[868c7c2]156
[b3b7e36]157<screen><userinput>patch -Np1 -i ../mesa-&mesalib-version;-llvm_3_7-1.patch &amp;&amp;
158
159GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
[5ee1266]160
[b3b7e36]161./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
[5ee1266]162 --prefix=$XORG_PREFIX \
163 --sysconfdir=/etc \
164 --enable-texture-float \
165 --enable-gles1 \
166 --enable-gles2 \
167 --enable-osmesa \
168 --enable-xa \
169 --enable-gbm \
170 --enable-glx-tls \
171 --with-egl-platforms="drm,x11" \
172 --with-gallium-drivers=$GLL_DRV &amp;&amp;
173
174unset GLL_DRV &amp;&amp;
175
[1199613]176make</userinput></screen>
[868c7c2]177
[a07e9eb]178 <para>
[7dd7061]179 If you have applied the xdemos patch, build the demo programs by
[a07e9eb]180 running the following command:
181 </para>
182
[5f26d66f]183<screen><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX</userinput></screen>
[a07e9eb]184
[eb425b4]185 <para>
[d9839520]186 To test the results, issue: <command>make check</command>.
[eb425b4]187 </para>
[ff55539b]188
[eb425b4]189 <para>
190 Now, as the <systemitem class="username">root</systemitem> user:
191 </para>
[ff55539b]192
[dae25ca5]193<screen role="root"><userinput>make install</userinput></screen>
[a07e9eb]194
195 <para>
[5f91dfd]196 If you have built the demo programs, install them by running the
[a07e9eb]197 following command as the
198 <systemitem class="username">root</systemitem> user:
199 </para>
200
[5f26d66f]201<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=$XORG_PREFIX install</userinput></screen>
[a07e9eb]202
[eb425b4]203 <para>
[a07e9eb]204 If desired, install the optional documentation by running
205 the following commands as the
[eb425b4]206 <systemitem class="username">root</systemitem> user:
207 </para>
[91859cf]208
[39dd48b]209<screen role="root"><userinput>install -v -dm755 /usr/share/doc/mesa-&mesalib-version; &amp;&amp;
210cp -rfv docs/* /usr/share/doc/mesa-&mesalib-version;</userinput></screen>
[5a883bc4]211
[868c7c2]212 </sect2>
213
[a07e9eb]214 <sect2 role="commands">
215 <title>Command Explanations</title>
216
[95e8211]217 <para>
218 <parameter>CFLAGS="-O2" CXXFLAGS="-O2"</parameter>: By default,
219 <application>Autoconf</application> sets CFLAGS and CXXFLAGS to
220 "-g -O2". That results in binaries and libraries being built with
[fd2f9a2]221 debugging symbols which make them bigger. Override the default
[4d92247]222 flags to omit -g compiler flag so the final libraries are smaller.
[95e8211]223 </para>
224
[eb425b4]225 <para>
[6825eb89]226 <parameter>--enable-texture-float</parameter>: This switch enables
[a07e9eb]227 floating-point textures and render buffers. Please consult
[eb425b4]228 <filename>docs/patents.txt</filename> to see if there are
229 any legal issues if you use this feature.
230 </para>
231
232 <para>
[6825eb89]233 <parameter>--enable-gles1</parameter>: This switch enables support for
[eb425b4]234 OpenGL ES 1.x API.
235 </para>
236
237 <para>
[6825eb89]238 <parameter>--enable-gles2</parameter>: This switch enables support for
[eb425b4]239 OpenGL ES 2.x API.
240 </para>
[9b3b6a45]241
[2993b2f]242 <para>
[6825eb89]243 <parameter>--enable-osmesa</parameter>: This switch enables building of
[abdc2e6]244 the <filename class="libraryfile">libOSMesa</filename> library.
[2993b2f]245 </para>
246
[eb425b4]247 <para>
[6825eb89]248 <parameter>--enable-xa</parameter>: This switch enables building of the
[eb425b4]249 XA X Acceleration API (Required for VMware 3D Driver).
250 </para>
251
252 <para>
[6825eb89]253 <parameter>--enable-gbm</parameter>: This switch enables building of the
[a07e9eb]254 <application>Mesa</application> Graphics Buffer Manager library.
255 </para>
256
[eb425b4]257 <para>
[6825eb89]258 <parameter>--enable-glx-tls</parameter>: This switch enables TLS (Thread Local
[4d92247]259 Storage) support in GLX.
[eb425b4]260 </para>
261
[a07e9eb]262 <para>
263 <parameter>--with-egl-platforms="..."</parameter>: This parameter
[e56f38b]264 controls which platforms EGL will be built for. Available
[a07e9eb]265 platforms are drm, x11 and wayland.
266 </para>
267
[eb425b4]268 <para>
269 <parameter>--with-gallium-drivers="..."</parameter>: This parameter
[5e60392]270 controls which Gallium3D drivers should be built. Available drivers
[dae25ca5]271 are: i915, ilo, nouveau, r300, r600, radeonsi, svga and swrast. You
[e83a3bb]272 will need to remove r300, r600 and radeonsi from the list if you did
[dae25ca5]273 not install <application>elfutils</application> and
[e83a3bb]274 <application>LLVM</application> with the r600/amdgpu backend.
[eb425b4]275 </para>
[f49893b]276
[1f44775e]277 <para>
[dae25ca5]278 <option>--enable-r600-llvm-compiler</option>: Use this switch to
[e56f38b]279 enable an experimental R600 <application>LLVM</application> backend
[dae25ca5]280 for graphics shaders which claims to speed up the driver.
[1f44775e]281 </para>
282
[625079b6]283 <para>
284 <option>--enable-sysfs</option>: Use this switch to enable simple PCI
285 identification method, required for building DRI on systems without udev.
286 </para>
287
[371ff30]288 </sect2>
289
[868c7c2]290 <sect2 role="content">
291 <title>Contents</title>
292
293 <segmentedlist>
[1263ab1e]294 <segtitle>Installed Programs</segtitle>
[868c7c2]295 <segtitle>Installed Libraries</segtitle>
[ba2ac60]296 <segtitle>Installed Directories</segtitle>
[868c7c2]297
298 <seglistitem>
[eb425b4]299 <seg>
300 glxgears and glxinfo
301 </seg>
302 <seg>
[ed6d075]303 libEGL.so,
[c5f6157a]304 libgbm.so,
305 libglapi.so,
[ed6d075]306 libGLESv1_CM.so,
[5a14a19]307 libGLESv2.so,
[c5f6157a]308 libGL.so,
[a640d58]309 libOSMesa.so,
[b3be1cd]310 libxatracker.so,
[a640d58]311 libXvMCnouveau.so,
312 and libXvMCr600.so
[eb425b4]313 </seg>
314 <seg>
[880727e]315 $XORG_PREFIX/{include/{EGL,GL,GLES,GLES2,GLES3,KHR},lib/{dri,vdpau}}
316 and
[39dd48b]317 /usr/share/doc/mesa-&mesalib-version; (optional)
[eb425b4]318 </seg>
[868c7c2]319 </seglistitem>
320 </segmentedlist>
[d3ef1e4]321
[4437f63]322 <variablelist>
323 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
324 <?dbfo list-presentation="list"?>
325 <?dbhtml list-presentation="table"?>
326
327 <varlistentry id="glxgears">
[eb50ddde]328 <term><command>glxgears</command></term>
[4437f63]329 <listitem>
[eb425b4]330 <para>
331 is a GL demo useful for troubleshooting graphics
332 problems.
333 </para>
[d8838ed5]334 <indexterm zone="mesalib glxgears">
[4437f63]335 <primary sortas="b-glxgears">glxgears</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="glxinfo">
[eb50ddde]341 <term><command>glxinfo</command></term>
[4437f63]342 <listitem>
[eb425b4]343 <para>
344 is a diagnostic program that displays information about the
345 graphics hardware and installed GL libraries.
346 </para>
[d8838ed5]347 <indexterm zone="mesalib glxinfo">
[4437f63]348 <primary sortas="b-glxinfo">glxinfo</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
[25f6d94]353 <varlistentry id="libEGL">
[a07e9eb]354 <term><filename class="libraryfile">libEGL.so</filename></term>
[25f6d94]355 <listitem>
[eb425b4]356 <para>
[a07e9eb]357 provides a native platform graphics interface as
358 defined by the EGL-1.4 specification.
[eb425b4]359 </para>
[25f6d94]360 <indexterm zone="mesalib libEGL">
361 <primary sortas="c-libGL">libEGL.so</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
[a07e9eb]366 <varlistentry id="libgbm">
367 <term><filename class="libraryfile">libgbm.so</filename></term>
368 <listitem>
369 <para>
370 is the <application>Mesa</application> Graphics Buffer
[0d7900a]371 Manager library.
[a07e9eb]372 </para>
373 <indexterm zone="mesalib libgbm">
374 <primary sortas="c-libgbm">libgbm.so</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="libGLESv1_CM">
380 <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
381 <listitem>
382 <para>
383 is the <application>Mesa</application> OpenGL ES 1.1 library.
384 </para>
385 <indexterm zone="mesalib libGLESv1_CM">
386 <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="libGLES2">
392 <term><filename class="libraryfile">libGLES2.so</filename></term>
393 <listitem>
394 <para>
395 is the <application>Mesa</application> OpenGL ES 2.0 library.
396 </para>
397 <indexterm zone="mesalib libGLES2">
398 <primary sortas="c-libGLES2">libGLES2.so</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
[ba2ac60]403 <varlistentry id="libGL">
[a07e9eb]404 <term><filename class="libraryfile">libGL.so</filename></term>
[ba2ac60]405 <listitem>
[eb425b4]406 <para>
[a07e9eb]407 is the main <application>Mesa</application> OpenGL library.
[eb425b4]408 </para>
[ba2ac60]409 <indexterm zone="mesalib libGL">
410 <primary sortas="c-libGL">libGL.so</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414
[2993b2f]415 <varlistentry id="libOSMesa">
416 <term><filename class="libraryfile">libOSMesa.so</filename></term>
417 <listitem>
418 <para>
419 is the <application>Mesa</application> Off-screen Rendering library.
420 </para>
421 <indexterm zone="mesalib libOSMesa">
422 <primary sortas="c-libOSMesa">libOSMesa.so</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
[bad6be19]427 <varlistentry id="libxatracker">
[a07e9eb]428 <term><filename class="libraryfile">libxatracker.so</filename></term>
[ba2ac60]429 <listitem>
[eb425b4]430 <para>
[a07e9eb]431 is the Xorg Gallium3D acceleration library.
[eb425b4]432 </para>
[bad6be19]433 <indexterm zone="mesalib libxatracker">
434 <primary sortas="c-libxatracker">libxatracker.so</primary>
[ba2ac60]435 </indexterm>
436 </listitem>
437 </varlistentry>
[4437f63]438 </variablelist>
439
[868c7c2]440 </sect2>
[d3ef1e4]441
[868c7c2]442</sect1>
Note: See TracBrowser for help on using the repository browser.