Skip to contentSkip to conversation

libva: upgrade to 1.8.3

PATCH New Maxin B. John 1 participant 4 messages Aug 14, 2017

lore
Share & tools
lore
#0 lore raw

cover libva: upgrade to 1.8.3

Upgrade libva to version 1.8.3. Utilities and tests in the libva was spun-off as libva-utils during 1.8.0 release.

After this upgrade, we can remove the workaround patch in gst-player.

This series should be applied after the gstreamer upgrade to 1.12.2 series.

Maxin B. John (3):
libva-utils: add recipe
libva: upgrade to 1.8.3
gst-player: remove workaround which disable visualizations

 ...-configure.ac-Use-wayland-scanner-in-PATH.patch |  37 ---
 ...and-Don-t-commit-and-ship-generated-files.patch | 339 ---------------------
 meta/recipes-graphics/libva/libva-utils_1.8.3.bb   |  30 ++
 .../libva/{libva_1.7.3.bb => libva_1.8.3.bb}       |   8 +-
 .../0001-gtk-play-Disable-visualizations.patch     |  59 ----
 ...error-signal-emission-for-missing-plugins.patch | 252 ---------------
 .../gstreamer/gst-player/Fix-pause-play.patch      | 107 -------
 .../gstreamer/gst-player/filechooser.patch         |  54 ----
 .../recipes-multimedia/gstreamer/gst-player_git.bb |   4 -
 9 files changed, 33 insertions(+), 857 deletions(-)
 delete mode 100644 meta/recipes-graphics/libva/files/0001-configure.ac-Use-wayland-scanner-in-PATH.patch
 delete mode 100644 meta/recipes-graphics/libva/files/0001-wayland-Don-t-commit-and-ship-generated-files.patch
 create mode 100644 meta/recipes-graphics/libva/libva-utils_1.8.3.bb
 rename meta/recipes-graphics/libva/{libva_1.7.3.bb => libva_1.8.3.bb} (88%)
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-Disable-visualizations.patch
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/Add-error-signal-emission-for-missing-plugins.patch
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/Fix-pause-play.patch
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/filechooser.patch
Signature · 1 line
2.4.0
#1 lore raw

PATCH 1/3 libva-utils: add recipe

Utilities and tests in the libva was spun-off as libva-utils during 1.8.0 release.

libva-utils is a collection of utilities and examples to exercise VA-API in accordance with the libva project

---
 meta/recipes-graphics/libva/libva-utils_1.8.3.bb | 30 ++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta/recipes-graphics/libva/libva-utils_1.8.3.bb
meta/recipes-graphics/libva/libva-utils_1.8.3.bb new file +30 -0
new file mode 100644
index 0000000..9c2c0d6
@@ -0,0 +1,30 @@
+SUMMARY = "libva-utils is a collection of utilities from libva project"
+
+DESCRIPTION = "libva-utils is a collection of utilities \
+and examples to exercise VA-API in accordance with the libva \
+project.VA-API is an open-source library and API specification, \
+which provides access to graphics hardware acceleration capabilities \
+for video processing. It consists of a main library and driver-specific \
+acceleration backends for each supported hardware vendor"
+
+HOMEPAGE = "https://01.org/linuxmedia/vaapi"
+BUGTRACKER = "https://github.com/01org/libva-utils/issues"
+
+SECTION = "x11"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b148fc8adf19dc9aec17cf9cd29a9a5e"
+
+SRC_URI = "git://github.com/01org/libva-utils.git;branch=v1.8-branch"
+SRCREV = "011c709b98b52db3b10aeb361dfea9da43930364"
+UPSTREAM_CHECK_URI = "https://github.com/01org/libva-utils/releases"
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "libva"
+
+inherit autotools pkgconfig distro_features_check
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
+PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxext libxfixes"
+PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland-native wayland"
Signature · 1 line
2.4.0
#2 lore raw

PATCH 2/3 libva: upgrade to 1.8.3

In reply to Maxin B. John

1.7.3 -> 1.8.3

Remove upstreamed patch:
0001-wayland-Don-t-commit-and-ship-generated-files.patch

Replace following patch by setting ac_cv_prog in EXTRA_OECONF:
0001-configure.ac-Use-wayland-scanner-in-PATH.patch

The dummy driver was removed in 1.8.3 release.

---
 ...-configure.ac-Use-wayland-scanner-in-PATH.patch |  37 ---
 ...and-Don-t-commit-and-ship-generated-files.patch | 339 ---------------------
 .../libva/{libva_1.7.3.bb => libva_1.8.3.bb}       |   8 +-
 3 files changed, 3 insertions(+), 381 deletions(-)
 delete mode 100644 meta/recipes-graphics/libva/files/0001-configure.ac-Use-wayland-scanner-in-PATH.patch
 delete mode 100644 meta/recipes-graphics/libva/files/0001-wayland-Don-t-commit-and-ship-generated-files.patch
 rename meta/recipes-graphics/libva/{libva_1.7.3.bb => libva_1.8.3.bb} (88%)
meta/recipes-graphics/libva/files/0001-configure.ac-Use-wayland-scanner-in-PATH.patch deleted +0 -37
deleted file mode 100644
index a99c225..0000000
@@ -1,37 +0,0 @@
-From 0af30602502035155929dd2a14482b82a9747cf8 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen <[email protected]>
-Date: Thu, 23 Feb 2017 15:23:15 +0200
-Subject: [PATCH] configure.ac: Use wayland-scanner in PATH
-
-pkg-config will give us the wrong wayland-scanner location.
-Use the one in path instead: it will be from native sysroot.
-
-This is a workaround and should be fixed upstream: preferably
-with the same fix as all the other wayland-scanner users
-(see YOCTO #11100).
-
-Upstream-Status: Inappropriate [workaround]
-Signed-off-by: Jussi Kukkonen <[email protected]>
----
- configure.ac | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 64eddf2..5536f35 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -273,10 +273,7 @@ if test "$enable_wayland" = "yes"; then
-     PKG_CHECK_MODULES([WAYLAND], [wayland-client >= wayland_api_version],
-         [USE_WAYLAND="yes"], [:])
-     if test "$USE_WAYLAND" = "yes"; then
--
--        WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
--        AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],,
--                     [${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH])
-+        AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
- 
-         AC_DEFINE([HAVE_VA_WAYLAND], [1],
-                   [Defined to 1 if VA/Wayland API is built])
--- 
-2.1.4
-
meta/recipes-graphics/libva/files/0001-wayland-Don-t-commit-and-ship-generated-files.patch deleted +0 -339

339 lines not on this page · raw message

meta/recipes-graphics/libva/libva_1.8.3.bb renamed from meta/recipes-graphics/libva/libva_1.7.3.bb +3 -5
similarity index 88%
rename from meta/recipes-graphics/libva/libva_1.7.3.bb
rename to meta/recipes-graphics/libva/libva_1.8.3.bb
index 6c0b90f..bb5f829 100644
@@ -17,10 +17,8 @@ SECTION = "x11"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=2e48940f94acb0af582e5ef03537800f"
 
-SRC_URI = "git://github.com/01org/libva.git;protocol=http;branch=v1.7-branch \
-           file://0001-configure.ac-Use-wayland-scanner-in-PATH.patch \
-           file://0001-wayland-Don-t-commit-and-ship-generated-files.patch"
-SRCREV = "dbf9f7e33349c3cee8d131e93a6a4f91255635cb"
+SRC_URI = "git://github.com/01org/libva.git;protocol=http;branch=v1.8-branch "
+SRCREV = "457470987cc9df5976ce8c72ffd4bfbd9baaf0f9"
 UPSTREAM_CHECK_GITTAGREGEX = "libva-(?P<pver>(\d+(\.\d+)+))"
 
 S = "${WORKDIR}/git"
@@ -31,7 +29,7 @@ inherit autotools pkgconfig distro_features_check
 
 REQUIRED_DISTRO_FEATURES = "opengl"
 
-EXTRA_OECONF = "--disable-dummy-driver"
+EXTRA_OECONF = "ac_cv_prog_WAYLAND_SCANNER=wayland-scanner"
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
 PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxext libxfixes"
Signature · 1 line
2.4.0
#3 lore raw

PATCH 3/3 gst-player: remove workaround which disable visualizations

In reply to Maxin B. John

As we upgrade to libva 1.8.3, we can remove the workaround patch which disables visualizations in gst-player:
1. 0001-gtk-play-Disable-visualizations.patch

Also remove the upstreamed patches:
1. filechooser.patch
2. Fix-pause-play.patch
3. Add-error-signal-emission-for-missing-plugins.patch

Fixes [YOCTO #11437]

---
 .../0001-gtk-play-Disable-visualizations.patch     |  59 -----
 ...error-signal-emission-for-missing-plugins.patch | 252 ---------------------
 .../gstreamer/gst-player/Fix-pause-play.patch      | 107 ---------
 .../gstreamer/gst-player/filechooser.patch         |  54 -----
 .../recipes-multimedia/gstreamer/gst-player_git.bb |   4 -
 5 files changed, 476 deletions(-)
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-Disable-visualizations.patch
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/Add-error-signal-emission-for-missing-plugins.patch
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/Fix-pause-play.patch
 delete mode 100644 meta/recipes-multimedia/gstreamer/gst-player/filechooser.patch
meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-Disable-visualizations.patch deleted +0 -59
deleted file mode 100644
index ea88120..0000000
@@ -1,59 +0,0 @@
-From 6cf42c468e93b0aaa171961e059bc3e2fb915889 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen <[email protected]>
-Date: Fri, 28 Apr 2017 14:35:19 +0300
-Subject: [PATCH] gtk-play: Disable visualizations
-
-This is a workaround for [YOCTO #11410] (audio playback is broken in
-mediaplayer if vaapi is used). It disables visualizations and makes
-sure we clear the window (otherwise nothing does that and result is
-very ugly).
-
-This patch should be removed when 11410 is fixed.
-
-Upstream-Status: Inappropriate [bug workaround]
-Signed-off-by: Jussi Kukkonen <[email protected]>
----
- gtk/gtk-play.c | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/gtk/gtk-play.c b/gtk/gtk-play.c
-index 8ae0fea..63b9bb0 100644
---- a/gtk/gtk-play.c
-+++ b/gtk/gtk-play.c
-@@ -1401,6 +1401,15 @@ get_child_position (GtkOverlay * overlay, GtkWidget * widget,
-   return TRUE;
- }
- 
-+/* Hack to make sure something gets drawn if visualizations are disabled */
-+static gboolean
-+draw_cb (GtkWidget *widget, cairo_t *cr, gpointer data)
-+{
-+  cairo_set_source_rgb (cr, 0, 0, 0);
-+  cairo_paint (cr);
-+  return FALSE;
-+}
-+
- static void
- create_ui (GtkPlay * play)
- {
-@@ -1431,6 +1440,8 @@ create_ui (GtkPlay * play)
-     play->video_area = gtk_drawing_area_new ();
-     g_signal_connect (play->video_area, "realize",
-         G_CALLBACK (video_area_realize_cb), play);
-+    g_signal_connect (play->video_area, "draw",
-+        G_CALLBACK (draw_cb), NULL);
-   }
-   gtk_widget_set_events (play->video_area, GDK_EXPOSURE_MASK
-       | GDK_LEAVE_NOTIFY_MASK
-@@ -1753,7 +1764,7 @@ gtk_play_constructor (GType type, guint n_construct_params,
- 
-   /* enable visualization (by default playbin uses goom) */
-   /* if visualization is enabled then use the first element */
--  gst_player_set_visualization_enabled (self->player, TRUE);
-+  gst_player_set_visualization_enabled (self->player, FALSE);
- 
-   g_signal_connect (G_OBJECT (self), "show", G_CALLBACK (show_cb), NULL);
- 
--- 
-2.1.4
-
meta/recipes-multimedia/gstreamer/gst-player/Add-error-signal-emission-for-missing-plugins.patch deleted +0 -252

252 lines not on this page · raw message

meta/recipes-multimedia/gstreamer/gst-player/Fix-pause-play.patch deleted +0 -107

107 lines not on this page · raw message

meta/recipes-multimedia/gstreamer/gst-player/filechooser.patch deleted +0 -54

54 lines not on this page · raw message

meta/recipes-multimedia/gstreamer/gst-player_git.bb +0 -4
index f358057..4fe8fde 100644
@@ -5,10 +5,6 @@ LIC_FILES_CHKSUM = "file://gtk/gtk-play.c;beginline=1;endline=20;md5=f8c72dae3d3
 DEPENDS = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gtk+3 glib-2.0-native"
 
 SRC_URI = "git://github.com/sdroege/gst-player.git \
-           file://filechooser.patch;apply=0 \
-           file://Fix-pause-play.patch;apply=0 \
-           file://Add-error-signal-emission-for-missing-plugins.patch;apply=0 \
-           file://0001-gtk-play-Disable-visualizations.patch \
            file://gst-player.desktop"
 
 SRCREV = "ee3c226c82767a089743e4e06058743e67f73cdb"
Signature · 1 line
2.4.0