[arch-commits] Commit in libva-vdpau-driver/repos (6 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 6 16:04:43 UTC 2022


    Date: Sunday, March 6, 2022 @ 16:04:43
  Author: felixonmars
Revision: 439109

archrelease: copy trunk to staging-x86_64

Added:
  libva-vdpau-driver/repos/staging-x86_64/
  libva-vdpau-driver/repos/staging-x86_64/PKGBUILD
    (from rev 439108, libva-vdpau-driver/trunk/PKGBUILD)
  libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch
    (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch)
  libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch
    (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch)
  libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-glext-missing-definition.patch
    (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-glext-missing-definition.patch)
  libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch
    (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch)

---------------------------------------------------------+
 PKGBUILD                                                |   56 ++++++++++++++
 libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch |   24 ++++++
 libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch   |   29 +++++++
 libva-vdpau-driver-0.7.4-glext-missing-definition.patch |   16 ++++
 libva-vdpau-driver-0.7.4-libvdpau-0.8.patch             |   11 ++
 5 files changed, 136 insertions(+)

Copied: libva-vdpau-driver/repos/staging-x86_64/PKGBUILD (from rev 439108, libva-vdpau-driver/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2022-03-06 16:04:43 UTC (rev 439109)
@@ -0,0 +1,56 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=libva-vdpau-driver
+pkgver=0.7.4
+pkgrel=6
+pkgdesc='VDPAU backend for VA API'
+arch=(x86_64)
+url=https://freedesktop.org/wiki/Software/vaapi
+license=(GPL)
+depends=(
+  libgl
+  libvdpau
+  libx11
+)
+makedepends=(
+  libva
+  mesa
+)
+source=(
+  https://freedesktop.org/software/vaapi/releases/libva-vdpau-driver/libva-vdpau-driver-${pkgver}.tar.bz2
+  libva-vdpau-driver-0.7.4-glext-missing-definition.patch
+  libva-vdpau-driver-0.7.4-libvdpau-0.8.patch
+  libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch
+  libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch
+)
+b2sums=('b9cd0bbbe1e638ad29363cd0d8c6452de222023017283ce81f138730c7ba3396f3ffca40478746cab4b93a8855e73de405aa783e44e6c1179c5e347bd7eff657'
+        '3c295a68cb0976f976880f13296c703c3b75abdd3311b790c132ba233e9d26975686d8b618cdda594b1aa2e5cbadee850bf2e08cc35ca2c7ee11fe10c535d91c'
+        'f1bc6e3840769ce4a5e53d85867a854ddfc780e670ca095541b9f2465ca0c96f3c7ed00da596f88d0c60aa749afcaf734670ada449c8a87e27f999c74539bc78'
+        '5a5a12aff1f93769d480525140e7a0d61f4db64e57f1f956d778d1ab8be881b209779030ce14b8fee53dd4cbb6a7c59a0c9297ad0c92548268c840ea0f5910b0'
+        '3a7daab7f6144837e50cabd06d30709bf7fc3218e226953471f2908efad2da78cb5035f9443642381460f6ffacd0eb0c9accf7e4084fcdf12e6942c6603dbb9a')
+
+prepare() {
+  cd libva-vdpau-driver-${pkgver}
+
+  patch -Np1 -i ../libva-vdpau-driver-0.7.4-glext-missing-definition.patch
+  patch -Np1 -i ../libva-vdpau-driver-0.7.4-libvdpau-0.8.patch
+  patch -Np1 -i ../libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch
+  patch -Np1 -i ../libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch
+}
+
+build() {
+  cd libva-vdpau-driver-${pkgver}
+
+  ./configure \
+    --prefix=/usr
+  make
+}
+
+package() {
+  cd libva-vdpau-driver-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch)
===================================================================
--- staging-x86_64/libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch	                        (rev 0)
+++ staging-x86_64/libva-vdpau-driver-0.7.4-CreateSurfaceFromV4L2Buf.patch	2022-03-06 16:04:43 UTC (rev 439109)
@@ -0,0 +1,24 @@
+diff -rupN libva-vdpau-driver-0.7.4.orig/src/vdpau_video.c libva-vdpau-driver-0.7.4/src/vdpau_video.c
+--- libva-vdpau-driver-0.7.4.orig/src/vdpau_video.c	2020-12-06 10:48:03.320569841 +0100
++++ libva-vdpau-driver-0.7.4/src/vdpau_video.c	2020-12-06 10:50:45.437401497 +0100
+@@ -927,8 +927,6 @@ VAStatus
+ vdpau_CreateSurfaceFromV4L2Buf(
+     VADriverContextP    ctx,
+     int                 v4l2_fd,
+-    struct v4l2_format *v4l2_fmt,
+-    struct v4l2_buffer *v4l2_buf,
+     VASurfaceID        *surface
+ )
+ {
+diff -rupN libva-vdpau-driver-0.7.4.orig/src/vdpau_video.h libva-vdpau-driver-0.7.4/src/vdpau_video.h
+--- libva-vdpau-driver-0.7.4.orig/src/vdpau_video.h	2020-12-06 10:48:03.317236508 +0100
++++ libva-vdpau-driver-0.7.4/src/vdpau_video.h	2020-12-06 10:50:45.417401454 +0100
+@@ -274,8 +274,6 @@ VAStatus
+ vdpau_CreateSurfaceFromV4L2Buf(
+     VADriverContextP    ctx,
+     int                 v4l2_fd,
+-    struct v4l2_format *v4l2_fmt,
+-    struct v4l2_buffer *v4l2_buf,
+     VASurfaceID        *surface
+ ) attribute_hidden;
+ 

Copied: libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch)
===================================================================
--- staging-x86_64/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch	                        (rev 0)
+++ staging-x86_64/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch	2022-03-06 16:04:43 UTC (rev 439109)
@@ -0,0 +1,29 @@
+>From fda3706eb74ba5ad874853969f3df3e372739c8d Mon Sep 17 00:00:00 2001
+From: "Xiang, Haihao" <haihao.xiang at intel.com>
+Date: Fri, 21 Jun 2013 12:55:30 +0800
+Subject: [PATCH] VAEncH264VUIBufferType and VAEncH264SEIBufferType are
+ dropped from VA API
+
+The driver doesn't use them indeed
+
+Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
+---
+ src/vdpau_dump.c |    2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/vdpau_dump.c b/src/vdpau_dump.c
+index 899888b..610e7cd 100644
+--- a/src/vdpau_dump.c
++++ b/src/vdpau_dump.c
+@@ -59,8 +59,6 @@ const char *string_of_VABufferType(VABufferType type)
+         _(VAEncSequenceParameterBufferType);
+         _(VAEncPictureParameterBufferType);
+         _(VAEncSliceParameterBufferType);
+-        _(VAEncH264VUIBufferType);
+-        _(VAEncH264SEIBufferType);
+ #endif
+ #if VA_CHECK_VERSION(0,31,1)
+         _(VAQMatrixBufferType);
+-- 
+1.7.9.5
+

Copied: libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-glext-missing-definition.patch (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-glext-missing-definition.patch)
===================================================================
--- staging-x86_64/libva-vdpau-driver-0.7.4-glext-missing-definition.patch	                        (rev 0)
+++ staging-x86_64/libva-vdpau-driver-0.7.4-glext-missing-definition.patch	2022-03-06 16:04:43 UTC (rev 439109)
@@ -0,0 +1,16 @@
+--- a/src/utils_glx.h~	2012-10-05 16:02:58.000000000 +0100
++++ b/src/utils_glx.h	2012-10-19 08:44:12.469642440 +0100
+@@ -48,6 +48,13 @@
+ typedef void (*PFNGLXRELEASETEXIMAGEEXTPROC)(Display *, GLXDrawable, int);
+ #endif
+ 
++#if GL_GLEXT_VERSION >= 85
++/* XXX: PFNGLMULTITEXCOORD2FPROC got out of the GL_VERSION_1_3_DEPRECATED
++   block and is not defined if GL_VERSION_1_3 is defined in <GL/gl.h>
++   Redefine the type here as an interim solution */
++typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
++#endif
++                    
+ #ifndef GL_FRAMEBUFFER_BINDING
+ #define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_EXT
+ #endif

Copied: libva-vdpau-driver/repos/staging-x86_64/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch (from rev 439108, libva-vdpau-driver/trunk/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch)
===================================================================
--- staging-x86_64/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch	                        (rev 0)
+++ staging-x86_64/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch	2022-03-06 16:04:43 UTC (rev 439109)
@@ -0,0 +1,11 @@
+--- a/src/vdpau_decode.c
++++ b/src/vdpau_decode.c
+@@ -1289,7 +1289,7 @@
+             driver_data,
+             obj_context->vdp_decoder,
+             obj_surface->vdp_surface,
+-            (VdpPictureInfo)&obj_context->vdp_picture_info,
++            (VdpPictureInfo *)&obj_context->vdp_picture_info,
+             obj_context->vdp_bitstream_buffers_count,
+             obj_context->vdp_bitstream_buffers
+         );



More information about the arch-commits mailing list