Upgraded Intel media driver from 22.6.6 to 23.4.3

This commit is contained in:
dslm4515
2024-02-12 10:08:59 -06:00
parent 5f3d185139
commit b338c309f5

View File

@ -1,7 +1,7 @@
#! /bin/bash
# Intel Media Driver for VAAPI
# Source: https://github.com/intel/media-driver/archive/refs/tags/intel-media-22.6.6.tar.gz
# Source: https://github.com/intel/media-driver/archive/refs/tags/intel-media-23.4.3.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
@ -11,11 +11,15 @@
# Recommended: mesa
# Optional: NONE
# To reduce build time,
# pass the -D{GEN{8,9,11,12},MTL,ARL}=OFF option to the cmake command
# but leaving the option for your GPU's generation number out.
cmake -B BUILD -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -Wno-dev
read -p "Compile?" && make -C BUILD -j2 &&
sudo -S make DESTDIR=$BUILD -C BUILD install &&
sudo -S DESTDIR=$BUILD cmake --install build --strip &&
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
@ -37,5 +41,5 @@ intel-media-driver: https://github.com/intel/media-driver
intel-media-driver:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/intel-media-driver-22.6.6-$PSUFFIX &&
sudo -S makepkg -l y -c n $PKGS/intel-media-driver-23.4.3-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*