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