pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/libva libva: update to 2.13.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bb9ccbf3d5ec
branches:  trunk
changeset: 371313:bb9ccbf3d5ec
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Jan 09 00:27:57 2022 +0000

description:
libva: update to 2.13.0

Changes, excluding bug/doc/ci/trace fixes:
2.13.0
  add: (sep_layer) add new surface format fourcc XYUV
2.12.0
  add: Report the capability of vaCopy support
  add: Report the capability of sub device
  add: Add config attributes to advertise HEVC/H.265 encoder features
  add: Video processing HVS Denoise: Added 4 modes
  add: Introduce VASurfaceAttribDRMFormatModifiers
  add: Add 3DLUT Filter in Video Processing.
2.11.0
  add: LibVA Protected Content API
  add: Add a configuration attribute to advertise AV1d LST feature
  fix: wayland: don't try to authenticate with render nodes
  trace: Add details data dump for mpeg2 IQ matrix.
2.10.0
  add: Pass offset and size of pred_weight_table
  add: add vaCopy interface to copy surface and buffer
  add: add definition for different execution
  add: New parameters for transport controlled BRC were added
  add: add FreeBSD support
  add: add a bufer type to adjust context priority dynamically
2.9.0
  Add SCC fields trace for HEVC SCC encoding.
  Add FOURCC code for Y212 and Y412 format.
  Add interpolation method for scaling.
  add attributes for context priority setting
  Add vaSyncBuffer for output buffers synchronization
  Add vaSyncSurface2 with timeout
2.8.0
  add fourcc code for P012 format
  add definition to enforce both reflist not empty
  change the return value to be UNIMPLEMENTED when the function pointer is NULL
  remove check of vaPutSurface implementation
  Add new slice structure flag for CAPS reporting
  VA/X11: VAAPI driver mapping for iris DRI driver
  VA/X11: enable driver candidate selection for DRI2
  Add SCC flags to enable/disable features
  Add VAProfileHEVCSccMain444_10 for HEVC
  change the compatible list to be dynamic one
2.7.1
  VA/X11: enable driver candidate selection for DRI2
  VA/X11: VAAPI driver mapping for iris DRI driver
2.7.0
  Add av1 decode interfaces
  Add 2 FourCC for 10bit RGB(without Alpha) format: X2R10G10B10 and X2B10G10R10.

diffstat:

 multimedia/libva/Makefile                                |  32 +++---
 multimedia/libva/PLIST                                   |   5 +-
 multimedia/libva/distinfo                                |  11 +-
 multimedia/libva/patches/patch-va_Makefile.am            |  51 ----------
 multimedia/libva/patches/patch-va_glx_va__glx__private.h |  18 ---
 multimedia/libva/patches/patch-va_va__trace.c            |  75 ----------------
 6 files changed, 23 insertions(+), 169 deletions(-)

diffs (256 lines):

diff -r 8801931f5ba4 -r bb9ccbf3d5ec multimedia/libva/Makefile
--- a/multimedia/libva/Makefile Sat Jan 08 23:01:30 2022 +0000
+++ b/multimedia/libva/Makefile Sun Jan 09 00:27:57 2022 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.23 2021/12/02 16:58:47 tnn Exp $
+# $NetBSD: Makefile,v 1.24 2022/01/09 00:27:57 tnn Exp $
 
-DISTNAME=      libva-2.6.1
+GITHUB_RELEASE=        ${PKGVERSION_NOREV}
+DISTNAME=      libva-2.13.0
 CATEGORIES=    multimedia
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=intel/}
-EXTRACT_SUFX=  .tar.gz
-GITHUB_TAG=    2.6.1
+EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/intel/libva
@@ -13,7 +13,7 @@
 
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes
-USE_TOOLS+=    autoreconf autoconf automake gmake pkg-config
+USE_TOOLS+=    gmake pkg-config
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -30,23 +30,21 @@
 
 CONFIGURE_ARGS+=       --enable-shared
 CONFIGURE_ARGS+=       --with-drivers-path=${DRIVER_SEARCH_PATH:Q}
+# Might be useful to have this but I'll leave it to
+# someone else to enable. -tnn
+CONFIGURE_ARGS+=       --disable-wayland
+# To avoid a PLIST mismatch with base Xorg
+CONFIGURE_ARGS+=       --disable-glx
 
 LIBS+=                 ${BUILDLINK_LDADD.dl}
 
-PKGCONFIG_OVERRIDE+=   libva-drm.pc.in
-PKGCONFIG_OVERRIDE+=   libva-egl.pc.in
-PKGCONFIG_OVERRIDE+=   libva-glx.pc.in
-PKGCONFIG_OVERRIDE+=   libva-tpi.pc.in
-PKGCONFIG_OVERRIDE+=   libva-x11.pc.in
-PKGCONFIG_OVERRIDE+=   libva.pc.in
+PKGCONFIG_OVERRIDE+=   pkgconfig/libva-drm.pc.in
+PKGCONFIG_OVERRIDE+=   pkgconfig/libva-glx.pc.in
+PKGCONFIG_OVERRIDE+=   pkgconfig/libva-wayland.pc.in
+PKGCONFIG_OVERRIDE+=   pkgconfig/libva-x11.pc.in
+PKGCONFIG_OVERRIDE+=   pkgconfig/libva.pc.in
 
 
-pre-configure:
-       cd ${WRKSRC} && autoreconf -i
-
-# To avoid a PLIST mismatch with base Xorg
-CONFIGURE_ARGS+=       --disable-glx
-
 .include "../../x11/libXfixes/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
diff -r 8801931f5ba4 -r bb9ccbf3d5ec multimedia/libva/PLIST
--- a/multimedia/libva/PLIST    Sat Jan 08 23:01:30 2022 +0000
+++ b/multimedia/libva/PLIST    Sun Jan 09 00:27:57 2022 +0000
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.9 2018/11/23 08:05:04 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.10 2022/01/09 00:27:57 tnn Exp $
 include/va/va.h
 include/va/va_backend.h
+include/va/va_backend_prot.h
 include/va/va_backend_vpp.h
 include/va/va_compat.h
+include/va/va_dec_av1.h
 include/va/va_dec_hevc.h
 include/va/va_dec_jpeg.h
 include/va/va_dec_vp8.h
@@ -21,6 +23,7 @@
 include/va/va_fei.h
 include/va/va_fei_h264.h
 include/va/va_fei_hevc.h
+include/va/va_prot.h
 include/va/va_str.h
 include/va/va_tpi.h
 include/va/va_version.h
diff -r 8801931f5ba4 -r bb9ccbf3d5ec multimedia/libva/distinfo
--- a/multimedia/libva/distinfo Sat Jan 08 23:01:30 2022 +0000
+++ b/multimedia/libva/distinfo Sun Jan 09 00:27:57 2022 +0000
@@ -1,8 +1,5 @@
-$NetBSD: distinfo,v 1.16 2021/10/26 11:01:10 nia Exp $
+$NetBSD: distinfo,v 1.17 2022/01/09 00:27:57 tnn Exp $
 
-BLAKE2s (libva-2.6.1.tar.gz) = 6daed383fc422b5f6c8e1c588609fbd14731ce809e337bdd57c31663fc2fdd91
-SHA512 (libva-2.6.1.tar.gz) = 29dd4df9da5f9a02149dadfc30cb5edfde63f2d912a99ef8dc4eecb983a09d2cd0451d61bad2b9bec0a25a6c2d2c60d644a2251e2141623fdf0a08eb3e70569a
-Size (libva-2.6.1.tar.gz) = 228850 bytes
-SHA1 (patch-va_Makefile.am) = af963e8279aacf706b6442372ce7cb1436395c74
-SHA1 (patch-va_glx_va__glx__private.h) = daf6552189295a86f1f073ef107b7449e4098251
-SHA1 (patch-va_va__trace.c) = 478f23fb0c5e7cf6a8adc421921af715a62231ef
+BLAKE2s (libva-2.13.0.tar.bz2) = d014c9118ddd34eebb90af8caa6354cb0994b1e27f2c84207f5f9e9d1fd10236
+SHA512 (libva-2.13.0.tar.bz2) = 25c384f4dc577328af67892c055ca1c832b98e2e36c495678c0fb8d5375dfd5b28257d575dca13c0f46d04e66643f729331ddaaa55d48bcc3df28eb3b6f343eb
+Size (libva-2.13.0.tar.bz2) = 495736 bytes
diff -r 8801931f5ba4 -r bb9ccbf3d5ec multimedia/libva/patches/patch-va_Makefile.am
--- a/multimedia/libva/patches/patch-va_Makefile.am     Sat Jan 08 23:01:30 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-$NetBSD: patch-va_Makefile.am,v 1.2 2018/11/23 08:05:04 ryoon Exp $
-
-Don't hardcore -ldl
-
---- va/Makefile.am.orig        2018-10-23 13:50:59.000000000 +0000
-+++ va/Makefile.am
-@@ -91,7 +91,7 @@ libva_la_SOURCES             = $(libva_source_c)
- libva_la_CFLAGS                       = $(libva_cflags)
- libva_la_LDFLAGS              = $(libva_ldflags)
- libva_la_DEPENDENCIES         = libva.syms
--libva_la_LIBADD                       = $(LIBVA_LIBS) -ldl
-+libva_la_LIBADD                       = $(LIBVA_LIBS)
- 
- if USE_DRM
- SUBDIRS                               += drm
-@@ -101,7 +101,7 @@ libva_drm_la_CFLAGS                = $(libva_cflags)
- libva_drm_la_LDFLAGS          = $(LDADD)
- libva_drm_la_DEPENDENCIES     = libva.la drm/libva_drm.la
- libva_drm_la_LIBADD           = libva.la drm/libva_drm.la \
--      $(LIBVA_LIBS) $(DRM_LIBS) -ldl
-+      $(LIBVA_LIBS) $(DRM_LIBS)
- endif
- 
- if USE_X11
-@@ -113,7 +113,7 @@ libva_x11_la_CFLAGS                = $(libva_cflags)
- libva_x11_la_LDFLAGS          = $(LDADD)
- libva_x11_la_DEPENDENCIES     = libva.la x11/libva_x11.la
- libva_x11_la_LIBADD           = libva.la x11/libva_x11.la \
--      $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(XFIXES_LIBS) $(DRM_LIBS) -ldl
-+      $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(XFIXES_LIBS) $(DRM_LIBS)
- endif
- 
- if USE_GLX
-@@ -124,7 +124,7 @@ libva_glx_la_CFLAGS                = $(libva_cflags)
- libva_glx_la_LDFLAGS          = $(LDADD)
- libva_glx_la_DEPENDENCIES     = libva.la glx/libva_glx.la libva-x11.la
- libva_glx_la_LIBADD           = libva.la glx/libva_glx.la libva-x11.la \
--      $(GLX_LIBS) -ldl
-+      $(GLX_LIBS)
- endif
- 
- if USE_WAYLAND
-@@ -135,7 +135,7 @@ libva_wayland_la_CFLAGS            = $(libva_cflag
- libva_wayland_la_LDFLAGS      = $(LDADD)
- libva_wayland_la_DEPENDENCIES = libva.la wayland/libva_wayland.la
- libva_wayland_la_LIBADD               = libva.la wayland/libva_wayland.la \
--      $(WAYLAND_LIBS) $(DRM_LIBS) -ldl
-+      $(WAYLAND_LIBS) $(DRM_LIBS)
- endif
- 
- DIST_SUBDIRS = x11 glx drm wayland
diff -r 8801931f5ba4 -r bb9ccbf3d5ec multimedia/libva/patches/patch-va_glx_va__glx__private.h
--- a/multimedia/libva/patches/patch-va_glx_va__glx__private.h  Sat Jan 08 23:01:30 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-va_glx_va__glx__private.h,v 1.1 2013/04/14 00:30:03 cheusov Exp $
-
-Fix for build failure with pkgsrc Xorg.
-Tested on Linux (pkgsrc X) and NetBSD (native X).
-
---- va/glx/va_glx_private.h.orig       2012-02-14 12:53:50.000000000 +0000
-+++ va/glx/va_glx_private.h
-@@ -41,8 +41,10 @@ typedef void (*PFNGLXRELEASETEXIMAGEEXTP
- #if GLX_GLXEXT_VERSION < 27
- /* XXX: this is not exactly that version but this is the only means to
-    make sure we have the correct <GL/glx.h> with those signatures */
-+/*
- typedef GLXPixmap (*PFNGLXCREATEPIXMAPPROC)(Display *, GLXFBConfig, Pixmap, const int *);
- typedef void (*PFNGLXDESTROYPIXMAPPROC)(Display *, GLXPixmap);
-+*/
- #endif
- 
- typedef struct VAOpenGLVTable *VAOpenGLVTableP;
diff -r 8801931f5ba4 -r bb9ccbf3d5ec multimedia/libva/patches/patch-va_va__trace.c
--- a/multimedia/libva/patches/patch-va_va__trace.c     Sat Jan 08 23:01:30 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-$NetBSD: patch-va_va__trace.c,v 1.4 2019/12/29 01:31:42 ryoon Exp $
-
-attempt to provide syscall(__NR_gettid) for most
-systems. inspired by lldb Host.cpp
-
---- va/va_trace.c.orig 2019-09-12 01:35:27.000000000 +0000
-+++ va/va_trace.c
-@@ -50,10 +50,31 @@
- #include <sys/stat.h>
- #include <sys/syscall.h>
- #include <pthread.h>
-+#if defined(__FreeBSD__) || defined(__DragonFly__)
-+#include <pthread_np.h>
-+#endif
-+#if defined(__NetBSD__)
-+#include <lwp.h>
-+#endif
- #include <unistd.h>
- #include <sys/time.h>
- #include <errno.h>
- 
-+pid_t get_tid() {
-+#if defined(__linux__)
-+    return syscall(__NR_gettid);
-+#elif defined(__NetBSD__)
-+    return _lwp_self();
-+#elif defined(__FreeBSD__) || defined(__DragonFly__)
-+    return pthread_getthreadid_np();
-+#elif defined(__OpenBSD__)
-+    return syscall(SYS_getthrid);
-+#else
-+#warning "Don't know how to get thread id"
-+    return 0;
-+#endif
-+}
-+
- /*
-  * Env. to debug some issue, e.g. the decode/encode issue in a video conference scenerio:
-  * .LIBVA_TRACE=log_file: general VA parameters saved into log_file
-@@ -288,7 +309,7 @@ static void add_trace_config_info(
- {
-     struct trace_config_info *pconfig_info;
-     int idx = 0;
--    pid_t thd_id = syscall(__NR_gettid);
-+    pid_t thd_id = get_tid();
- 
-     LOCK_RESOURCE(pva_trace);
- 
-@@ -666,7 +687,7 @@ static struct trace_log_file *start_trac
- {
-     struct trace_log_files_manager *plog_files_mgr = NULL;
-     struct trace_log_file *plog_file = NULL;
--    pid_t thd_id = syscall(__NR_gettid);
-+    pid_t thd_id = get_tid();
-     int i = 0;
- 
-     LOCK_RESOURCE(pva_trace);
-@@ -705,7 +726,7 @@ static void refresh_log_file(
-     struct trace_context *ptra_ctx)
- {
-     struct trace_log_file *plog_file = NULL;
--    pid_t thd_id = syscall(__NR_gettid);
-+    pid_t thd_id = get_tid();
-     int i = 0;
- 
-     plog_file = ptra_ctx->plog_file;
-@@ -1231,7 +1252,7 @@ static void internal_TraceUpdateContext 
- {
-     struct trace_context *trace_ctx = NULL;
-     int i = 0, delete = 1;
--    pid_t thd_id = syscall(__NR_gettid);
-+    pid_t thd_id = get_tid();
- 
-     if(tra_ctx_idx >= MAX_TRACE_CTX_NUM)
-         return;



Home | Main Index | Thread Index | Old Index