x11.drivers part 1

This commit is contained in:
Ertuğrul Erata
2015-07-15 19:26:09 +03:00
parent f1f07fcac9
commit 533ddafe6c
23 changed files with 856 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")
autotools.autoreconf("-fiv")
autotools.configure()
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
@@ -0,0 +1,12 @@
diff -Naur libva-vdpau-driver-0.7.4.old/src/vdpau_dump.c libva-vdpau-driver-0.7.4/src/vdpau_dump.c
--- libva-vdpau-driver-0.7.4.old/src/vdpau_dump.c 2013-07-31 10:27:40.413324916 +0200
+++ libva-vdpau-driver-0.7.4/src/vdpau_dump.c 2013-07-31 10:28:12.386040595 +0200
@@ -59,8 +59,6 @@
_(VAEncSequenceParameterBufferType);
_(VAEncPictureParameterBufferType);
_(VAEncSliceParameterBufferType);
- _(VAEncH264VUIBufferType);
- _(VAEncH264SEIBufferType);
#endif
#if VA_CHECK_VERSION(0,31,1)
_(VAQMatrixBufferType);
@@ -0,0 +1,30 @@
From dd3e1e53a0c083c4dc16f3db4083ad5e4b7a866e Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Fri, 11 Jan 2013 21:04:40 +0100
Subject: [PATCH] Fix libva-vdpau-driver with GL_GLEXT_VERSION >= 85
---
src/utils_glx.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/utils_glx.h b/src/utils_glx.h
index 19d03e4..42ae06f 100644
--- a/src/utils_glx.h
+++ b/src/utils_glx.h
@@ -67,6 +67,13 @@ typedef void (*PFNGLXRELEASETEXIMAGEEXTPROC)(Display *, GLXDrawable, int);
#define GL_PROGRAM_UNDER_NATIVE_LIMITS GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB
#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
+
const char *
gl_get_error_string(GLenum error)
attribute_hidden;
--
1.7.11.7
@@ -0,0 +1,13 @@
http://bugs.gentoo.org/517778
--- src/vdpau_decode.c
+++ 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
);
+114
View File
@@ -0,0 +1,114 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>vdpau-video</Name>
<Homepage>http://www.splitted-desktop.com/~gbeauchesne/vdpau-video/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>driver</IsA>
<Summary>VDPAU backend for VA API</Summary>
<Description>vdpau-video is a backend for the VA API in order to use VDPAU video acceleration drivers available for some NVIDIA and S3 cards.</Description>
<Archive sha1sum="224318f4ea8bafca6a0fec770e388b7d1a1a66b3" type="tarbz2">http://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/libva-vdpau-driver-0.7.4.tar.bz2</Archive>
<BuildDependencies>
<Dependency versionFrom="0.8">libvdpau-devel</Dependency>
<Dependency>libva-devel</Dependency>
<Dependency>mesa-devel</Dependency>
<Dependency>libX11-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>libva-vdpau-driver-0.7.4-libvdpau-0.8.patch</Patch>
<Patch level="1">libva-vdpau-driver-0.7.4-glext-85.patch</Patch>
<Patch level="1">libva-vdpau-driver-0.7.4-drop-h264-api.patch</Patch>
</Patches>
</Source>
<Package>
<Name>vdpau-video</Name>
<RuntimeDependencies>
<Dependency>libX11</Dependency>
<Dependency versionFrom="0.8">libvdpau</Dependency>
<Dependency>mesa</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="10">
<Date>2015-05-08</Date>
<Version>0.7.4</Version>
<Comment>Release bump.</Comment>
<Name>Burak Ertürk</Name>
<Email>burakerturk@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2015-01-22</Date>
<Version>0.7.4</Version>
<Comment>Rebuild for xorg-server-1.16.3</Comment>
<Name>Ergün Salman</Name>
<Email>Poyraz76@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2014-09-01</Date>
<Version>0.7.4</Version>
<Comment>Rebuild for xorg-server-1.16.0 and libvdpau-0.8</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2014-05-16</Date>
<Version>0.7.4</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-03-08</Date>
<Version>0.7.4</Version>
<Comment>Rebuild for xserver 1.15</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-02-08</Date>
<Version>0.7.4</Version>
<Comment>Rebuild Unused</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-11-06</Date>
<Version>0.7.4</Version>
<Comment>Fix deps.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-08-25</Date>
<Version>0.7.4</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-05-29</Date>
<Version>0.7.4</Version>
<Comment>build for xorg 1.14</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-11</Date>
<Version>0.7.4</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>vdpau-video</Name>
<Summary xml:lang="tr">VA API için VDPAU arka ucu</Summary>
<Description xml:lang="tr">vdpau-video, bazı NVIDIA ve S3 kartlar için mevcut olan VDPAU video hızlandırma sürücülerini kullanmak için bir VA API arka ucudur.</Description>
</Source>
</PISI>