source: multimedia/libdriv/intel-media.xml@ 08c67d6

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 08c67d6 was 7ef2fd34, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Update to qt6-6.7.2 and qtwebengine-6.7.2.
Also do some spacing changes in uchardet, mpv, and intel-media

  • Property mode set to 100644
File size: 8.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 intel-media-driver-version "23.2.4">-->
8
9 <!ENTITY intel-media-download-http "https://github.com/intel/media-driver/archive/intel-media-&intel-media-version;.tar.gz">
10 <!ENTITY intel-media-download-ftp " ">
11 <!ENTITY intel-media-md5sum "2b9607518f01f55e277fdf92ec1ef100">
12 <!ENTITY intel-media-size "25 MB">
13 <!ENTITY intel-media-buildsize "2.4 GB (366 MB installed)">
14 <!ENTITY intel-media-time "5.3 SBU (with parallelism=4)">
15
16]>
17
18 <sect1 id="intel-media" xreflabel="intel-media-&intel-media-version;">
19 <?dbhtml filename="intel-media.html"?>
20
21 <sect1info>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>intel-media-&intel-media-version;</title>
26
27 <indexterm zone="intel-media">
28 <primary sortas="a-intel-media">intel-media</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to intel-media</title>
33
34 <para>
35 The <application>intel-media</application> package provides a
36 VA API driver for Intel GPUs that are provided with Broadwell CPUs and
37 higher. This includes support for a variety of codecs.
38 </para>
39
40 &lfs121_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&intel-media-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&intel-media-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &intel-media-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &intel-media-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &intel-media-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &intel-media-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect2">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/intel-media-&intel-media-version;-gcc14_fixes-1.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85
86 <note>
87 <para>
88 The tarball <filename>intel-media-&intel-media-version;.tar.gz</filename>
89 will extract to the directory
90 <filename class="directory">media-driver-intel-media-&intel-media-version;</filename>.
91 </para>
92 </note>
93
94 <bridgehead renderas="sect3">intel-media Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
97 <para role="required">
98 <xref linkend="cmake"/>,
99 <xref linkend="intel-gmmlib"/>,
100 <xref linkend="libva"/>, and
101 <xref linkend="xorg-env"/>
102 </para>
103
104 </sect2>
105
106 <sect2 role="kernel" id='intel-media-kernel'>
107 <title>Kernel Configuration</title>
108
109 <para>
110 Enable the following options in the kernel configuration.
111 Recompile the kernel if necessary:
112 </para>
113
114 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
115 href="intel-media-kernel.xml"/>
116
117 <indexterm zone="intel-media intel-media-kernel">
118 <primary sortas="d-intel-media">intel-media</primary>
119 </indexterm>
120 </sect2>
121
122 <!-- TODO: It's said Gen9+ (Skylake or later) may need some firmware files. -->
123
124 <sect2 role="installation">
125 <title>Installation of intel-media</title>
126
127 <note>
128 <para>
129 This package takes a long time to build because it compiles code
130 specific to each individual generation of Intel GPUs and for a
131 variety of media codecs.
132 </para>
133
134 <!-- This reduce the size of iHD_drv_video.so from 319M to 157M
135 for me. -->
136 <!-- It seems ARL depends on MTL. We need to review once an Arrow
137 Lake CPU is launched. -->
138 <!-- Support for ARL is completely broken, needs to be turned off to
139 complete the build -->
140 <para>
141 If you know the model of your Intel GPU, you can pass the
142 <option>-D{GEN{8,9,11,12},ARL}=OFF</option> option to the
143 <command>cmake</command> command but leaving the option for your
144 GPU out. Note that the <quote>GEN</quote> number here is the
145 generation of the GPU, not the CPU. For example, with an Intel
146 Core i7-1065G7 CPU shipping a 11th-generation Intel GPU, the
147 <option>-D{GEN{8,9,12},ARL}=OFF</option> option can be used
148 so the code specific to the other generations of Intel GPUs won't
149 be built.
150 </para>
151
152 <para>
153 To determine the model of the Intel GPU, install
154 <xref linkend='pciutils'/> and run
155 <command>lspci -nn | grep -Ei 'VGA|DISPLAY'</command> first.
156 It will output some information about the GPU. If the output
157 contains <literal>Meteor Lake</literal>, the GPU model is
158 <literal>MTL</literal>. Otherwise, follow
159 <ulink url='https://dgpu-docs.intel.com/devices/hardware-table.html'/>
160 to find the entry for your GPU and the model of the GPU should
161 be in the <quote>Architecture</quote> column. The Xe and XeHPG
162 architectures are covered by the <literal>GEN12</literal> model.
163 </para>
164 <!-- TODO: The info about MTL is my best guess, the referred Intel
165 page does not contain Meteor Lake GPU PCI devicd ID as at Feb 2024.
166 XeHPC is not enabled by default but they are some data center GPUs.
167 Not sure if anyone will run LFS in a data center. -->
168 </note>
169
170 <para>
171 First, fix a few build failures with GCC-14:
172 </para>
173
174 <screen><userinput remap="pre">patch -Np1 -i ../intel-media-&intel-media-version;-gcc14_fixes-1.patch</userinput></screen>
175
176 <para>
177 Install <application>intel-media</application> by running the
178 following commands:
179 </para>
180
181<screen><userinput>mkdir build &amp;&amp;
182cd build &amp;&amp;
183
184cmake -D CMAKE_INSTALL_PREFIX=$XORG_PREFIX \
185 -D INSTALL_DRIVER_SYSCONF=OFF \
186 -D BUILD_TYPE=Release \
187 -G Ninja \
188 -W no-dev .. &amp;&amp;
189ninja</userinput></screen>
190
191
192 <para>
193 This package does not come with a test suite.
194 </para>
195
196 <para>
197 Now, as the <systemitem class="username">root</systemitem> user:
198 </para>
199
200<screen role="root"><userinput>ninja install</userinput></screen>
201
202 </sect2>
203
204 <!-- As of Oct 1 2023, the build is broken if MTL and ARL are turned on
205 hopefully this is fixed by the time they launch, in which
206 case we can remove the option and this section [rahul] -->
207 <!-- As of October 31st, 2023, the build seems to be functional again! This
208 is with version 23.4.0. [renodr]
209 <sect2 role="commands">
210 <title>Command Explanations</title>
211
212 <para>
213 <parameter>-D{MTL,ARL}=OFF</parameter>: As of October 2023,
214 Meteor Lake and Arrow Lake iGPU support is broken but still
215 in intel-media. The build fails if support for either iGPU
216 is turned on. Since both of these have not been officially
217 released yet, it is safe to turn support for them off.
218 </para>
219
220 </sect2>
221 -->
222
223 <sect2 role="content">
224 <title>Contents</title>
225
226 <segmentedlist>
227 <segtitle>Installed Programs</segtitle>
228 <segtitle>Installed Libraries</segtitle>
229 <segtitle>Installed Drivers</segtitle>
230 <segtitle>Installed Directories</segtitle>
231
232 <seglistitem>
233 <seg>
234 None
235 </seg>
236 <seg>
237 libigfxcmrt.so
238 </seg>
239 <seg>
240 iHD_drv_video.so
241 </seg>
242 <seg>
243 /usr/include/igfxcmrt
244 </seg>
245 </seglistitem>
246 </segmentedlist>
247
248 <variablelist>
249 <bridgehead renderas="sect2">Short Descriptions</bridgehead>
250 <?dbfo list-presentation="list"?>
251 <?dbhtml list-presentation="table"?>
252
253 <varlistentry id="libigfxcmrt">
254 <term><filename class="libraryfile">libigfxcmrt.so</filename></term>
255 <listitem>
256 <para>
257 provides API functions which allow running GPU kernels on the
258 render engine
259 </para>
260 <indexterm zone="intel-media libigfxcmrt">
261 <primary sortas="c-libigfxcmrt">libigfxcmrt.so</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 </variablelist>
267
268 </sect2>
269
270 </sect1>
Note: See TracBrowser for help on using the repository browser.