intel-media-driver: update to 22.5.2.
This commit is contained in:
parent
1de9613e7e
commit
9a0c268f11
|
@ -1,26 +1,54 @@
|
|||
Fix builds on musl
|
||||
From b17354142563b45e0ebf427485591426481368fd Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Fri, 29 Jul 2022 19:51:39 +0200
|
||||
Subject: [PATCH] Fix uClibc build
|
||||
|
||||
uClibc does not provide execinfo.h
|
||||
---
|
||||
CMakeLists.txt | 6 ++++++
|
||||
.../linux/common/os/osservice/mos_utilities_specific.cpp | 4 ++++
|
||||
2 files changed, 10 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 053904748..4a3f0869e 100755
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -53,6 +53,12 @@ option (BUILD_CMRTLIB "Build and Install cmrtlib together with media driver" ON)
|
||||
|
||||
option (ENABLE_PRODUCTION_KMD "Enable Production KMD header files" OFF)
|
||||
|
||||
+include(CheckIncludeFileCXX)
|
||||
+check_include_file_cxx("execinfo.h" HAVE_EXECINFO)
|
||||
+if (HAVE_EXECINFO)
|
||||
+ add_definitions(-DHAVE_EXECINFO)
|
||||
+endif()
|
||||
+
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if (BUILD_CMRTLIB AND NOT CMAKE_WDDM_LINUX)
|
||||
diff --git a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
||||
index bde216b83..120b02d55 100644
|
||||
--- a/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
||||
+++ b/media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp
|
||||
@@ -51,7 +51,9 @@
|
||||
@@ -34,7 +34,9 @@
|
||||
#include <signal.h>
|
||||
#include <unistd.h> // fork
|
||||
#include <algorithm>
|
||||
+#if defined(__GLIBC__)
|
||||
+#ifdef HAVE_EXECINFO
|
||||
#include <execinfo.h> // backtrace
|
||||
+#endif
|
||||
|
||||
const char *MosUtilitiesSpecificNext::m_szUserFeatureFile = USER_FEATURE_FILE;
|
||||
MOS_PUF_KEYLIST MosUtilitiesSpecificNext::m_ufKeyList = nullptr;
|
||||
@@ -2489,6 +2491,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h> // fstat
|
||||
#include <sys/ipc.h> // System V IPC
|
||||
@@ -2473,6 +2475,7 @@ void MosUtilities::MosTraceEvent(
|
||||
MOS_FreeMemory(pTraceBuf);
|
||||
}
|
||||
}
|
||||
+#if defined(__GLIBC__)
|
||||
+#ifdef HAVE_EXECINFO
|
||||
if (m_mosTraceFilter & (1ULL << TR_KEY_CALL_STACK))
|
||||
{
|
||||
// reserve space for header and stack size field.
|
||||
@@ -2508,6 +2511,7 @@
|
||||
@@ -2492,6 +2495,7 @@ void MosUtilities::MosTraceEvent(
|
||||
size_t ret = write(MosUtilitiesSpecificNext::m_mosTraceFd, traceBuf, nLen);
|
||||
}
|
||||
}
|
||||
|
@ -28,5 +56,3 @@ Fix builds on musl
|
|||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'intel-media-driver'
|
||||
pkgname=intel-media-driver
|
||||
version=22.4.4
|
||||
version=22.5.2
|
||||
revision=1
|
||||
archs="x86_64*"
|
||||
wrksrc=media-driver-intel-media-${version}
|
||||
|
@ -13,7 +13,7 @@ maintainer="Stefano Ragni <st3r4g@protonmail.com>"
|
|||
license="MIT, BSD-3-Clause"
|
||||
homepage="https://github.com/intel/media-driver"
|
||||
distfiles="https://github.com/intel/media-driver/archive/intel-media-${version}.tar.gz"
|
||||
checksum=19c3ef965ca155913719d138e297963b759f9b9d34d4ea85414d1c7b9d204253
|
||||
checksum=3b53bb6fb7793ef6c498ff086327ceefeef0a72d1f41b1fcaeae552a694fbcd8
|
||||
|
||||
build_options="nonfree"
|
||||
desc_option_nonfree="Enable nonfree kernels"
|
||||
|
|
Loading…
Reference in New Issue