Skip to content

Commit

Permalink
multimedia/onevpl: update to 2022.0.4
Browse files Browse the repository at this point in the history
Changes:	intel/libvpl@v2022.0.3...v2022.0.4
Reported by:	Repology
  • Loading branch information
jbeich committed Feb 5, 2022
1 parent a929792 commit e55132c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 25 deletions.
2 changes: 1 addition & 1 deletion multimedia/onevpl/Makefile
@@ -1,6 +1,6 @@
PORTNAME= oneVPL
DISTVERSIONPREFIX= v
DISTVERSION= 2022.0.3
DISTVERSION= 2022.0.4
CATEGORIES= multimedia

MAINTAINER= jbeich@FreeBSD.org
Expand Down
6 changes: 3 additions & 3 deletions multimedia/onevpl/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1642806932
SHA256 (oneapi-src-oneVPL-v2022.0.3_GH0.tar.gz) = 1350b17266d0540e2730e8c082f326b9dc773d0fdffd0cee50d9220f3c268a6e
SIZE (oneapi-src-oneVPL-v2022.0.3_GH0.tar.gz) = 3105300
TIMESTAMP = 1644021354
SHA256 (oneapi-src-oneVPL-v2022.0.4_GH0.tar.gz) = 7fb0965f1a22344a044840462637f23be0d019bacd011ca2ff179d72dc40064b
SIZE (oneapi-src-oneVPL-v2022.0.4_GH0.tar.gz) = 3111126
62 changes: 41 additions & 21 deletions multimedia/onevpl/files/patch-unix
Expand Up @@ -82,7 +82,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
// Linux x64
#define LIB_ONEVPL "libmfx-gen.so.1.2"
#define LIB_MSDK "libmfxhw64.so.1"
--- dispatcher/vpl/mfx_dispatcher_vpl_msdk.cpp.orig 2021-12-07 00:05:44 UTC
--- dispatcher/vpl/mfx_dispatcher_vpl_msdk.cpp.orig 2022-02-05 00:35:54 UTC
+++ dispatcher/vpl/mfx_dispatcher_vpl_msdk.cpp
@@ -10,7 +10,7 @@
#include "vpl/mfx_dispatcher_vpl_win.h"
Expand All @@ -93,7 +93,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
#include <pthread.h>
#define strncpy_s(dst, size, src, cnt) strcpy((dst), (src)) // NOLINT
#endif
@@ -155,7 +155,7 @@ mfxAccelerationMode LoaderCtxMSDK::CvtAccelType(mfxIMP
@@ -161,7 +161,7 @@ mfxAccelerationMode LoaderCtxMSDK::CvtAccelType(mfxIMP
}

mfxStatus LoaderCtxMSDK::GetDefaultAccelType(mfxU32 adapterID, mfxIMPL *implDefault, mfxU64 *luid) {
Expand All @@ -102,7 +102,7 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
// VAAPI only
*implDefault = MFX_IMPL_VIA_VAAPI;
*luid = 0;
@@ -242,7 +242,7 @@ mfxStatus LoaderCtxMSDK::QueryMSDKCaps(STRING_TYPE lib
@@ -248,7 +248,7 @@ mfxStatus LoaderCtxMSDK::QueryMSDKCaps(STRING_TYPE lib

m_libNameFull = libNameFull;

Expand All @@ -111,6 +111,15 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
// require pthreads to be linked in for MSDK RT to load
pthread_key_t pkey;
if (pthread_key_create(&pkey, NULL) == 0) {
@@ -483,7 +483,7 @@ mfxStatus LoaderCtxMSDK::QueryExtDeviceID(mfxExtendedD
luidArr >>= 8;
}
}
-#elif defined(__linux__)
+#elif defined(__unix__)
// fill in Linux-specific properties
extDeviceID->DRMPrimaryNodeNum = adapterID;
extDeviceID->DRMRenderNodeNum = 128 + adapterID;
--- examples/coreAPI/legacy-decode/src/util.h.orig 2021-12-07 00:05:44 UTC
+++ examples/coreAPI/legacy-decode/src/util.h
@@ -30,7 +30,7 @@ enum {
Expand Down Expand Up @@ -216,6 +225,17 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
#include "vpl/mfxdispatcher.h"
#endif

-#ifdef __linux__
+#ifdef __unix__
#include <fcntl.h>
#include <unistd.h>
#endif
--- examples/interop/dpcpp-blur/src/util.h.orig 2022-02-05 00:35:54 UTC
+++ examples/interop/dpcpp-blur/src/util.h
@@ -30,7 +30,7 @@ enum {
#include "vpl/mfxdispatcher.h"
#endif

-#ifdef __linux__
+#ifdef __unix__
#include <fcntl.h>
Expand Down Expand Up @@ -331,17 +351,17 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
#ifdef LIBVA_SUPPORT
vaTerminate((VADisplay)accelHandle);
close(fd);
--- tools/legacy/sample_common/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC
--- tools/legacy/sample_common/CMakeLists.txt.orig 2022-02-05 00:35:54 UTC
+++ tools/legacy/sample_common/CMakeLists.txt
@@ -63,7 +63,7 @@ find_package(VPL REQUIRED)
target_link_libraries(sample_common PUBLIC VPL::dispatcher
media_sdk_compatibility_headers)

-if(CMAKE_SYSTEM_NAME MATCHES Linux)
+if(UNIX AND NOT APPLE)
target_compile_definitions(sample_common PUBLIC LINUX64)

find_package(PkgConfig REQUIRED)
if(BUILD_TOOLS_ONEVPL_EXPERIMENTAL)
add_definitions(-DONEVPL_EXPERIMENTAL)
--- tools/legacy/sample_decode/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC
+++ tools/legacy/sample_decode/CMakeLists.txt
@@ -11,7 +11,7 @@ if(POLICY CMP0074)
Expand All @@ -353,17 +373,28 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
if(NOT
(PKG_LIBVA_FOUND
AND PKG_LIBVA_DRM_FOUND
--- tools/legacy/sample_encode/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC
--- tools/legacy/sample_encode/CMakeLists.txt.orig 2022-02-05 00:35:54 UTC
+++ tools/legacy/sample_encode/CMakeLists.txt
@@ -11,7 +11,7 @@ if(POLICY CMP0074)
cmake_policy(SET CMP0074 OLD)
endif()

-if(CMAKE_SYSTEM_NAME MATCHES Linux)
+if(UNIX AND NOT APPLE)
if(NOT (PKG_LIBVA_FOUND AND PKG_LIBVA_DRM_FOUND))
message("Skipping sample_encode build.")
return()
if(NOT
(PKG_LIBDRM_FOUND
AND PKG_LIBVA_FOUND
--- tools/legacy/sample_vpp/CMakeLists.txt.orig 2022-02-05 00:35:54 UTC
+++ tools/legacy/sample_vpp/CMakeLists.txt
@@ -25,7 +25,7 @@ if(POLICY CMP0074)
cmake_policy(SET CMP0074 OLD)
endif()

-if(CMAKE_SYSTEM_NAME MATCHES Linux)
+if(UNIX AND NOT APPLE)
if(NOT
(PKG_LIBDRM_FOUND
AND PKG_LIBVA_FOUND
--- tools/legacy/sample_multi_transcode/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC
+++ tools/legacy/sample_multi_transcode/CMakeLists.txt
@@ -11,7 +11,7 @@ endif()
Expand All @@ -375,14 +406,3 @@ dispatcher/vpl/mfx_dispatcher_vpl_loader.cpp:583:43: error: use of undeclared id
if(NOT
(PKG_LIBVA_FOUND
AND PKG_LIBVA_DRM_FOUND
--- tools/legacy/sample_vpp/CMakeLists.txt.orig 2021-12-07 00:05:44 UTC
+++ tools/legacy/sample_vpp/CMakeLists.txt
@@ -25,7 +25,7 @@ if(POLICY CMP0074)
cmake_policy(SET CMP0074 OLD)
endif()

-if(CMAKE_SYSTEM_NAME MATCHES Linux)
+if(UNIX AND NOT APPLE)
if(NOT (PKG_LIBVA_FOUND AND PKG_LIBVA_DRM_FOUND))
message("Skipping sample_vpp build.")
return()

0 comments on commit e55132c

Please sign in to comment.