The intel-media 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.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/intel/media-driver/archive/intel-media-24.3.4.tar.gz
Download MD5 sum: 23b9c4b759bcc26956b39fe906f53dc1
Download size: 26 MB
Estimated disk space required: 2.1 GB (211 MB installed with a single GPU model)
Estimated build time: 3.8 SBU (with parallelism=4 and a single GPU model)
The tarball intel-media-24.3.4.tar.gz
will extract to the
directory media-driver-intel-media-24.3.4
.
CMake-3.31.1, Intel-gmmlib-22.5.3, libva-2.22.0, and Xorg build environment
Enable the following options in the kernel configuration. Recompile the kernel if necessary:
Device Drivers ---> Graphics support ---> <*/M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> ... [DRM] <*/M> Intel 8xx/9xx/G3x/G4x/HD Graphics [DRM_I915]
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.
If you know the model of your Intel GPU, you can pass the
-D{GEN{8,9,11,12},MTL,ARL,LNL,BMG}=OFF
option to
the cmake command
but leaving the option for your GPU out. Note that the
“GEN”
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 -D{GEN{8,9,12},MTL,ARL,LNG,BMG}=OFF
option can be
used so the code specific to the other generations of Intel GPUs
won't be built.
To determine the model of the Intel GPU, install pciutils-3.13.0 and run lspci -nn | grep -Ei
'VGA|DISPLAY' first. It will output some
information about the GPU, including the PCI vendor ID
(8086
for Intel) and the PCI device
ID. For example, with an Intel Core i5-11300H CPU, the output is
8086:9a49
. Now searching for the
registration of this device ID in the intel-media source tree:
grep -ri 'RegisterDevice(0x9a49
'
And determine the GPU model from the file name containing the
registration. For the example above, the file name is
media_sysinfo_g12.cpp
, indicating
the model is GEN12
.
Install intel-media by running the following commands:
mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX=$XORG_PREFIX \ -D INSTALL_DRIVER_SYSCONF=OFF \ -D BUILD_TYPE=Release \ -G Ninja \ -W no-dev .. && ninja
This package does not come with a test suite.
Now, as the root
user:
ninja install