Skip to content

Commit

Permalink
Use intel apt for out of tree drivers (#13829)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 authored Sep 19, 2024
1 parent 4515eb4 commit ddf3a68
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docker/main/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ fi

# arch specific packages
if [[ "${TARGETARCH}" == "amd64" ]]; then
# use debian bookworm for hwaccel packages
# use debian bookworm for amd / intel-i965 driver packages
echo 'deb https://deb.debian.org/debian bookworm main contrib non-free' >/etc/apt/sources.list.d/debian-bookworm.list
apt-get -qq update
apt-get -qq install --no-install-recommends --no-install-suggests -y \
intel-opencl-icd intel-media-va-driver-non-free i965-va-driver \
libmfx-gen1.2 libmfx1 onevpl-tools intel-gpu-tools \
i965-va-driver intel-gpu-tools onevpl-tools \
libva-drm2 \
mesa-va-drivers radeontop

Expand All @@ -77,6 +76,17 @@ if [[ "${TARGETARCH}" == "amd64" ]]; then
i965-va-driver-shaders

rm -f /etc/apt/sources.list.d/debian-bookworm.list

# use intel apt intel packages
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | tee /etc/apt/sources.list.d/intel-gpu-jammy.list
apt-get -qq update
apt-get -qq install --no-install-recommends --no-install-suggests -y \
intel-opencl-icd intel-level-zero-gpu intel-media-va-driver-non-free \
libmfx1 libmfxgen1 libvpl2

rm -f /usr/share/keyrings/intel-graphics.gpg
rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list
fi

if [[ "${TARGETARCH}" == "arm64" ]]; then
Expand Down

0 comments on commit ddf3a68

Please sign in to comment.