source: x/lib/libdrm.xml@ 6b063cc3

10.1 11.0 11.1 11.2 11.3 12.0 12.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 6b063cc3 was 6b063cc3, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tag xorg

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

  • Property mode set to 100644
File size: 7.8 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
[0f5317a4]7 <!ENTITY libdrm-download-http "https://dri.freedesktop.org/libdrm/libdrm-&libdrm-version;.tar.xz">
[aa7a7fb]8 <!ENTITY libdrm-download-ftp " ">
[c513d6e6]9 <!ENTITY libdrm-md5sum "6b23163def82f540e2b5e2873b1c4b92">
10 <!ENTITY libdrm-size "412 KB">
[0024c34]11 <!ENTITY libdrm-buildsize "12 MB (with tests)">
[f4327ad9]12 <!ENTITY libdrm-time "0.1 SBU (with tests)">
13 <!-- With version 2.4.102, the tests add 1 second to my build. -->
[868c7c2]14]>
15
16<sect1 id="libdrm" xreflabel="libdrm-&libdrm-version;">
17 <?dbhtml filename="libdrm.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>libdrm-&libdrm-version;</title>
25
26 <indexterm zone="libdrm">
27 <primary sortas="a-libdrm">libdrm</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to libdrm</title>
32
[3bbf74c5]33 <para>
[ef704b0]34 <application>libdrm</application> provides a user space library for
[3538884]35 accessing the DRM, direct rendering manager, on operating systems that
36 support the ioctl interface. libdrm is a low-level library, typically used
37 by graphics drivers such as the Mesa DRI drivers, the X drivers, libva and
38 similar projects.
[3bbf74c5]39 </para>
[868c7c2]40
[6b063cc3]41 &lfs101_checked;
[1ed7820]42
[868c7c2]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[3bbf74c5]46 <para>
47 Download (HTTP): <ulink url="&libdrm-download-http;"/>
48 </para>
[868c7c2]49 </listitem>
50 <listitem>
[3bbf74c5]51 <para>
52 Download (FTP): <ulink url="&libdrm-download-ftp;"/>
53 </para>
[868c7c2]54 </listitem>
55 <listitem>
[3bbf74c5]56 <para>
57 Download MD5 sum: &libdrm-md5sum;
58 </para>
[868c7c2]59 </listitem>
60 <listitem>
[3bbf74c5]61 <para>
62 Download size: &libdrm-size;
63 </para>
[868c7c2]64 </listitem>
65 <listitem>
[3bbf74c5]66 <para>
67 Estimated disk space required: &libdrm-buildsize;
68 </para>
[868c7c2]69 </listitem>
70 <listitem>
[3bbf74c5]71 <para>
72 Estimated build time: &libdrm-time;
73 </para>
[868c7c2]74 </listitem>
75 </itemizedlist>
76
[10e02da]77 <bridgehead renderas="sect3">libdrm Dependencies</bridgehead>
78
[3538884]79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
[6121fe5]81 <xref linkend="xorg7-lib"/> (for Intel KMS API support required by Mesa)
[0d6e0af]82 </para>
[10e02da]83
[0d6e0af]84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
[597ac4bd]86 <xref linkend="cairo"/> (for tests),
[7292e01]87 <xref linkend="cmake"/> (could be used to find dependencies without pkgconfig files),
[e520239f]88 <xref linkend="DocBook"/>,
89 <xref linkend="docbook-xsl"/> and
[597ac4bd]90 <xref linkend="libxslt"/> (to build manual pages),
[7292e01]91 <xref linkend="libatomic_ops"/> (required by architectures without native atomic operations),
[597ac4bd]92 <xref linkend="valgrind"/>, and
93 <ulink url="http://cunit.sourceforge.net/">CUNIT</ulink> (for AMDGPU tests)
[0d6e0af]94 </para>
[14dcfecb]95
[c5c2654]96 <para condition="html" role="usernotes">User Notes:
[3bbf74c5]97 <ulink url="&blfs-wiki;/libdrm"/>
98 </para>
[868c7c2]99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of libdrm</title>
103
[3bbf74c5]104 <para>
105 Install <application>libdrm</application> by running the following
106 commands:
107 </para>
[868c7c2]108
[49df687a]109<screen><userinput>mkdir build &amp;&amp;
[431f388]110cd build &amp;&amp;
111
[49df687a]112meson --prefix=$XORG_PREFIX -Dudev=true &amp;&amp;
113ninja</userinput></screen>
[868c7c2]114
[3bbf74c5]115 <para>
[f4327ad9]116 To check the results, issue <command>ninja test</command>. <!--One test,
[17756081]117 'threaded' in the nouveau subdirectory, is known to fail with a
[f4327ad9]118 30 second timeout.-->
119 <!-- Regarding the 'threaded' test, it's now skipped by default (2.4.102)
120 -renodr -->
[17756081]121
122 <!-- Tests may hang
[0f09c2b8]123 for unknown reasons. --><!-- If nouveau threaded test hangs, you can disable it
[68d5b0e]124 with
[17756081]125 <command>sed -i 's/^TESTS/#&amp;/' tests/nouveau/Makefile.in</command>.
126
127 Now that tests are run with ninja, the test merely times out after 30 seconds.
128 -->
[3bbf74c5]129 </para>
[ad54ac8]130
[3bbf74c5]131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
[868c7c2]134
[49df687a]135<screen role="root"><userinput>ninja install</userinput></screen>
[868c7c2]136
137 </sect2>
138
[7c472863]139 <sect2 role="commands">
140 <title>Command Explanations</title>
141
[6eceb9c8]142 <para>
[49df687a]143 <parameter>-Dudev=true</parameter>: This parameter enables support for using
[6eceb9c8]144 <application>Udev</application> instead of <command>mknod</command>.
145 </para>
[a9ae025]146
[7c472863]147 </sect2>
148
[868c7c2]149 <sect2 role="content">
150 <title>Contents</title>
151
152 <segmentedlist>
[c3c56b2]153 <segtitle>Installed Programs</segtitle>
[a1e27dc]154 <segtitle>Installed Libraries</segtitle>
[86f7fa0]155 <segtitle>Installed Directories</segtitle>
[868c7c2]156
157 <seglistitem>
[c3c56b2]158 <seg>
159 None
160 </seg>
[3bbf74c5]161 <seg>
[68d5b0e]162 libdrm_amdgpu.so, libdrm_intel.so, libdrm_nouveau.so,
163 libdrm_radeon.so, libdrm.so, and libkms.so
[3bbf74c5]164 </seg>
165 <seg>
[55781c2]166 /usr/include/libdrm, /usr/include/libkms, and /usr/share/libdrm
[3bbf74c5]167 </seg>
[868c7c2]168 </seglistitem>
169 </segmentedlist>
170
171 <variablelist>
172 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
173 <?dbfo list-presentation="list"?>
174 <?dbhtml list-presentation="table"?>
175
[68d5b0e]176 <varlistentry id="libdrm_amdgpu">
177 <term><filename class="libraryfile">libdrm_amdgpu.so</filename></term>
[868c7c2]178 <listitem>
[3bbf74c5]179 <para>
[4c24eb0a]180 contains the AMDGPU specific Direct Rendering Manager functions
[3bbf74c5]181 </para>
[68d5b0e]182 <indexterm zone="libdrm libdrm_amdgpu">
183 <primary sortas="c-libdrm_amdgpu">libdrm_amdgpu.so</primary>
[a07e9eb]184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="libdrm_intel">
189 <term><filename class="libraryfile">libdrm_intel.so</filename></term>
190 <listitem>
191 <para>
192 contains the Intel specific Direct Rendering Manager
[4c24eb0a]193 functions
[a07e9eb]194 </para>
195 <indexterm zone="libdrm libdrm_intel">
196 <primary sortas="c-libdrm_intel">libdrm_intel.so</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="libdrm_nouveau">
202 <term><filename class="libraryfile">libdrm_nouveau.so</filename></term>
203 <listitem>
204 <para>
205 contains the open source nVidia (Nouveau) specific Direct
[4c24eb0a]206 Rendering Manager functions
[a07e9eb]207 </para>
208 <indexterm zone="libdrm libdrm_nouveau">
209 <primary sortas="c-libdrm_nouveau">libdrm_nouveau.so</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
[34122fa4]214 <varlistentry id="libdrm_radeon">
215 <term><filename class="libraryfile">libdrm_radeon.so</filename></term>
[68d5b0e]216 <listitem>
217 <para>
[34122fa4]218 contains the AMD Radeon specific Direct Rendering Manager
[4c24eb0a]219 functions
[68d5b0e]220 </para>
[34122fa4]221 <indexterm zone="libdrm libdrm_radeon">
222 <primary sortas="c-libdrm_radeon">libdrm_radeon.so</primary>
[68d5b0e]223 </indexterm>
224 </listitem>
225 </varlistentry>
226
[34122fa4]227 <varlistentry id="libdrm-lib">
228 <term><filename class="libraryfile">libdrm.so</filename></term>
[a07e9eb]229 <listitem>
230 <para>
[4c24eb0a]231 contains the Direct Rendering Manager API functions
[a07e9eb]232 </para>
[34122fa4]233 <indexterm zone="libdrm libdrm-lib">
234 <primary sortas="c-libdrm">libdrm.so</primary>
[7c472863]235 </indexterm>
236 </listitem>
237 </varlistentry>
[3bbf74c5]238
[a07e9eb]239 <varlistentry id="libkms">
240 <term><filename class="libraryfile">libkms.so</filename></term>
[7c472863]241 <listitem>
[3bbf74c5]242 <para>
[4c24eb0a]243 contains API functions for kernel mode setting abstraction
[3bbf74c5]244 </para>
[a07e9eb]245 <indexterm zone="libdrm libkms">
[7c472863]246 <primary sortas="c-libkms">libkms.so</primary>
[868c7c2]247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 </variablelist>
252
253 </sect2>
254
255</sect1>
Note: See TracBrowser for help on using the repository browser.