From 08477ba56a154a41e8676369fec58194363da48e Mon Sep 17 00:00:00 2001 From: Jocelyn Le Sage Date: Fri, 10 Nov 2023 16:31:19 -0500 Subject: [PATCH] Updated Intel Media Driver to version 23.3.5, Intel Media SDK to version 23.2.2 and OneVPL GPU runtime to version 23.3.4. --- Dockerfile | 6 +++--- src/handbrake/build.sh | 3 +++ .../intel-media-driver-compile-fix.patch | 20 +++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 src/handbrake/intel-media-driver-compile-fix.patch diff --git a/Dockerfile b/Dockerfile index cb45a4c..a3692d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,9 @@ ARG HANDBRAKE_VERSION=1.6.1 ARG LIBVA_VERSION=2.20.0 ARG INTEL_VAAPI_DRIVER_VERSION=2.4.1 ARG GMMLIB_VERSION=22.3.12 -ARG INTEL_MEDIA_DRIVER_VERSION=23.2.4 -ARG INTEL_MEDIA_SDK_VERSION=22.5.4 -ARG INTEL_ONEVPL_GPU_RUNTIME_VERSION=23.2.4 +ARG INTEL_MEDIA_DRIVER_VERSION=23.3.5 +ARG INTEL_MEDIA_SDK_VERSION=23.2.2 +ARG INTEL_ONEVPL_GPU_RUNTIME_VERSION=23.3.4 # Define software download URLs. ARG HANDBRAKE_URL=https://github.com/HandBrake/HandBrake/releases/download/${HANDBRAKE_VERSION}/HandBrake-${HANDBRAKE_VERSION}-source.tar.bz2 diff --git a/src/handbrake/build.sh b/src/handbrake/build.sh index d602c02..0c468ed 100755 --- a/src/handbrake/build.sh +++ b/src/handbrake/build.sh @@ -264,6 +264,9 @@ if [ "$(xx-info arch)" = "amd64" ]; then fi if [ "$(xx-info arch)" = "amd64" ]; then + log "Patching Intel Media Driver..." + patch -d /tmp/intel-media-driver -p1 < "$SCRIPT_DIR"/intel-media-driver-compile-fix.patch + log "Configuring Intel Media driver..." ( mkdir /tmp/intel-media-driver/build && \ diff --git a/src/handbrake/intel-media-driver-compile-fix.patch b/src/handbrake/intel-media-driver-compile-fix.patch new file mode 100644 index 0000000..1bb99c6 --- /dev/null +++ b/src/handbrake/intel-media-driver-compile-fix.patch @@ -0,0 +1,20 @@ +--- a/media_driver/cmake/linux/media_compile_flags_linux.cmake 2023-11-10 16:00:32.182289902 -0500 ++++ b/media_driver/cmake/linux/media_compile_flags_linux.cmake 2023-11-10 16:01:23.034436228 -0500 +@@ -51,8 +51,6 @@ + -ffunction-sections + -Wl,--gc-sections + +- # Enable c++14 features +- -std=c++14 + # -m32 or -m64 + -m${ARCH} + +@@ -110,6 +108,8 @@ + -fexceptions + -fpermissive + -fcheck-new ++ # Enable c++14 features ++ -std=c++14 + ) + + if(NOT ${PLATFORM} STREQUAL "android")