Date: Thursday, March 7, 2019 @ 20:35:55
  Author: andyrtr
Revision: 347426

upgpkg: xf86-video-ati 1:19.0.0-2

fix some glitches caused by a glamor acceleration change

Added:
  xf86-video-ati/trunk/glamor_revert.patch
Modified:
  xf86-video-ati/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   14 +++++++++++---
 glamor_revert.patch |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-03-07 15:18:21 UTC (rev 347425)
+++ PKGBUILD    2019-03-07 20:35:55 UTC (rev 347426)
@@ -3,7 +3,7 @@
 
 pkgname=xf86-video-ati
 pkgver=19.0.0
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="X.org ati video driver"
 arch=('x86_64')
@@ -13,11 +13,19 @@
 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})
+source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig}
+        glamor_revert.patch)
 
sha512sums=('0674c8befa926fd3b431ce80d90f2cd0de17314efe7fd3a5ed0d78018d6cd32625b514bf68436a47eb15e5ad4b50317f3c09fd687b77e69a067d1210ee459827'
-            'SKIP')
+            'SKIP'
+            
'08b121e165f20c994648100077a5477a164d48de7a7c5656da5268b97e5e3f454d359c1bee046bbf7ab5ac9c281db7a091fb12662b30a9d498c05c4d1b019e7b')
 validpgpkeys=('B09FAF35BE914521980951145A81AF8E6ADBB200') # Michel Daenzer 
<mic...@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}
 

Added: glamor_revert.patch
===================================================================
--- glamor_revert.patch                         (rev 0)
+++ glamor_revert.patch 2019-03-07 20:35:55 UTC (rev 347426)
@@ -0,0 +1,32 @@
+From 274703087f80342f51fa69c935bb9a1cb0c4ae47 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daen...@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
+
+

Reply via email to