Hello community,
here is the log from the commit of package intel-hybrid-driver for
openSUSE:Factory checked in at 2019-01-28 20:48:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/intel-hybrid-driver (Old)
and /work/SRC/openSUSE:Factory/.intel-hybrid-driver.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "intel-hybrid-driver"
Mon Jan 28 20:48:58 2019 rev:2 rq:668911 version:1.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/intel-hybrid-driver/intel-hybrid-driver.changes
2017-09-23 21:33:54.529003417 +0200
+++
/work/SRC/openSUSE:Factory/.intel-hybrid-driver.new.28833/intel-hybrid-driver.changes
2019-01-28 20:49:51.753815472 +0100
@@ -1,0 +2,8 @@
+Sat Jan 26 20:20:30 UTC 2019 - [email protected]
+
+- Add U_Update-the-dependency-to-libva-2.0.patch: Update the
+ dependency to libva 2.0. In addition, this fixes deprecated
+ warning caused by libva 2.0.
+- Add Group tag and use macros in spec for building.
+
+-------------------------------------------------------------------
New:
----
U_Update-the-dependency-to-libva-2.0.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ intel-hybrid-driver.spec ++++++
--- /var/tmp/diff_new_pack.ccgo12/_old 2019-01-28 20:49:52.373814819 +0100
+++ /var/tmp/diff_new_pack.ccgo12/_new 2019-01-28 20:49:52.377814814 +0100
@@ -1,7 +1,7 @@
#
# spec file for package intel-hybrid-driver
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 Bjørn Lie, Bryne, Norway.
#
# All modifications and additions to the file contributed by third parties
@@ -13,7 +13,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -22,15 +22,18 @@
Release: 0
Summary: VA driver for Intel G45 & HD Graphics family
License: MIT
-Url: https://github.com/01org/intel-hybrid-driver
+Group: System/Libraries
+URL: https://github.com/01org/intel-hybrid-driver
Source0:
https://github.com/01org/intel-hybrid-driver/archive/%{version}/%{name}-%{version}.tar.gz
+Patch0: U_Update-the-dependency-to-libva-2.0.patch
+
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(libcmrt) >= 0.10.0
BuildRequires: pkgconfig(libdrm) >= 2.4.45
-BuildRequires: pkgconfig(libva) >= 0.38
+BuildRequires: pkgconfig(libva) >= 1.0.0
BuildRequires: pkgconfig(libva-wayland)
BuildRequires: pkgconfig(libva-x11)
BuildRequires: pkgconfig(wayland-client)
@@ -42,7 +45,7 @@
and Intel HD Graphics for Intel Core processor family.
%prep
-%autosetup
+%autosetup -p1
%build
autoreconf -fiv
@@ -51,7 +54,7 @@
--enable-x11 \
--enable-wayland \
%{nil}
-make
+%make_build
%install
%make_install
++++++ U_Update-the-dependency-to-libva-2.0.patch ++++++
>From dfa9c8eba29573e24f73b1890f8a67f0e46e3d7b Mon Sep 17 00:00:00 2001
From: "Xiang, Haihao" <[email protected]>
Date: Sat, 14 Oct 2017 07:45:07 +0800
Subject: [PATCH] Update the dependency to libva 2.0
In addition, This fixes deprecated warning caused by libva 2.0
Signed-off-by: Xiang, Haihao <[email protected]>
---
configure.ac | 6 +-----
src/va_backend_compat.h | 8 ++++++++
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 192c0db..6cf1431 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,8 +10,7 @@ m4_append([intel_driver_version], intel_driver_pre_version,
[.pre])
])
# libva minimum version requirement
-m4_define([va_api_version], [0.38])
-m4_define([libva_package_version], [1.6.0])
+m4_define([va_api_version], [1.0.0])
# libdrm minimum version requirement
m4_define([libdrm_version], [2.4.45])
@@ -71,9 +70,6 @@ AC_SYS_LARGEFILE
AC_CHECK_LIB([m], [sin])
AC_CHECK_FUNCS([log2f])
-LIBVA_PACKAGE_VERSION=libva_package_version
-AC_SUBST(LIBVA_PACKAGE_VERSION)
-
dnl Check for recent enough DRM
LIBDRM_VERSION=libdrm_version
PKG_CHECK_MODULES([DRM], [libdrm >= $LIBDRM_VERSION])
diff --git a/src/va_backend_compat.h b/src/va_backend_compat.h
index f5c9f75..2894c90 100644
--- a/src/va_backend_compat.h
+++ b/src/va_backend_compat.h
@@ -45,4 +45,12 @@
# define VA_DRM_AUTH_CUSTOM VA_DUMMY
#endif
+#if VA_CHECK_VERSION(1,0,0)
+
+# define VAEncPackedHeaderMiscMask 0x80000000
+# define VAEncPackedHeaderH264_SEI (VAEncPackedHeaderMiscMask | 1)
+# define VAEncPackedHeaderHEVC_SEI (VAEncPackedHeaderMiscMask | 1)
+
+#endif
+
#endif /* VA_BACKEND_COMPAT_H */