public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libva-utils] epel10.2: Merge branch 'f26' into f27
@ 2026-10-20  9:39 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; 2+ messages in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-10-20  9:39 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libva-utils
Branch : epel10.2
Commit : 21972fd2c88a35abd745d26db3a6c8b362f1b639
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2017-10-31T11:09:29+01:00
Stats  : +259/-3 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/libva-utils/c/21972fd2c88a35abd745d26db3a6c8b362f1b639?branch=epel10.2

Log:
Merge branch 'f26' into f27

---
diff --git a/0001-vainfo-add-an-option-device-to-specify-a-drm-device.patch b/0001-vainfo-add-an-option-device-to-specify-a-drm-device.patch
new file mode 100644
index 0000000..83a7a4e
--- /dev/null
+++ b/0001-vainfo-add-an-option-device-to-specify-a-drm-device.patch
@@ -0,0 +1,120 @@
+From f36a392a969a0b3045f2832495fc1ccfd4bf90e5 Mon Sep 17 00:00:00 2001
+From: "Xiang, Haihao" <haihao.xiang@intel.com>
+Date: Fri, 23 Jun 2017 09:13:01 +0800
+Subject: [PATCH 01/02] vainfo: add an option "--device" to specify a drm
+ device
+
+This option is only available when the drm display is specified in the
+command line
+
+Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+---
+ common/va_display.c     | 24 ++++++++++++++++++++++++
+ common/va_display_drm.c | 21 +++++++++++++++++++++
+ 2 files changed, 45 insertions(+)
+
+diff --git a/common/va_display.c b/common/va_display.c
+index 68aa43f..30a25ae 100644
+--- a/common/va_display.c
++++ b/common/va_display.c
+@@ -56,6 +56,7 @@ static const VADisplayHooks *g_display_hooks_available[] = {
+ };
+ 
+ static const char *g_display_name;
++const char *g_drm_device_name;
+ 
+ static const char *
+ get_display_name(int argc, char *argv[])
+@@ -76,6 +77,25 @@ get_display_name(int argc, char *argv[])
+     return display_name;
+ }
+ 
++static const char *
++get_drm_device_name(int argc, char *argv[])
++{
++    const char *device_name = NULL;
++    int i;
++
++    for (i = 1; i < argc; i++) {
++        if (argv[i] && (strcmp(argv[i], "--device") != 0))
++            continue;
++        argv[i] = NULL;
++
++        if (++i < argc) {
++            device_name = argv[i];
++            argv[i] = NULL;
++        }
++    }
++    return device_name;
++}
++
+ static void
+ print_display_names(void)
+ {
+@@ -104,6 +124,7 @@ void
+ va_init_display_args(int *argc, char *argv[])
+ {
+     const char *display_name;
++    const char *device_name;
+ 
+     display_name = get_display_name(*argc, argv);
+     if (display_name && strcmp(display_name, "help") == 0) {
+@@ -112,6 +133,9 @@ va_init_display_args(int *argc, char *argv[])
+     }
+     g_display_name = display_name;
+ 
++    if (g_display_name && strcmp(g_display_name, "drm") == 0)
++        g_drm_device_name = get_drm_device_name(*argc, argv);
++
+     sanitize_args(argc, argv);
+ }
+ 
+diff --git a/common/va_display_drm.c b/common/va_display_drm.c
+index b6394cd..4d9c656 100644
+--- a/common/va_display_drm.c
++++ b/common/va_display_drm.c
+@@ -23,6 +23,7 @@
+  */
+ 
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ #ifdef IN_LIBVA
+@@ -33,6 +34,7 @@
+ #include "va_display.h"
+ 
+ static int drm_fd = -1;
++extern const char *g_drm_device_name;
+ 
+ static VADisplay
+ va_open_display_drm(void)
+@@ -46,6 +48,25 @@ va_open_display_drm(void)
+         NULL
+     };
+ 
++    if (g_drm_device_name) {
++        drm_fd = open(g_drm_device_name, O_RDWR);
++        if (drm_fd < 0) {
++            printf("Failed to open the given device!\n");
++            exit(1);
++            return NULL;
++        }
++
++        va_dpy = vaGetDisplayDRM(drm_fd);
++        if (va_dpy)
++            return va_dpy;
++
++        printf("Failed to a DRM display for the given device\n");
++        close(drm_fd);
++        drm_fd = -1;
++        exit(1);
++        return NULL;
++    }
++
+     for (i = 0; drm_device_paths[i]; i++) {
+         drm_fd = open(drm_device_paths[i], O_RDWR);
+         if (drm_fd < 0)
+-- 
+2.13.6
+

diff --git a/0002-vainfo-Add-help-to-show-available-options.patch b/0002-vainfo-Add-help-to-show-available-options.patch
new file mode 100644
index 0000000..9f47643
--- /dev/null
+++ b/0002-vainfo-Add-help-to-show-available-options.patch
@@ -0,0 +1,125 @@
+From be3d349cd9a145484419c012de669b63be383096 Mon Sep 17 00:00:00 2001
+From: "Xiang, Haihao" <haihao.xiang@intel.com>
+Date: Tue, 18 Jul 2017 13:54:02 +0800
+Subject: [PATCH 02/02] vainfo: Add '--help' to show available options
+
+vainfo has '--display' and '--device' options, but these options are
+hidden, hence add '--help' to show these options
+
+Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+---
+ common/va_display.c |  8 ++++++++
+ common/va_display.h |  4 ++++
+ vainfo/vainfo.c     | 44 +++++++++++++++++++++++++++++++++++++++++++-
+ 3 files changed, 55 insertions(+), 1 deletion(-)
+
+diff --git a/common/va_display.c b/common/va_display.c
+index 30a25ae..d348c4f 100644
+--- a/common/va_display.c
++++ b/common/va_display.c
+@@ -190,3 +190,11 @@ va_put_surface(
+         return g_display_hooks->put_surface(va_dpy, surface, src_rect, dst_rect);
+     return VA_STATUS_ERROR_UNIMPLEMENTED;
+ }
++
++void
++va_print_display_options(FILE *stream)
++{
++    fprintf(stream, "Display options:\n");
++    fprintf(stream, "\t--display display | help         Show information for the specified display, or the available display list \n");
++    fprintf(stream, "\t--device device                  Set device name, only available under drm display\n");
++}
+diff --git a/common/va_display.h b/common/va_display.h
+index 4ed33e0..5fc159c 100644
+--- a/common/va_display.h
++++ b/common/va_display.h
+@@ -26,6 +26,7 @@
+ #define VA_DISPLAY_H
+ 
+ #include <va/va.h>
++#include <stdio.h>
+ 
+ #ifdef __cplusplus
+ extern "C" {
+@@ -57,6 +58,9 @@ va_put_surface(
+     const VARectangle *dst_rect
+ );
+ 
++void
++va_print_display_options(FILE *stream);
++
+ #ifdef __cplusplus
+ }
+ #endif
+diff --git a/vainfo/vainfo.c b/vainfo/vainfo.c
+index 4405073..bfbf698 100644
+--- a/vainfo/vainfo.c
++++ b/vainfo/vainfo.c
+@@ -26,6 +26,9 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <unistd.h>
++#include <getopt.h>
++
+ #include "va_display.h"
+ 
+ #define CHECK_VASTATUS(va_status,func, ret)                             \
+@@ -88,6 +91,45 @@ static char * entrypoint_string(VAEntrypoint entrypoint)
+     return "<unknown entrypoint>";
+ }
+ 
++static void
++usage_exit(const char *program)
++{
++    fprintf(stdout, "Show information from VA-API driver\n");
++    fprintf(stdout, "Usage: %s --help\n", program);
++    fprintf(stdout, "\t--help print this message\n\n");
++    fprintf(stdout, "Usage: %s [options]\n", program);
++    va_print_display_options(stdout);
++
++    exit(0);
++}
++
++static void
++parse_args(const char *name, int argc, char **argv)
++{
++    int c, tmp;
++    int option_index = 0;
++    long file_size;
++
++    static struct option long_options[] = {
++        {"help",        no_argument,            0,      'h'},
++        { NULL,         0,                      NULL,   0 }
++    };
++
++    va_init_display_args(&argc, argv);
++
++    while ((c = getopt_long(argc, argv,
++                            "",
++                            long_options,
++                            &option_index)) != -1) {
++        switch(c) {
++        case 'h':
++        default:
++            usage_exit(name);
++            break;
++        }
++    }
++}
++
+ int main(int argc, const char* argv[])
+ {
+   VADisplay va_dpy;
+@@ -106,7 +148,7 @@ int main(int argc, const char* argv[])
+   else
+       name = argv[0];
+ 
+-  va_init_display_args(&argc, (char **)argv);
++  parse_args(name, argc, (char **)argv);
+ 
+   va_dpy = va_open_display();
+   if (NULL == va_dpy)
+-- 
+2.13.6
+

diff --git a/libva-utils.spec b/libva-utils.spec
index 74f7c4c..0f22203 100644
--- a/libva-utils.spec
+++ b/libva-utils.spec
@@ -1,10 +1,12 @@
 Name:		libva-utils
 Version:	1.8.3
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Tools for VAAPI (including vainfo)
 License:	MIT and BSD
 URL:		https://01.org/linuxmedia
 Source0:	https://github.com/01org/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:		0001-vainfo-add-an-option-device-to-specify-a-drm-device.patch
+Patch1:		0002-vainfo-Add-help-to-show-available-options.patch
 
 BuildRequires:  libtool
 
@@ -62,6 +64,9 @@ autoreconf -vif
 
 
 %changelog
+* Tue Oct 31 2017 Dominik Mierzejewski <rpm@greysector.net> - 1.8.3-4
+- backport --device option from upstream git
+
 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
 

diff --git a/libva-utils.spec b/libva-utils.spec
index 0ada8e9..0f22203 100644
--- a/libva-utils.spec
+++ b/libva-utils.spec
@@ -1,6 +1,6 @@
 Name:		libva-utils
 Version:	1.8.3
-Release:	2%{?dist}
+Release:	4%{?dist}
 Summary:	Tools for VAAPI (including vainfo)
 License:	MIT and BSD
 URL:		https://01.org/linuxmedia
@@ -64,9 +64,15 @@ autoreconf -vif
 
 
 %changelog
-* Tue Oct 31 2017 Dominik Mierzejewski <rpm@greysector.net> - 1.8.3-2
+* Tue Oct 31 2017 Dominik Mierzejewski <rpm@greysector.net> - 1.8.3-4
 - backport --device option from upstream git
 
+* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
 * Wed Jul 12 2017 Nicolas Chauvet <kwizart@gmail.com> - 1.8.3-1
 - Update to 1.8.3
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [rpms/libva-utils] epel10.2: Merge branch 'f26' into f27
@ 2026-10-20  9:39 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; 2+ messages in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-10-20  9:39 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libva-utils
Branch : epel10.2
Commit : baf0759e0b5f72cde0bcb28f0272fc690595ca7b
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2017-10-31T11:13:15+01:00
Stats  : +9/-9 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libva-utils/c/baf0759e0b5f72cde0bcb28f0272fc690595ca7b?branch=epel10.2

Log:
Merge branch 'f26' into f27

---
diff --git a/libva-utils.spec b/libva-utils.spec
index 0f22203..c754c8e 100644
--- a/libva-utils.spec
+++ b/libva-utils.spec
@@ -10,20 +10,14 @@ Patch1:		0002-vainfo-Add-help-to-show-available-options.patch
 
 BuildRequires:  libtool
 
-BuildRequires:	libudev-devel
 BuildRequires:	libXext-devel
 BuildRequires:	libXfixes-devel
 BuildRequires:	libdrm-devel
-BuildRequires:  libpciaccess-devel
 BuildRequires:  libva-devel
-BuildRequires:	mesa-libEGL-devel
-BuildRequires:	mesa-libGL-devel
-BuildRequires:	mesa-libGLES-devel
 %{!?_without_wayland:
 BuildRequires:  wayland-devel
 BuildRequires:  pkgconfig(wayland-client) >= 1
 BuildRequires:  pkgconfig(wayland-scanner) >= 1
-BuildRequires:  pkgconfig(wayland-server) >= 1
 }
 
 %description
@@ -39,7 +33,6 @@ autoreconf -vif
 
 %build
 %configure --disable-static \
-  --enable-glx \
 %{?_without_wayland:--disable-wayland}
 
 %make_build
@@ -66,6 +59,7 @@ autoreconf -vif
 %changelog
 * Tue Oct 31 2017 Dominik Mierzejewski <rpm@greysector.net> - 1.8.3-4
 - backport --device option from upstream git
+- drop unnecessary build dependencies and invalid configure option
 
 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

diff --git a/libva-utils.spec b/libva-utils.spec
index bc3ba0d..c754c8e 100644
--- a/libva-utils.spec
+++ b/libva-utils.spec
@@ -1,6 +1,6 @@
 Name:		libva-utils
 Version:	1.8.3
-Release:	2%{?dist}
+Release:	4%{?dist}
 Summary:	Tools for VAAPI (including vainfo)
 License:	MIT and BSD
 URL:		https://01.org/linuxmedia
@@ -57,10 +57,16 @@ autoreconf -vif
 
 
 %changelog
-* Tue Oct 31 2017 Dominik Mierzejewski <rpm@greysector.net> - 1.8.3-2
+* Tue Oct 31 2017 Dominik Mierzejewski <rpm@greysector.net> - 1.8.3-4
 - backport --device option from upstream git
 - drop unnecessary build dependencies and invalid configure option
 
+* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
 * Wed Jul 12 2017 Nicolas Chauvet <kwizart@gmail.com> - 1.8.3-1
 - Update to 1.8.3
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-20  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20  9:39 [rpms/libva-utils] epel10.2: Merge branch 'f26' into f27 Dominik 'Rathann' Mierzejewski
2026-10-20  9:39 Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox