[arch-commits] Commit in xf86-video-ati/repos (3 files)

Andreas Radke andyrtr at archlinux.org
Thu Mar 7 20:36:09 UTC 2019


    Date: Thursday, March 7, 2019 @ 20:36:08
  Author: andyrtr
Revision: 347427

archrelease: copy trunk to testing-x86_64

Added:
  xf86-video-ati/repos/testing-x86_64/
  xf86-video-ati/repos/testing-x86_64/PKGBUILD
    (from rev 347426, xf86-video-ati/trunk/PKGBUILD)
  xf86-video-ati/repos/testing-x86_64/glamor_revert.patch
    (from rev 347426, xf86-video-ati/trunk/glamor_revert.patch)

---------------------+
 PKGBUILD            |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 glamor_revert.patch |   32 +++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: xf86-video-ati/repos/testing-x86_64/PKGBUILD (from rev 347426, xf86-video-ati/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-03-07 20:36:08 UTC (rev 347427)
@@ -0,0 +1,54 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alexander Baldeck <alexander at archlinux.org>
+
+pkgname=xf86-video-ati
+pkgver=19.0.0
+pkgrel=2
+epoch=1
+pkgdesc="X.org ati video driver"
+arch=('x86_64')
+url="https://xorg.freedesktop.org/"
+license=('custom')
+depends=('systemd-libs' 'mesa')
+makedepends=('xorg-server-devel' 'systemd' 'X-ABI-VIDEODRV_VERSION=24.0')
+conflicts=('xorg-server<1.20.0' 'X-ABI-VIDEODRV_VERSION<24' 'X-ABI-VIDEODRV_VERSION>=25')
+groups=('xorg-drivers')
+source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig}
+        glamor_revert.patch)
+sha512sums=('0674c8befa926fd3b431ce80d90f2cd0de17314efe7fd3a5ed0d78018d6cd32625b514bf68436a47eb15e5ad4b50317f3c09fd687b77e69a067d1210ee459827'
+            'SKIP'
+            '08b121e165f20c994648100077a5477a164d48de7a7c5656da5268b97e5e3f454d359c1bee046bbf7ab5ac9c281db7a091fb12662b30a9d498c05c4d1b019e7b')
+validpgpkeys=('B09FAF35BE914521980951145A81AF8E6ADBB200') # Michel Daenzer <michel at daenzer.net>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # fix glitches seen in i3-wm at status bar and window titles
+  patch -Np1 -R -i ../glamor_revert.patch
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
+  # With them, module fail to load with undefined symbol.
+  # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
+  export CFLAGS=${CFLAGS/-fno-plt}
+  export CXXFLAGS=${CXXFLAGS/-fno-plt}
+  export LDFLAGS=${LDFLAGS/,-z,now}
+
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+
+  make "DESTDIR=${pkgdir}" install
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}

Copied: xf86-video-ati/repos/testing-x86_64/glamor_revert.patch (from rev 347426, xf86-video-ati/trunk/glamor_revert.patch)
===================================================================
--- testing-x86_64/glamor_revert.patch	                        (rev 0)
+++ testing-x86_64/glamor_revert.patch	2019-03-07 20:36:08 UTC (rev 347427)
@@ -0,0 +1,32 @@
+From 274703087f80342f51fa69c935bb9a1cb0c4ae47 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer at amd.com>
+Date: Mon, 28 Jan 2019 18:06:50 +0100
+Subject: glamor: Avoid glamor_create_pixmap for pixmaps backing windows
+
+If the compositing manager uses direct rendering (as is usually the case
+these days), the storage of a pixmap allocated by glamor_create_pixmap
+needs to be reallocated for sharing it with the compositing manager.
+Instead, allocate pixmap storage which can be shared directly.
+
+(Ported from amdgpu commit bf326f2ea19daa6c8da23d6788ff301ae70b8e69)
+---
+ src/radeon_glamor.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
+index f109838..3e676f2 100644
+--- a/src/radeon_glamor.c
++++ b/src/radeon_glamor.c
+@@ -238,7 +238,7 @@ radeon_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
+ 		if (info->shadow_primary) {
+ 			if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP)
+ 				return fbCreatePixmap(screen, w, h, depth, usage);
+-		} else {
++		} else if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP) {
+ 			pixmap = glamor_create_pixmap(screen, w, h, depth, usage);
+ 			if (pixmap)
+ 			    return pixmap;
+-- 
+cgit v1.1
+
+



More information about the arch-commits mailing list