Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libvpl for openSUSE:Factory checked 
in at 2022-09-26 18:48:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libvpl (Old)
 and      /work/SRC/openSUSE:Factory/.libvpl.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libvpl"

Mon Sep 26 18:48:30 2022 rev:5 rq:1006035 version:2022.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libvpl/libvpl.changes    2022-07-11 
19:11:14.907769888 +0200
+++ /work/SRC/openSUSE:Factory/.libvpl.new.2275/libvpl.changes  2022-09-26 
18:48:32.420092402 +0200
@@ -1,0 +2,25 @@
+Sat Sep 24 11:43:47 UTC 2022 - Stefan Br??ns <stefan.bru...@rwth-aachen.de>
+
+- Update to version 2022.2.4
+  * Add SMPTE ST 2084A color description preset
+  * Add parallel encoding support
+  * Add dynamic bitstream buffer reallocation
+
+-------------------------------------------------------------------
+Mon Sep 19 23:46:34 UTC 2022 - Stefan Br??ns <stefan.bru...@rwth-aachen.de>
+
+- Update to version 2022.2.3
+  * Multiple hardware adapters are supported as part of the 2.6
+    API update. They provide faster performance by taking advantage
+    of available platform resources.
+  * MPEG2 decode is now supported in a CPU implementation to
+    improve codec coverage for systems that do not have dedicated
+    hardware.
+
+-------------------------------------------------------------------
+Mon Sep 19 23:27:26 UTC 2022 - Stefan Br??ns <stefan.bru...@rwth-aachen.de>
+
+- Enable build on all archs, oneVPL is platform agnostic, add
+  remove_x86_64_check.patch
+
+-------------------------------------------------------------------

Old:
----
  oneVPL-2022.1.5.tar.gz

New:
----
  oneVPL-2022.2.4.tar.gz
  remove_x86_64_check.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libvpl.spec ++++++
--- /var/tmp/diff_new_pack.VEe6mp/_old  2022-09-26 18:48:33.040093574 +0200
+++ /var/tmp/diff_new_pack.VEe6mp/_new  2022-09-26 18:48:33.044093582 +0200
@@ -20,21 +20,30 @@
   %define _distconfdir %{_prefix}%{_sysconfdir}
 %endif
 
+# Legacy tools use x86 asm, https://github.com/oneapi-src/oneVPL/issues/69
+%ifarch x86_64 %{ix86}
+%bcond_without tools
+%else
+%bcond_with tools
+%endif
+
 %global sover 2
 Name:           libvpl
 %define lname   libvpl%{sover}
-Version:        2022.1.5
+Version:        2022.2.4
 Release:        0
 Summary:        oneAPI Video Processing Library (oneVPL) dispatcher, tools, 
and examples
 License:        MIT
 Group:          Development/Languages/C and C++
 URL:            https://github.com/oneapi-src/oneVPL
-Source0:        oneVPL-%{version}.tar.gz
+Source0:        
https://github.com/oneapi-src/oneVPL/archive/refs/tags/v%{version}.tar.gz#/oneVPL-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM
+# https://github.com/oneapi-src/oneVPL/pull/73
+Patch0:         
https://patch-diff.githubusercontent.com/raw/oneapi-src/oneVPL/pull/73.patch#/remove_x86_64_check.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(wayland-client)
-ExclusiveArch:  x86_64
 
 %description
 The oneAPI Video Processing Library (oneVPL) provides a single video processing
@@ -70,16 +79,13 @@
 %autosetup -p1 -n oneVPL-%{version}
 
 %build
-mkdir -p build
-pushd build
-cmake -DCMAKE_INSTALL_PREFIX="%{_prefix}" ..
-make %{?_smp_mflags}
-popd
+%cmake \
+  -DBUILD_TOOLS:BOOL=%{?with_tools:ON}%{!?with_tools:OFF} \
+  %{nil}
+%cmake_build
 
 %install
-pushd build
-%make_install
-popd
+%cmake_install
 
 %post -n %lname -p /sbin/ldconfig
 
@@ -98,8 +104,10 @@
 %{_libdir}/libvpl.so.%{sover}
 %{_libdir}/libvpl.so.%{sover}.*
 
+%if %{with tools}
 %files samples
 %{_bindir}/*
+%endif
 
 %files devel
 %doc

++++++ oneVPL-2022.1.5.tar.gz -> oneVPL-2022.2.4.tar.gz ++++++
/work/SRC/openSUSE:Factory/libvpl/oneVPL-2022.1.5.tar.gz 
/work/SRC/openSUSE:Factory/.libvpl.new.2275/oneVPL-2022.2.4.tar.gz differ: char 
13, line 1

++++++ remove_x86_64_check.patch ++++++
>From 53fbc3b106b6aee1013517a434e199e1f24f67ff Mon Sep 17 00:00:00 2001
From: StefanBruens <stefan.bru...@rwth-aachen.de>
Date: Tue, 13 Sep 2022 14:43:41 +0200
Subject: [PATCH 1/3] Use bitness instead of x86_64 check for library lookup

Both oneVPL SW implementations and dGPUs are available on any platform,
so there is no reason to restrict it to x86_64 only.

Remove no longer used LIBMFXSW define.

Also see #1.
---
 dispatcher/linux/mfxloader.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dispatcher/linux/mfxloader.cpp b/dispatcher/linux/mfxloader.cpp
index 6ef5c5b8..b240dbee 100644
--- a/dispatcher/linux/mfxloader.cpp
+++ b/dispatcher/linux/mfxloader.cpp
@@ -23,15 +23,16 @@
 
 namespace MFX {
 
-#if defined(__x86_64__)
-    #define LIBMFXSW "libmfxsw64.so.1"
+#if INTPTR_MAX == INT32_MAX
+    #define LIBMFXHW "libmfxhw32.so.1"
+    #define ONEVPLSW "libvplswref32.so.1"
+#elif INTPTR_MAX == INT64_MAX
     #define LIBMFXHW "libmfxhw64.so.1"
-
     #define ONEVPLSW "libvplswref64.so.1"
-    #define ONEVPLHW "libmfx-gen.so.1.2"
 #else
     #error Unsupported architecture
 #endif
+#define ONEVPLHW "libmfx-gen.so.1.2"
 
 #undef FUNCTION
 #define FUNCTION(return_value, func_name, formal_param_list, 
actual_param_list) e##func_name,

>From a35bb81afe3fff262738c9fb40b2f171dc6b3d71 Mon Sep 17 00:00:00 2001
From: StefanBruens <stefan.bru...@rwth-aachen.de>
Date: Tue, 13 Sep 2022 15:09:40 +0200
Subject: [PATCH 2/3] Remove superfluous x86_64 check in sample code

---
 tools/legacy/sample_common/src/sample_utils.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tools/legacy/sample_common/src/sample_utils.cpp 
b/tools/legacy/sample_common/src/sample_utils.cpp
index cfd84725..1cede874 100644
--- a/tools/legacy/sample_common/src/sample_utils.cpp
+++ b/tools/legacy/sample_common/src/sample_utils.cpp
@@ -42,11 +42,7 @@
     #include <link.h>
     #include <string>
 
-    #if defined(__x86_64__)
-        #define ONEVPL_MASK "libmfx-gen"
-    #else
-        #error Unsupported architecture
-    #endif
+    #define ONEVPL_MASK "libmfx-gen"
 
 #endif // #if defined(_WIN32) || defined(_WIN64)
 

>From 11a0d1547e3fff4bcbd8b0ecc1bbfc4300c091ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bru...@rwth-aachen.de>
Date: Tue, 20 Sep 2022 01:23:25 +0200
Subject: [PATCH 3/3] Use ILP32 model on 32 bit ARM

GCC on ARM does not define __ILP32__ or similar, so detect it explicitly.

Fixes #70.
---
 api/vpl/mfxdefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/vpl/mfxdefs.h b/api/vpl/mfxdefs.h
index 35bfb0fc..f9b468ea 100644
--- a/api/vpl/mfxdefs.h
+++ b/api/vpl/mfxdefs.h
@@ -68,7 +68,7 @@ extern "C"
     #define MFX_PACK_BEGIN_STRUCT_W_PTR()    MFX_PACK_BEGIN_X(4)
     #define MFX_PACK_BEGIN_STRUCT_W_L_TYPE() MFX_PACK_BEGIN_X(8)
 /* 32-bit ILP32 data model Linux* */
-#elif defined(__ILP32__)
+#elif defined(__ILP32__) || defined(__arm__)
     #define MFX_PACK_BEGIN_STRUCT_W_PTR()    MFX_PACK_BEGIN_X(4)
     #define MFX_PACK_BEGIN_STRUCT_W_L_TYPE() MFX_PACK_BEGIN_X(4)
 #else

Reply via email to