glfs/x/installing/intel-media-driver.xml

209 lines
6.5 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY intel-media-driver-version "23.2.3">
<!ENTITY intel-media-driver-download-http "https://github.com/intel/media-driver/archive/refs/tags/intel-media-&intel-media-driver-version;.tar.gz">
<!ENTITY intel-media-driver-download-ftp " ">
<!ENTITY intel-media-driver-md5sum "0fe79c9b7a44302b628c5af082860978">
<!ENTITY intel-media-driver-size "27 MB">
<!ENTITY intel-media-driver-buildsize "2.3 GB (390 MB installed)">
<!ENTITY intel-media-driver-time "10 SBU (with parallelism=4)">
]>
<sect2 id="intel-media-driver" xreflabel="intel-media-driver-&intel-media-driver-version;">
<sect2info>
<date>$Date$</date>
</sect2info>
<title>intel-media-driver-&intel-media-driver-version;</title>
<indexterm zone="intel-media-driver">
<primary sortas="a-intel-media-driver">intel-media-driver</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to intel-media-driver</title>
<para>
The <application>intel-media-driver</application> package provides a
VA API driver for Intel GPUs that are provided with Broadwell CPUs and
higher. This includes support for a variety of codecs.
</para>
&lfs113_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&intel-media-driver-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&intel-media-driver-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &intel-media-driver-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &intel-media-driver-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &intel-media-driver-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &intel-media-driver-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/intel-media-driver-&intel-media-driver-version;-upstream_fixes-1.patch"/>
</para>
</listitem>
</itemizedlist>
<note>
<para>
The tarball <filename>intel-media-&intel-media-driver-version;.tar.gz</filename>
will extract to the directory
<filename class="directory">media-driver-intel-media-&intel-media-driver-version;</filename>.
</para>
</note>
<bridgehead renderas="sect4">intel-media-driver Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="cmake"/>,
<xref linkend="intel-gmmlib"/>, and
<xref linkend="libva"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of intel-media-driver</title>
<note>
<para>
This package takes a long time to build because it compiles code
specific to each individual generation of Intel GPUs and for a
variety of media codecs.
</para>
<!-- This reduce the size of iHD_drv_video.so from 319M to 157M
for me. -->
<para>
If you know the model of your Intel GPU, you can pass the
<option>-D{GEN{8,9,10,11,12},MTL}=OFF</option> option to the
<command>cmake</command> command but leaving the option for your
GPU out. Note that the <quote>GEN</quote> number here is the
generation of the GPU, not the CPU. For example, with an Intel
Core i7-1065G7 CPU shipping a 11th-generation Intel GPU, the
<option>-D{GEN{8,9,10,12},MTL}=OFF</option> option can be used
so the code specific to the other generations of Intel GPUs won't
be built.
</para>
</note>
<para>
First, fix a few build failures with GCC-13:
</para>
<screen><userinput remap="pre">patch -Np1 -i ../intel-media-driver-&intel-media-driver-version;-upstream_fixes-1.patch</userinput></screen>
<para>
Install <application>intel-media-driver</application> by running the
following commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
cmake -DCMAKE_INSTALL_PREFIX=$XORG_PREFIX \
-DINSTALL_DRIVER_SYSCONF=OFF \
-DBUILD_TYPE=Release \
-Wno-dev .. &amp;&amp;
make</userinput></screen>
<para>
This package does not come with a test suite.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Drivers</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
libigfxcmrt.so
</seg>
<seg>
iHD_drv_video.so
</seg>
<seg>
/usr/include/igfxcmrt
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libigfxcmrt">
<term><filename class="libraryfile">libigfxcmrt.so</filename></term>
<listitem>
<para>
provides API functions which allow running GPU kernels on the
render engine
</para>
<indexterm zone="intel-media-driver libigfxcmrt">
<primary sortas="c-libigfxcmrt">libigfxcmrt.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>