source: x/lib/libdrm.xml@ e917814

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since e917814 was 14891a90, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 8.4 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 " ">
[cce533d]9 <!ENTITY libdrm-md5sum "5403981a20c964f4c893ff91393652bd">
10 <!ENTITY libdrm-size "459 KB">
11 <!ENTITY libdrm-buildsize "8.6 MB (with tests)">
12 <!ENTITY libdrm-time "less than 0.1 SBU (with tests) with parallelism=4">
[f4327ad9]13 <!-- With version 2.4.102, the tests add 1 second to my build. -->
[f1a479c7]14 <!-- The 'threaded' test adds about 15 seconds if you're on an NVIDIA system
15 due to it directly interacting with the GPU. -->
[868c7c2]16]>
17
18<sect1 id="libdrm" xreflabel="libdrm-&libdrm-version;">
19 <?dbhtml filename="libdrm.html"?>
20
21
[a0e08b2]22 <title>Libdrm-&libdrm-version;</title>
[868c7c2]23
24 <indexterm zone="libdrm">
25 <primary sortas="a-libdrm">libdrm</primary>
26 </indexterm>
27
28 <sect2 role="package">
[a0e08b2]29 <title>Introduction to Libdrm</title>
[868c7c2]30
[3bbf74c5]31 <para>
[a0e08b2]32 <application>Libdrm</application> provides a userspace library for
33 accessing the direct rendering manager (DRM) on operating systems that
34 support the ioctl interface. Libdrm is a low-level library, typically used
[3538884]35 by graphics drivers such as the Mesa DRI drivers, the X drivers, libva and
36 similar projects.
[3bbf74c5]37 </para>
[868c7c2]38
[18aa9339]39 &lfs113_checked;
[1ed7820]40
[868c7c2]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[3bbf74c5]44 <para>
45 Download (HTTP): <ulink url="&libdrm-download-http;"/>
46 </para>
[868c7c2]47 </listitem>
48 <listitem>
[3bbf74c5]49 <para>
50 Download (FTP): <ulink url="&libdrm-download-ftp;"/>
51 </para>
[868c7c2]52 </listitem>
53 <listitem>
[3bbf74c5]54 <para>
55 Download MD5 sum: &libdrm-md5sum;
56 </para>
[868c7c2]57 </listitem>
58 <listitem>
[3bbf74c5]59 <para>
60 Download size: &libdrm-size;
61 </para>
[868c7c2]62 </listitem>
63 <listitem>
[3bbf74c5]64 <para>
65 Estimated disk space required: &libdrm-buildsize;
66 </para>
[868c7c2]67 </listitem>
68 <listitem>
[3bbf74c5]69 <para>
70 Estimated build time: &libdrm-time;
71 </para>
[868c7c2]72 </listitem>
73 </itemizedlist>
74
[10e02da]75 <bridgehead renderas="sect3">libdrm Dependencies</bridgehead>
76
[3538884]77 <bridgehead renderas="sect4">Recommended</bridgehead>
78 <para role="recommended">
[6121fe5]79 <xref linkend="xorg7-lib"/> (for Intel KMS API support required by Mesa)
[0d6e0af]80 </para>
[10e02da]81
[0d6e0af]82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
[597ac4bd]84 <xref linkend="cairo"/> (for tests),
[7292e01]85 <xref linkend="cmake"/> (could be used to find dependencies without pkgconfig files),
[e520239f]86 <xref linkend="DocBook"/>,
[4d59e9e]87 <xref linkend="docbook-xsl"/>,
88 <xref linkend="docutils"/>, and
[597ac4bd]89 <xref linkend="libxslt"/> (to build manual pages),
[7292e01]90 <xref linkend="libatomic_ops"/> (required by architectures without native atomic operations),
[597ac4bd]91 <xref linkend="valgrind"/>, and
[2974f01]92 <ulink url="https://cunit.sourceforge.net/">CUnit</ulink> (for AMDGPU tests)
[0d6e0af]93 </para>
[14dcfecb]94
[868c7c2]95 </sect2>
96
97 <sect2 role="installation">
[a0e08b2]98 <title>Installation of Libdrm</title>
[868c7c2]99
[3bbf74c5]100 <para>
101 Install <application>libdrm</application> by running the following
102 commands:
103 </para>
[868c7c2]104
[49df687a]105<screen><userinput>mkdir build &amp;&amp;
[431f388]106cd build &amp;&amp;
107
[91318eb]108meson setup --prefix=$XORG_PREFIX \
109 --buildtype=release \
110 -Dudev=true \
111 -Dvalgrind=disabled \
112 .. &amp;&amp;
[49df687a]113ninja</userinput></screen>
[868c7c2]114
[3bbf74c5]115 <para>
[f4327ad9]116 To check the results, issue <command>ninja test</command>. <!--One test,
[8558044]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 -->
[8558044]121
[17756081]122 <!-- Tests may hang
[0f09c2b8]123 for unknown reasons. --><!-- If nouveau threaded test hangs, you can disable it
[68d5b0e]124 with
[8558044]125 <command>sed -i 's/^TESTS/#&amp;/' tests/nouveau/Makefile.in</command>.
126
[17756081]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
[adf17153]142 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
143 href="../../xincludes/meson-buildtype-release.xml"/>
144
[6eceb9c8]145 <para>
[49df687a]146 <parameter>-Dudev=true</parameter>: This parameter enables support for using
[6eceb9c8]147 <application>Udev</application> instead of <command>mknod</command>.
148 </para>
[a9ae025]149
[724fc4d1]150 <para>
[80eea7aa]151 <parameter>-Dvalgrind=disabled</parameter>: This parameter disables
152 building libdrm with valgrind support. This fixes building sysprof and
153 other packages that use libdrm. Change this parameter to "enabled"
154 (or remove it) if you need support for valgrind.
[724fc4d1]155 </para>
156
[7c472863]157 </sect2>
158
[868c7c2]159 <sect2 role="content">
160 <title>Contents</title>
161
162 <segmentedlist>
[c3c56b2]163 <segtitle>Installed Programs</segtitle>
[a1e27dc]164 <segtitle>Installed Libraries</segtitle>
[86f7fa0]165 <segtitle>Installed Directories</segtitle>
[868c7c2]166
167 <seglistitem>
[c3c56b2]168 <seg>
169 None
170 </seg>
[3bbf74c5]171 <seg>
[68d5b0e]172 libdrm_amdgpu.so, libdrm_intel.so, libdrm_nouveau.so,
[4956ae3]173 libdrm_radeon.so, and libdrm.so<!--, and libkms.so-->
[3bbf74c5]174 </seg>
175 <seg>
[1fe05eb]176 /usr/include/libdrm <!--,/usr/include/libkms,-->
[4956ae3]177 and /usr/share/libdrm
[3bbf74c5]178 </seg>
[868c7c2]179 </seglistitem>
180 </segmentedlist>
181
182 <variablelist>
183 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
184 <?dbfo list-presentation="list"?>
185 <?dbhtml list-presentation="table"?>
186
[68d5b0e]187 <varlistentry id="libdrm_amdgpu">
188 <term><filename class="libraryfile">libdrm_amdgpu.so</filename></term>
[868c7c2]189 <listitem>
[3bbf74c5]190 <para>
[4c24eb0a]191 contains the AMDGPU specific Direct Rendering Manager functions
[3bbf74c5]192 </para>
[68d5b0e]193 <indexterm zone="libdrm libdrm_amdgpu">
194 <primary sortas="c-libdrm_amdgpu">libdrm_amdgpu.so</primary>
[a07e9eb]195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="libdrm_intel">
200 <term><filename class="libraryfile">libdrm_intel.so</filename></term>
201 <listitem>
202 <para>
203 contains the Intel specific Direct Rendering Manager
[4c24eb0a]204 functions
[a07e9eb]205 </para>
206 <indexterm zone="libdrm libdrm_intel">
207 <primary sortas="c-libdrm_intel">libdrm_intel.so</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="libdrm_nouveau">
213 <term><filename class="libraryfile">libdrm_nouveau.so</filename></term>
214 <listitem>
215 <para>
216 contains the open source nVidia (Nouveau) specific Direct
[4c24eb0a]217 Rendering Manager functions
[a07e9eb]218 </para>
219 <indexterm zone="libdrm libdrm_nouveau">
220 <primary sortas="c-libdrm_nouveau">libdrm_nouveau.so</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
[34122fa4]225 <varlistentry id="libdrm_radeon">
226 <term><filename class="libraryfile">libdrm_radeon.so</filename></term>
[68d5b0e]227 <listitem>
228 <para>
[34122fa4]229 contains the AMD Radeon specific Direct Rendering Manager
[4c24eb0a]230 functions
[68d5b0e]231 </para>
[34122fa4]232 <indexterm zone="libdrm libdrm_radeon">
233 <primary sortas="c-libdrm_radeon">libdrm_radeon.so</primary>
[68d5b0e]234 </indexterm>
235 </listitem>
236 </varlistentry>
237
[34122fa4]238 <varlistentry id="libdrm-lib">
239 <term><filename class="libraryfile">libdrm.so</filename></term>
[a07e9eb]240 <listitem>
241 <para>
[4c24eb0a]242 contains the Direct Rendering Manager API functions
[a07e9eb]243 </para>
[34122fa4]244 <indexterm zone="libdrm libdrm-lib">
245 <primary sortas="c-libdrm">libdrm.so</primary>
[7c472863]246 </indexterm>
247 </listitem>
248 </varlistentry>
[3bbf74c5]249
[4956ae3]250 <!-- Removed in 2.4.111
[a07e9eb]251 <varlistentry id="libkms">
252 <term><filename class="libraryfile">libkms.so</filename></term>
[7c472863]253 <listitem>
[3bbf74c5]254 <para>
[4c24eb0a]255 contains API functions for kernel mode setting abstraction
[3bbf74c5]256 </para>
[a07e9eb]257 <indexterm zone="libdrm libkms">
[7c472863]258 <primary sortas="c-libkms">libkms.so</primary>
[868c7c2]259 </indexterm>
260 </listitem>
261 </varlistentry>
[4956ae3]262 -->
[868c7c2]263
264 </variablelist>
265
266 </sect2>
267
268</sect1>
Note: See TracBrowser for help on using the repository browser.