From ddf3a687a3d8e7504fe87382f91e8cf9b0e2e10b Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 19 Sep 2024 07:41:08 -0600 Subject: [PATCH] Use intel apt for out of tree drivers (#13829) --- docker/main/install_deps.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docker/main/install_deps.sh b/docker/main/install_deps.sh index 5fa661143..327053edd 100755 --- a/docker/main/install_deps.sh +++ b/docker/main/install_deps.sh @@ -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 @@ -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