[308cbf9] | 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 |
|
---|
[a78da9f0] | 7 | <!--<!ENTITY intel-media-driver-version "23.2.4">-->
|
---|
[308cbf9] | 8 |
|
---|
[067e27f] | 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 " ">
|
---|
[200a68b] | 11 | <!ENTITY intel-media-md5sum "d018709de16cfbd7a72f942379bbe3af">
|
---|
[c355675] | 12 | <!ENTITY intel-media-size "28 MB">
|
---|
[200a68b] | 13 | <!ENTITY intel-media-buildsize "2.4 GB (320 MB installed)">
|
---|
[c355675] | 14 | <!ENTITY intel-media-time "5.7 SBU (with parallelism=4)">
|
---|
[308cbf9] | 15 |
|
---|
| 16 | ]>
|
---|
| 17 |
|
---|
[067e27f] | 18 | <sect1 id="intel-media" xreflabel="intel-media-&intel-media-version;">
|
---|
| 19 | <?dbhtml filename="intel-media.html"?>
|
---|
[308cbf9] | 20 |
|
---|
[9a612888] | 21 | <sect1info>
|
---|
[308cbf9] | 22 | <date>$Date$</date>
|
---|
[9a612888] | 23 | </sect1info>
|
---|
[308cbf9] | 24 |
|
---|
[067e27f] | 25 | <title>intel-media-&intel-media-version;</title>
|
---|
[308cbf9] | 26 |
|
---|
[067e27f] | 27 | <indexterm zone="intel-media">
|
---|
| 28 | <primary sortas="a-intel-media">intel-media</primary>
|
---|
[308cbf9] | 29 | </indexterm>
|
---|
| 30 |
|
---|
[9a612888] | 31 | <sect2 role="package">
|
---|
[067e27f] | 32 | <title>Introduction to intel-media</title>
|
---|
[308cbf9] | 33 |
|
---|
| 34 | <para>
|
---|
[067e27f] | 35 | The <application>intel-media</application> package provides a
|
---|
[308cbf9] | 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 |
|
---|
[ef12a7e] | 40 | &lfs120_checked;
|
---|
[308cbf9] | 41 |
|
---|
[9a612888] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[308cbf9] | 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
[067e27f] | 46 | Download (HTTP): <ulink url="&intel-media-download-http;"/>
|
---|
[308cbf9] | 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
[067e27f] | 51 | Download (FTP): <ulink url="&intel-media-download-ftp;"/>
|
---|
[308cbf9] | 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
[067e27f] | 56 | Download MD5 sum: &intel-media-md5sum;
|
---|
[308cbf9] | 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
[067e27f] | 61 | Download size: &intel-media-size;
|
---|
[308cbf9] | 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
[067e27f] | 66 | Estimated disk space required: &intel-media-buildsize;
|
---|
[308cbf9] | 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
[067e27f] | 71 | Estimated build time: &intel-media-time;
|
---|
[308cbf9] | 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[88cf4eb] | 76 | <!--
|
---|
[9a612888] | 77 | <bridgehead renderas="sect2">Additional Downloads</bridgehead>
|
---|
[7d52b116] | 78 | <itemizedlist spacing="compact">
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>
|
---|
| 81 | Required patch:
|
---|
[067e27f] | 82 | <ulink url="&patch-root;/intel-media-&intel-media-version;-upstream_fixes-1.patch"/>
|
---|
[7d52b116] | 83 | </para>
|
---|
| 84 | </listitem>
|
---|
| 85 | </itemizedlist>
|
---|
[88cf4eb] | 86 | -->
|
---|
[7d52b116] | 87 |
|
---|
[308cbf9] | 88 | <note>
|
---|
| 89 | <para>
|
---|
[067e27f] | 90 | The tarball <filename>intel-media-&intel-media-version;.tar.gz</filename>
|
---|
[308cbf9] | 91 | will extract to the directory
|
---|
[067e27f] | 92 | <filename class="directory">media-driver-intel-media-&intel-media-version;</filename>.
|
---|
[308cbf9] | 93 | </para>
|
---|
| 94 | </note>
|
---|
| 95 |
|
---|
[067e27f] | 96 | <bridgehead renderas="sect3">intel-media Dependencies</bridgehead>
|
---|
[308cbf9] | 97 |
|
---|
[9a612888] | 98 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[308cbf9] | 99 | <para role="required">
|
---|
[25707aa7] | 100 | <xref linkend="cmake"/>,
|
---|
[32ed8002] | 101 | <xref linkend="intel-gmmlib"/>,
|
---|
| 102 | <xref linkend="libva"/>, and
|
---|
| 103 | <xref linkend="xorg-env"/>
|
---|
[308cbf9] | 104 | </para>
|
---|
| 105 |
|
---|
[9a612888] | 106 | </sect2>
|
---|
[308cbf9] | 107 |
|
---|
[067e27f] | 108 | <sect2 role="kernel" id='intel-media-kernel'>
|
---|
[4d17d1ae] | 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 |
|
---|
[cddcdb14] | 116 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 117 | href="intel-media-kernel.xml"/>
|
---|
[4d17d1ae] | 118 |
|
---|
[067e27f] | 119 | <indexterm zone="intel-media intel-media-kernel">
|
---|
| 120 | <primary sortas="d-intel-media">intel-media</primary>
|
---|
[4d17d1ae] | 121 | </indexterm>
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
[ee763b6] | 124 | <!-- TODO: It's said Gen9+ (Skylake or later) may need some firmware files. -->
|
---|
[4d17d1ae] | 125 |
|
---|
[9a612888] | 126 | <sect2 role="installation">
|
---|
[067e27f] | 127 | <title>Installation of intel-media</title>
|
---|
[308cbf9] | 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>
|
---|
[6a7191e6] | 135 |
|
---|
| 136 | <!-- This reduce the size of iHD_drv_video.so from 319M to 157M
|
---|
| 137 | for me. -->
|
---|
[970a73c] | 138 | <!-- It seems ARL depends on MTL. We need to review once an Arrow
|
---|
| 139 | Lake CPU is launched. -->
|
---|
[c355675] | 140 | <!-- Support for ARL is completely broken, needs to be turned off to
|
---|
| 141 | complete the build -->
|
---|
[6a7191e6] | 142 | <para>
|
---|
| 143 | If you know the model of your Intel GPU, you can pass the
|
---|
[970a73c] | 144 | <option>-D{GEN{8,9,10,11,12},MTL,ARL}=OFF</option> option to the
|
---|
[6a7191e6] | 145 | <command>cmake</command> command but leaving the option for your
|
---|
| 146 | GPU out. Note that the <quote>GEN</quote> number here is the
|
---|
| 147 | generation of the GPU, not the CPU. For example, with an Intel
|
---|
| 148 | Core i7-1065G7 CPU shipping a 11th-generation Intel GPU, the
|
---|
[970a73c] | 149 | <option>-D{GEN{8,9,10,12},MTL,ARL}=OFF</option> option can be used
|
---|
[6a7191e6] | 150 | so the code specific to the other generations of Intel GPUs won't
|
---|
| 151 | be built.
|
---|
| 152 | </para>
|
---|
[308cbf9] | 153 | </note>
|
---|
| 154 |
|
---|
[88cf4eb] | 155 | <!--
|
---|
[7d52b116] | 156 | <para>
|
---|
| 157 | First, fix a few build failures with GCC-13:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
[067e27f] | 160 | <screen><userinput remap="pre">patch -Np1 -i ../intel-media-&intel-media-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
[88cf4eb] | 161 | -->
|
---|
[7d52b116] | 162 |
|
---|
[308cbf9] | 163 | <para>
|
---|
[067e27f] | 164 | Install <application>intel-media</application> by running the
|
---|
[308cbf9] | 165 | following commands:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <screen><userinput>mkdir build &&
|
---|
| 169 | cd build &&
|
---|
| 170 |
|
---|
[2538620] | 171 | cmake -DCMAKE_INSTALL_PREFIX=$XORG_PREFIX \
|
---|
| 172 | -DINSTALL_DRIVER_SYSCONF=OFF \
|
---|
| 173 | -DBUILD_TYPE=Release \
|
---|
[c355675] | 174 | -D{MTL,ARL}=OFF \
|
---|
[308cbf9] | 175 | -Wno-dev .. &&
|
---|
| 176 | make</userinput></screen>
|
---|
| 177 |
|
---|
[200a68b] | 178 |
|
---|
[308cbf9] | 179 | <para>
|
---|
| 180 | This package does not come with a test suite.
|
---|
| 181 | </para>
|
---|
| 182 |
|
---|
| 183 | <para>
|
---|
| 184 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
| 187 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 188 |
|
---|
[9a612888] | 189 | </sect2>
|
---|
[308cbf9] | 190 |
|
---|
[200a68b] | 191 | <!-- As of Oct 1 2023, the build is broken if MTL and ARL are turned on
|
---|
| 192 | hopefully this is fixed by the time they launch, in which
|
---|
| 193 | case we can remove the option and this section [rahul] -->
|
---|
| 194 | <sect2 role="commands">
|
---|
| 195 | <title>Command Explanations</title>
|
---|
| 196 |
|
---|
| 197 | <para>
|
---|
| 198 | <parameter>-D{MTL,ARL}=OFF</parameter>: As of October 2023,
|
---|
| 199 | Meteor Lake and Arrow Lake iGPU support is broken but still
|
---|
| 200 | in intel-media. The build fails if either one is turned on,
|
---|
| 201 | for right now, as both have not been released, it is safe
|
---|
| 202 | to turn support for both off.
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
| 205 | </sect2>
|
---|
| 206 |
|
---|
[9a612888] | 207 | <sect2 role="content">
|
---|
[308cbf9] | 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
| 211 | <segtitle>Installed Programs</segtitle>
|
---|
| 212 | <segtitle>Installed Libraries</segtitle>
|
---|
| 213 | <segtitle>Installed Drivers</segtitle>
|
---|
| 214 | <segtitle>Installed Directories</segtitle>
|
---|
| 215 |
|
---|
| 216 | <seglistitem>
|
---|
| 217 | <seg>
|
---|
| 218 | None
|
---|
| 219 | </seg>
|
---|
| 220 | <seg>
|
---|
| 221 | libigfxcmrt.so
|
---|
| 222 | </seg>
|
---|
| 223 | <seg>
|
---|
| 224 | iHD_drv_video.so
|
---|
| 225 | </seg>
|
---|
| 226 | <seg>
|
---|
| 227 | /usr/include/igfxcmrt
|
---|
| 228 | </seg>
|
---|
| 229 | </seglistitem>
|
---|
| 230 | </segmentedlist>
|
---|
| 231 |
|
---|
| 232 | <variablelist>
|
---|
[9a612888] | 233 | <bridgehead renderas="sect2">Short Descriptions</bridgehead>
|
---|
[308cbf9] | 234 | <?dbfo list-presentation="list"?>
|
---|
| 235 | <?dbhtml list-presentation="table"?>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="libigfxcmrt">
|
---|
| 238 | <term><filename class="libraryfile">libigfxcmrt.so</filename></term>
|
---|
| 239 | <listitem>
|
---|
| 240 | <para>
|
---|
| 241 | provides API functions which allow running GPU kernels on the
|
---|
| 242 | render engine
|
---|
| 243 | </para>
|
---|
[067e27f] | 244 | <indexterm zone="intel-media libigfxcmrt">
|
---|
[308cbf9] | 245 | <primary sortas="c-libigfxcmrt">libigfxcmrt.so</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | </variablelist>
|
---|
| 251 |
|
---|
[9a612888] | 252 | </sect2>
|
---|
[308cbf9] | 253 |
|
---|
[9a612888] | 254 | </sect1>
|
---|