source: multimedia/libdriv/intel-media.xml@ 66adf1ed

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 66adf1ed was 970a73c, checked in by Xi Ruoyao <xry111@…>, 10 months ago

intel-media: Add -DARL=OFF for device specific build

Note that if ARL=ON (the default) but MTL=OFF, this package FTBFS.
Once an Arrow Lake CPU is launched we may need to review the issue.

  • Property mode set to 100644
File size: 7.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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/refs/tags/intel-media-&intel-media-version;.tar.gz">
10 <!ENTITY intel-media-download-ftp " ">
11 <!ENTITY intel-media-md5sum "a6f48933bcb3d55dea8ec2e66c4f99e1">
12 <!ENTITY intel-media-size "27 MB">
13 <!ENTITY intel-media-buildsize "2.5 GB (359 MB installed)">
14 <!ENTITY intel-media-time "5.9 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 &lfs120_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<!--
77 <bridgehead renderas="sect2">Additional Downloads</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Required patch:
82 <ulink url="&patch-root;/intel-media-&intel-media-version;-upstream_fixes-1.patch"/>
83 </para>
84 </listitem>
85 </itemizedlist>
86-->
87
88 <note>
89 <para>
90 The tarball <filename>intel-media-&intel-media-version;.tar.gz</filename>
91 will extract to the directory
92 <filename class="directory">media-driver-intel-media-&intel-media-version;</filename>.
93 </para>
94 </note>
95
96 <bridgehead renderas="sect3">intel-media Dependencies</bridgehead>
97
98 <bridgehead renderas="sect4">Required</bridgehead>
99 <para role="required">
100 <xref linkend="cmake"/>,
101 <xref linkend="intel-gmmlib"/>,
102 <xref linkend="libva"/>, and
103 <xref linkend="xorg-env"/>
104 </para>
105
106 </sect2>
107
108 <sect2 role="kernel" id='intel-media-kernel'>
109 <title>Kernel Configuration</title>
110
111 <para>
112 Enable the following options in the kernel configuration.
113 Recompile the kernel if necessary:
114 </para>
115
116 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
117 href="intel-media-kernel.xml"/>
118
119 <indexterm zone="intel-media intel-media-kernel">
120 <primary sortas="d-intel-media">intel-media</primary>
121 </indexterm>
122 </sect2>
123
124 <!-- TODO: It's said Gen9+ (Skylake or later) may need some firmware files. -->
125
126 <sect2 role="installation">
127 <title>Installation of intel-media</title>
128
129 <note>
130 <para>
131 This package takes a long time to build because it compiles code
132 specific to each individual generation of Intel GPUs and for a
133 variety of media codecs.
134 </para>
135
136 <!-- This reduce the size of iHD_drv_video.so from 319M to 157M
137 for me. -->
138 <!-- It seems ARL depends on MTL. We need to review once an Arrow
139 Lake CPU is launched. -->
140 <para>
141 If you know the model of your Intel GPU, you can pass the
142 <option>-D{GEN{8,9,10,11,12},MTL,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,10,12},MTL,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 </note>
152
153<!--
154 <para>
155 First, fix a few build failures with GCC-13:
156 </para>
157
158 <screen><userinput remap="pre">patch -Np1 -i ../intel-media-&intel-media-version;-upstream_fixes-1.patch</userinput></screen>
159-->
160
161 <para>
162 Install <application>intel-media</application> by running the
163 following commands:
164 </para>
165
166<screen><userinput>mkdir build &amp;&amp;
167cd build &amp;&amp;
168
169cmake -DCMAKE_INSTALL_PREFIX=$XORG_PREFIX \
170 -DINSTALL_DRIVER_SYSCONF=OFF \
171 -DBUILD_TYPE=Release \
172 -Wno-dev .. &amp;&amp;
173make</userinput></screen>
174
175 <para>
176 This package does not come with a test suite.
177 </para>
178
179 <para>
180 Now, as the <systemitem class="username">root</systemitem> user:
181 </para>
182
183<screen role="root"><userinput>make install</userinput></screen>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title>Contents</title>
189
190 <segmentedlist>
191 <segtitle>Installed Programs</segtitle>
192 <segtitle>Installed Libraries</segtitle>
193 <segtitle>Installed Drivers</segtitle>
194 <segtitle>Installed Directories</segtitle>
195
196 <seglistitem>
197 <seg>
198 None
199 </seg>
200 <seg>
201 libigfxcmrt.so
202 </seg>
203 <seg>
204 iHD_drv_video.so
205 </seg>
206 <seg>
207 /usr/include/igfxcmrt
208 </seg>
209 </seglistitem>
210 </segmentedlist>
211
212 <variablelist>
213 <bridgehead renderas="sect2">Short Descriptions</bridgehead>
214 <?dbfo list-presentation="list"?>
215 <?dbhtml list-presentation="table"?>
216
217 <varlistentry id="libigfxcmrt">
218 <term><filename class="libraryfile">libigfxcmrt.so</filename></term>
219 <listitem>
220 <para>
221 provides API functions which allow running GPU kernels on the
222 render engine
223 </para>
224 <indexterm zone="intel-media libigfxcmrt">
225 <primary sortas="c-libigfxcmrt">libigfxcmrt.so</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 </variablelist>
231
232 </sect2>
233
234 </sect1>
Note: See TracBrowser for help on using the repository browser.