From 9bf9948bb2a3d2d5d7809b855338c6d12c53e482 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Tue, 24 Dec 2024 23:08:14 +0800 Subject: [PATCH 1/2] Fix AVX2 auto detection in libopus Ref: https://github.com/xiph/opus/issues/361 Signed-off-by: nyanmisaka --- builder/scripts.d/50-libopus.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/scripts.d/50-libopus.sh b/builder/scripts.d/50-libopus.sh index c26bd11878..342da27ba7 100755 --- a/builder/scripts.d/50-libopus.sh +++ b/builder/scripts.d/50-libopus.sh @@ -11,6 +11,9 @@ ffbuild_dockerbuild() { git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" opus cd opus + # Fix AVX2 auto detction + wget -q -O - https://github.com/xiph/opus/commit/9ec11c1.patch | git apply + ./autogen.sh local myconf=( From a7b858955b76f5a0f96e124f4e28686f6cde25e3 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Tue, 24 Dec 2024 23:14:01 +0800 Subject: [PATCH 2/2] Fix DG1 support in upstream i915 KMD Prod DKMS is not required. Signed-off-by: nyanmisaka --- docker-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-build.sh b/docker-build.sh index 5c4931a32b..804c39633c 100755 --- a/docker-build.sh +++ b/docker-build.sh @@ -455,8 +455,10 @@ prepare_extra_amd64() { pushd ${SOURCE_DIR} git clone -b intel-media-24.4.2 --depth=1 https://github.com/intel/media-driver.git pushd media-driver - # enable vc1 decode on dg2 (note that mtl+ is not supported) + # Enable VC1 decode on DG2 (note that MTL+ is not supported) wget -q -O - https://github.com/intel/media-driver/commit/d5dd47b.patch | git apply + # Fix DG1 support in upstream i915 KMD (prod DKMS is not required) + wget -q -O - https://github.com/intel/media-driver/commit/620a0b7.patch | git apply mkdir build && pushd build cmake -DCMAKE_INSTALL_PREFIX=${TARGET_DIR} \ -DENABLE_KERNELS=ON \