[arch-commits] Commit in lib32-mesa/trunk (2 files)

2020-05-28 Thread Laurent Carlier via arch-commits
Date: Thursday, May 28, 2020 @ 07:17:25
  Author: lcarlier
Revision: 636139

upgpkg: lib32-mesa 20.1.0-1: upstream update 2.1.0

Modified:
  lib32-mesa/trunk/PKGBUILD
Deleted:
  
lib32-mesa/trunk/0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch

-+
 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch |   53 
--
 PKGBUILD|   17 ---
 2 files changed, 4 insertions(+), 66 deletions(-)

Deleted: 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch
===
--- 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch 
2020-05-28 07:05:46 UTC (rev 636138)
+++ 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch 
2020-05-28 07:17:25 UTC (rev 636139)
@@ -1,53 +0,0 @@
-From 979ae78318c3e37cc0e0579b8d1f05c46bb76e7d Mon Sep 17 00:00:00 2001
-From: Danylo Piliaiev 
-Date: Tue, 19 May 2020 20:35:49 +0300
-Subject: [PATCH] meson: Disable GCC's dead store elimination for memory
- zeroing custom new
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Some classes use custom new operator which zeroes memory, however gcc does
-aggressive dead-store elimination which threats all writes to the memory
-before the constructor as "dead stores".
-
-For now we disable this optimization.
-
-The new operators in question are declared via:
- DECLARE_RZALLOC_CXX_OPERATORS
- DECLARE_LINEAR_ZALLOC_CXX_OPERATORS
-
-The issue was found with lto builds, however there is no guarantee that
-it didn't happen with ordinary ones.
-
-CC: 
-Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977
-Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1358
-Signed-off-by: Danylo Piliaiev 
-Reviewed-by: Marek Olšák 
-Part-of: 
-(cherry picked from commit 5500a2b7fc558217bbd4c2a966ab6fcadaed8b3b)
-Signed-off-by: Laurent Carlier 

- meson.build   | 5 +
- 1 files changed, 5 insertions(+), 0 deletion(-)
-
-diff --git a/meson.build b/meson.build
-index ba4fdb2a59f..434684c8bcc 100644
 a/meson.build
-+++ b/meson.build
-@@ -980,6 +980,11 @@ else
- '-fno-math-errno',
- '-fno-trapping-math',
- '-Qunused-arguments',
-+# Some classes use custom new operator which zeroes memory, however
-+# gcc does aggressive dead-store elimination which threats all writes
-+# to the memory before the constructor as "dead stores".
-+# For now we disable this optimization.
-+'-flifetime-dse=1',
-   ]
-   # MinGW chokes on format specifiers and I can't get it all working
-   if not (cc.get_id() == 'gcc' and host_machine.system() == 'windows')
--- 
-2.26.2
-

Modified: PKGBUILD
===
--- PKGBUILD2020-05-28 07:05:46 UTC (rev 636138)
+++ PKGBUILD2020-05-28 07:17:25 UTC (rev 636139)
@@ -4,8 +4,8 @@
 
 pkgbase=lib32-mesa
 pkgname=('lib32-opencl-mesa' 'lib32-vulkan-intel' 'lib32-vulkan-radeon' 
'lib32-libva-mesa-driver' 'lib32-mesa-vdpau' 'lib32-mesa')
-pkgver=20.0.7
-pkgrel=3
+pkgver=20.1.0
+pkgrel=1
 arch=('x86_64')
 makedepends=('python-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'xorgproto' 'lib32-libdrm'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -14,12 +14,10 @@
 url="http://mesa3d.sourceforge.net;
 license=('custom')
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
-   0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch
 LICENSE
 crossfile.ini)
-sha512sums=('00baae50f14bf2b08b5654dffb11cf67499dc1825e1700b137fb5719e767e0e78e789979df2c194f677ea9c5e531f34965d47b9e37c239944c38d0570c7a9685'
+sha512sums=('f49230d18febe1bfd7c6282ab95fc244530f5cef56df0f804d8bece8a70bafcb445b8b83df96ad1b4c5af022c4e39a71f19a8f7e47b1fb09ada2b1a1317ff3be'
 'SKIP'
-
'566ad6f4195124b4af05d4bba1e01cc5e9ac466f11ddd900a2f5bfd830aa19cdccb3f9625901340b5fe62e7d8ea50aa336ab5031a658fe90916d847b2e9946e0'
 
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7'
 
'c7dbb390ebde291c517a854fcbe5166c24e95206f768cc9458ca896b2253aabd6df12a7becf831998721b2d622d0c02afdd8d519e77dea8e1d6807b35f0166fe')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D'  # Emil Velikov 

@@ -27,15 +25,8 @@
   'E3E8F480C52ADD73B278EE78E1ECBE07D7D70895'  # Juan Antonio 
Suárez Romero (Igalia, S.L.) "
   'A5CC9FEC93F2F837CB044912336909B6B25FADFA'  # Juan A. Suarez 
Romero 
   '71C4B75620BC75708B4BDB254C95FAAB3EB073EC'  # Dylan Baker 

-  '57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom 

+  

[arch-commits] Commit in lib32-mesa/trunk (2 files)

2020-05-22 Thread Laurent Carlier via arch-commits
Date: Friday, May 22, 2020 @ 14:17:26
  Author: lcarlier
Revision: 631579

upgpkg: lib32-mesa 20.0.7-3: reenable LTO with upstream patch (FS#6)

Added:
  
lib32-mesa/trunk/0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch
Modified:
  lib32-mesa/trunk/PKGBUILD

-+
 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch |   53 
++
 PKGBUILD|   13 ++
 2 files changed, 64 insertions(+), 2 deletions(-)

Added: 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch
===
--- 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch 
(rev 0)
+++ 0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch 
2020-05-22 14:17:26 UTC (rev 631579)
@@ -0,0 +1,53 @@
+From 979ae78318c3e37cc0e0579b8d1f05c46bb76e7d Mon Sep 17 00:00:00 2001
+From: Danylo Piliaiev 
+Date: Tue, 19 May 2020 20:35:49 +0300
+Subject: [PATCH] meson: Disable GCC's dead store elimination for memory
+ zeroing custom new
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Some classes use custom new operator which zeroes memory, however gcc does
+aggressive dead-store elimination which threats all writes to the memory
+before the constructor as "dead stores".
+
+For now we disable this optimization.
+
+The new operators in question are declared via:
+ DECLARE_RZALLOC_CXX_OPERATORS
+ DECLARE_LINEAR_ZALLOC_CXX_OPERATORS
+
+The issue was found with lto builds, however there is no guarantee that
+it didn't happen with ordinary ones.
+
+CC: 
+Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977
+Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1358
+Signed-off-by: Danylo Piliaiev 
+Reviewed-by: Marek Olšák 
+Part-of: 
+(cherry picked from commit 5500a2b7fc558217bbd4c2a966ab6fcadaed8b3b)
+Signed-off-by: Laurent Carlier 
+---
+ meson.build   | 5 +
+ 1 files changed, 5 insertions(+), 0 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index ba4fdb2a59f..434684c8bcc 100644
+--- a/meson.build
 b/meson.build
+@@ -980,6 +980,11 @@ else
+ '-fno-math-errno',
+ '-fno-trapping-math',
+ '-Qunused-arguments',
++# Some classes use custom new operator which zeroes memory, however
++# gcc does aggressive dead-store elimination which threats all writes
++# to the memory before the constructor as "dead stores".
++# For now we disable this optimization.
++'-flifetime-dse=1',
+   ]
+   # MinGW chokes on format specifiers and I can't get it all working
+   if not (cc.get_id() == 'gcc' and host_machine.system() == 'windows')
+-- 
+2.26.2
+

Modified: PKGBUILD
===
--- PKGBUILD2020-05-22 14:17:14 UTC (rev 631578)
+++ PKGBUILD2020-05-22 14:17:26 UTC (rev 631579)
@@ -5,7 +5,7 @@
 pkgbase=lib32-mesa
 pkgname=('lib32-opencl-mesa' 'lib32-vulkan-intel' 'lib32-vulkan-radeon' 
'lib32-libva-mesa-driver' 'lib32-mesa-vdpau' 'lib32-mesa')
 pkgver=20.0.7
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
 makedepends=('python-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'xorgproto' 'lib32-libdrm'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -14,10 +14,12 @@
 url="http://mesa3d.sourceforge.net;
 license=('custom')
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
+   0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch
 LICENSE
 crossfile.ini)
 
sha512sums=('00baae50f14bf2b08b5654dffb11cf67499dc1825e1700b137fb5719e767e0e78e789979df2c194f677ea9c5e531f34965d47b9e37c239944c38d0570c7a9685'
 'SKIP'
+
'566ad6f4195124b4af05d4bba1e01cc5e9ac466f11ddd900a2f5bfd830aa19cdccb3f9625901340b5fe62e7d8ea50aa336ab5031a658fe90916d847b2e9946e0'
 
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7'
 
'c7dbb390ebde291c517a854fcbe5166c24e95206f768cc9458ca896b2253aabd6df12a7becf831998721b2d622d0c02afdd8d519e77dea8e1d6807b35f0166fe')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D'  # Emil Velikov 

@@ -27,6 +29,13 @@
   '71C4B75620BC75708B4BDB254C95FAAB3EB073EC'  # Dylan Baker 

   '57551DE15B968F6341C248F68D8E31AFC32428A6') # Eric Engestrom 

 
+prepare() {
+  cd mesa-$pkgver
+
+  # LTO fix
+  patch -Np1 -i 
../0001-meson-Disable-GCC-s-dead-store-elimination-for-memor.patch
+}
+
 build() {
   export CC="gcc -m32"
   export CXX="g++ -m32"
@@ -35,7 +44,7 @@
   arch-meson mesa-$pkgver build \
 --native-file crossfile.ini \
 --libdir=/usr/lib32 \
--D b_lto=false \
+-D b_lto=true \
 -D 

[arch-commits] Commit in lib32-mesa/trunk (2 files)

2019-10-02 Thread Laurent Carlier via arch-commits
Date: Wednesday, October 2, 2019 @ 16:42:07
  Author: lcarlier
Revision: 512432

upgpkg: lib32-mesa 19.2.0-2

fix FS#63945

Added:
  lib32-mesa/trunk/intel-topology-query-fix-old-gens.patch
Modified:
  lib32-mesa/trunk/PKGBUILD

-+
 PKGBUILD|   11 ++--
 intel-topology-query-fix-old-gens.patch |   39 ++
 2 files changed, 47 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-02 15:01:32 UTC (rev 512431)
+++ PKGBUILD2019-10-02 16:42:07 UTC (rev 512432)
@@ -5,7 +5,7 @@
 pkgbase=lib32-mesa
 pkgname=('lib32-vulkan-intel' 'lib32-vulkan-radeon' 'lib32-libva-mesa-driver' 
'lib32-mesa-vdpau' 'lib32-mesa')
 pkgver=19.2.0
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 makedepends=('python-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -14,11 +14,13 @@
 license=('custom')
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
 LICENSE
-glvnd.patch)
+glvnd.patch
+   intel-topology-query-fix-old-gens.patch)
 
sha512sums=('7278bbfba9c29fe91d1959ff1a48422e917db85287460523d12ae8c6d7f49f76e9636bf4c0d8d7d89e5569b3c67135f1b23b8f6c9d52d39413d8ec22e3bb40f0'
 'SKIP'
 
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7'
-
'3e5746dcd493bff3f04b26de6168b15d0f161de62c1c6657106b61cbb1ad4925cbf3a691d5055491e759f88dbe0362dc909e7d726f87528980662f26ceb6dcbc')
+
'3e5746dcd493bff3f04b26de6168b15d0f161de62c1c6657106b61cbb1ad4925cbf3a691d5055491e759f88dbe0362dc909e7d726f87528980662f26ceb6dcbc'
+
'a5e2ccef20edc81859255c66cb838c5244774d9d6c56dcfce2e462b6ddaa66ef7847242b050402305621c9c9e706629af30dd27c8466b6bd32d1be40cb3e53a0')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D'  # Emil Velikov 

   '946D09B5E4C9845E63075FF1D961C596A7203456'  # Andres Gomez 

   'E3E8F480C52ADD73B278EE78E1ECBE07D7D70895'  # Juan Antonio 
Suárez Romero (Igalia, S.L.) "
@@ -28,7 +30,10 @@
 prepare() {
   cd mesa-${pkgver}
 
+  # libglvnd-1.2.0 support
   patch -Np1 -i ${srcdir}/glvnd.patch
+  # Fix FS#63945
+  patch -Np1 -i ${srcdir}/intel-topology-query-fix-old-gens.patch
 }
 
 build() {

Added: intel-topology-query-fix-old-gens.patch
===
--- intel-topology-query-fix-old-gens.patch (rev 0)
+++ intel-topology-query-fix-old-gens.patch 2019-10-02 16:42:07 UTC (rev 
512432)
@@ -0,0 +1,39 @@
+From 712268730ec05897a6add995444123ac2af54382 Mon Sep 17 00:00:00 2001
+From: Lionel Landwerlin 
+Date: Wed, 2 Oct 2019 17:13:06 +0300
+Subject: [PATCH] intel: fix topology query
+
+i915 will report ENODEV on generations prior to Haswell because there
+is no point in reporting values on those. This is prior any fusing
+could happen on parts with identical PCI ids.
+
+This query call was previously only triggered on generation that
+support performance queries, which happens to match generation for
+which i915 reports topology, but the commit pointed below started
+using it on all generations.
+
+Signed-off-by: Lionel Landwerlin 
+Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1860
+Cc: 
+Fixes: 96e1c945f2 ("i965: Move device info initialization to common code")
+---
+ src/intel/dev/gen_device_info.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
+index 3953a1f4af3..85fa978f9c1 100644
+--- a/src/intel/dev/gen_device_info.c
 b/src/intel/dev/gen_device_info.c
+@@ -1320,6 +1320,9 @@ query_topology(struct gen_device_info *devinfo, int fd)
+if (gen_ioctl(fd, DRM_IOCTL_I915_QUERY, ))
+   return false;
+ 
++   if (item.length < 0)
++  return false;
++
+struct drm_i915_query_topology_info *topo_info =
+   (struct drm_i915_query_topology_info *) calloc(1, item.length);
+item.data_ptr = (uintptr_t) topo_info;
+-- 
+2.22.0
+


[arch-commits] Commit in lib32-mesa/trunk (2 files)

2018-05-13 Thread Laurent Carlier via arch-commits
Date: Sunday, May 13, 2018 @ 16:17:56
  Author: lcarlier
Revision: 321608

upgpkg: lib32-mesa 18.0.3-2

fix FS#58549

Added:
  
lib32-mesa/trunk/0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch
Modified:
  lib32-mesa/trunk/PKGBUILD

+
 0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch 
|   14 ++
 PKGBUILD   
|9 +-
 2 files changed, 22 insertions(+), 1 deletion(-)

Added: 
0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch
===
--- 
0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch  
(rev 0)
+++ 
0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch  
2018-05-13 16:17:56 UTC (rev 321608)
@@ -0,0 +1,14 @@
+diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
+index 6bb11c4..7bd79af 100644
+--- a/src/loader/loader_dri3_helper.c
 b/src/loader/loader_dri3_helper.c
+@@ -234,6 +234,9 @@ loader_dri3_drawable_fini(struct loader_dri3_drawable 
*draw)
+ {
+int i;
+ 
++   if (draw->special_event)
++  loader_dri3_swapbuffer_barrier(draw);
++
+draw->ext->core->destroyDrawable(draw->dri_drawable);
+ 
+for (i = 0; i < ARRAY_SIZE(draw->buffers); i++) {

Modified: PKGBUILD
===
--- PKGBUILD2018-05-13 14:28:03 UTC (rev 321607)
+++ PKGBUILD2018-05-13 16:17:56 UTC (rev 321608)
@@ -6,7 +6,7 @@
 pkgbase=lib32-mesa
 pkgname=('lib32-vulkan-intel' 'lib32-vulkan-radeon' 'lib32-libva-mesa-driver' 
'lib32-mesa-vdpau' 'lib32-mesa')
 pkgver=18.0.3
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -16,6 +16,7 @@
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
 LICENSE
 0001-glvnd-fix-gl-dot-pc.patch
+
0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch
 0004-meson-Add-library-versions-to-swr-drivers.patch
 0005-meson-Version-libMesaOpenCL-like-autotools-does.patch)
 
sha512sums=('decd050bab049d17bcde3f832d4da0ffdb80f147c99377a162739bbe72fd6fd32b51e56e6fc66895b8c30fc19a1815bae164b21aa557816c3998ad18c1ffca2d'
@@ -22,6 +23,7 @@
 'SKIP'
 
'f9f0d0ccf166fe6cb684478b6f1e1ab1f2850431c06aa041738563eb1808a004e52cdec823c103c9e180f03ffc083e95974d291353f0220fe52ae6d4897fecc7'
 
'75849eca72ca9d01c648d5ea4f6371f1b8737ca35b14be179e14c73cc51dca0739c43cdc228a6d464135f4791bcdc21734e2debecd29d57023c8c088b028'
+
'19b980db37675732d28978318074ca172ef862de7fdcae2c82ef16dc411c709c8598b044a828e7e260d86d23f644485abcc6a0aaf5e04b9c05dce22d0c7e3716'
 
'0f5da6e48885713c7ddef9e5715e178e0a499bcb622d7f19e15b9e4b4647331d7bf14829218b6ab80f17bae90fd95b8df6a0a81203d8081686805ca5329531ff'
 
'd3c01f61a0a0cc2f01e66e0126ad8b6386d4a53c1dc1b3b134800e4cd25507e458bac860cbed10cf4b46b04e8d50aba233870587b89c058fffd57436b48289bf')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D'  # Emil Velikov 

@@ -35,6 +37,11 @@
   # non-upstreamed ones
   patch -Np1 -i ../0001-glvnd-fix-gl-dot-pc.patch
 
+  # experimental patch, should fix FS#58549
+  # see https://bugs.freedesktop.org/show_bug.cgi?id=106351
+  # and https://patchwork.freedesktop.org/series/42687/
+  patch -Np1 -i 
../0002-loader_dri3-Wait-for-pending-swaps-to-complete-before-drawable_fini.patch
+
   # Upstreamed meson fixes
   patch -Np1 -i ../0004-meson-Add-library-versions-to-swr-drivers.patch
   patch -Np1 -i ../0005-meson-Version-libMesaOpenCL-like-autotools-does.patch


[arch-commits] Commit in lib32-mesa/trunk (2 files)

2018-01-19 Thread Laurent Carlier via arch-commits
Date: Friday, January 19, 2018 @ 12:26:25
  Author: lcarlier
Revision: 284167

upgpkg: lib32-mesa 17.3.3-1

upstream update 17.3.3

Modified:
  lib32-mesa/trunk/PKGBUILD
Deleted:
  lib32-mesa/trunk/0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch

---+
 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch |   74 
 PKGBUILD  |   11 -
 2 files changed, 3 insertions(+), 82 deletions(-)

Deleted: 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch
===
--- 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch   2018-01-19 
11:14:13 UTC (rev 284166)
+++ 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch   2018-01-19 
12:26:25 UTC (rev 284167)
@@ -1,74 +0,0 @@
-From 897c54d522ab960a879b763a15e489f630c491ee Mon Sep 17 00:00:00 2001
-From: Thomas Hellstrom 
-Date: Thu, 11 Jan 2018 10:19:23 +0100
-Subject: [PATCH] loader/dri3: Avoid freeing renderbuffers in use
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Upon reception of an event that lowered the number of active back buffers,
-the code would immediately try to free all back buffers with an id equal to or
-higher than the new number of active back buffers.
-
-However, that could lead to an active or to-be-active back buffer being freed,
-since the old number of back buffers was used when obtaining an idle back
-buffer for use.
-
-This lead to crashes when lowering the number of active back buffers by
-transitioning from page-flipping to non-page-flipping presents.
-
-Fix this by computing the number of active back buffers only when trying to
-obtain a new back buffer.
-
-Fixes: 15e208c4cc ("loader/dri3: Don't accidently free buffer holding new back 
content")
-Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104214
-Cc: "17.3" 
-Tested-by: Andriy.Khulap 
-Tested-by: Vadym Shovkoplias 
-Reviewed-by: Michel Dänzer 
-Signed-off-by: Thomas Hellstrom 

- src/loader/loader_dri3_helper.c | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
-index cc890bc923..8f8efcb646 100644
 a/src/loader/loader_dri3_helper.c
-+++ b/src/loader/loader_dri3_helper.c
-@@ -205,7 +205,6 @@ void
- loader_dri3_set_swap_interval(struct loader_dri3_drawable *draw, int interval)
- {
-draw->swap_interval = interval;
--   dri3_update_num_back(draw);
- }
- 
- /** dri3_free_render_buffer
-@@ -377,7 +376,6 @@ dri3_handle_present_event(struct loader_dri3_drawable 
*draw,
- draw->flipping = false;
- break;
-  }
-- dri3_update_num_back(draw);
- 
-  if (draw->vtable->show_fps)
- draw->vtable->show_fps(draw, ce->ust);
-@@ -402,7 +400,8 @@ dri3_handle_present_event(struct loader_dri3_drawable 
*draw,
- buf->busy = 0;
- 
-  if (buf && draw->num_back <= b && b < LOADER_DRI3_MAX_BACK &&
-- draw->cur_blit_source != b) {
-+ draw->cur_blit_source != b &&
-+ !buf->busy) {
- dri3_free_render_buffer(draw, buf);
- draw->buffers[b] = NULL;
-  }
-@@ -537,6 +536,7 @@ dri3_find_back(struct loader_dri3_drawable *draw)
-/* Check whether we need to reuse the current back buffer as new back.
- * In that case, wait until it's not busy anymore.
- */
-+   dri3_update_num_back(draw);
-num_to_consider = draw->num_back;
-if (!loader_dri3_have_image_blit(draw) && draw->cur_blit_source != -1) {
-   num_to_consider = 1;
--- 
-2.15.1
-

Modified: PKGBUILD
===
--- PKGBUILD2018-01-19 11:14:13 UTC (rev 284166)
+++ PKGBUILD2018-01-19 12:26:25 UTC (rev 284167)
@@ -5,8 +5,8 @@
 
 pkgbase=lib32-mesa
 pkgname=('lib32-vulkan-intel' 'lib32-vulkan-radeon' 'lib32-libva-mesa-driver' 
'lib32-mesa-vdpau' 'lib32-mesa')
-pkgver=17.3.2
-pkgrel=2
+pkgver=17.3.3
+pkgrel=1
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -15,12 +15,10 @@
 license=('custom')
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
LICENSE
-   0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch
 0002-glvnd-fix-gl-dot-pc.patch)
-sha256sums=('e2844a13f2d6f8f24bee65804a51c42d8dc6ae9c36cff7ee61d0940e796d64c6'
+sha256sums=('41bac5de0ef6adc1f41a1ec0f80c19e361298ce02fa81b5f9ba4fdca33a9379b'
 'SKIP'
 

[arch-commits] Commit in lib32-mesa/trunk (2 files)

2018-01-12 Thread Evangelos Foutras via arch-commits
Date: Friday, January 12, 2018 @ 18:57:55
  Author: foutrelis
Revision: 281689

upgpkg: lib32-mesa 17.3.2-2

Fix opengl crashes caused by incorrect buffer freeing (FS#56944).

Added:
  lib32-mesa/trunk/0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch
Modified:
  lib32-mesa/trunk/PKGBUILD

---+
 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch |   74 
 PKGBUILD  |7 -
 2 files changed, 80 insertions(+), 1 deletion(-)

Added: 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch
===
--- 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch   
(rev 0)
+++ 0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch   2018-01-12 
18:57:55 UTC (rev 281689)
@@ -0,0 +1,74 @@
+From 897c54d522ab960a879b763a15e489f630c491ee Mon Sep 17 00:00:00 2001
+From: Thomas Hellstrom 
+Date: Thu, 11 Jan 2018 10:19:23 +0100
+Subject: [PATCH] loader/dri3: Avoid freeing renderbuffers in use
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upon reception of an event that lowered the number of active back buffers,
+the code would immediately try to free all back buffers with an id equal to or
+higher than the new number of active back buffers.
+
+However, that could lead to an active or to-be-active back buffer being freed,
+since the old number of back buffers was used when obtaining an idle back
+buffer for use.
+
+This lead to crashes when lowering the number of active back buffers by
+transitioning from page-flipping to non-page-flipping presents.
+
+Fix this by computing the number of active back buffers only when trying to
+obtain a new back buffer.
+
+Fixes: 15e208c4cc ("loader/dri3: Don't accidently free buffer holding new back 
content")
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104214
+Cc: "17.3" 
+Tested-by: Andriy.Khulap 
+Tested-by: Vadym Shovkoplias 
+Reviewed-by: Michel Dänzer 
+Signed-off-by: Thomas Hellstrom 
+---
+ src/loader/loader_dri3_helper.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
+index cc890bc923..8f8efcb646 100644
+--- a/src/loader/loader_dri3_helper.c
 b/src/loader/loader_dri3_helper.c
+@@ -205,7 +205,6 @@ void
+ loader_dri3_set_swap_interval(struct loader_dri3_drawable *draw, int interval)
+ {
+draw->swap_interval = interval;
+-   dri3_update_num_back(draw);
+ }
+ 
+ /** dri3_free_render_buffer
+@@ -377,7 +376,6 @@ dri3_handle_present_event(struct loader_dri3_drawable 
*draw,
+ draw->flipping = false;
+ break;
+  }
+- dri3_update_num_back(draw);
+ 
+  if (draw->vtable->show_fps)
+ draw->vtable->show_fps(draw, ce->ust);
+@@ -402,7 +400,8 @@ dri3_handle_present_event(struct loader_dri3_drawable 
*draw,
+ buf->busy = 0;
+ 
+  if (buf && draw->num_back <= b && b < LOADER_DRI3_MAX_BACK &&
+- draw->cur_blit_source != b) {
++ draw->cur_blit_source != b &&
++ !buf->busy) {
+ dri3_free_render_buffer(draw, buf);
+ draw->buffers[b] = NULL;
+  }
+@@ -537,6 +536,7 @@ dri3_find_back(struct loader_dri3_drawable *draw)
+/* Check whether we need to reuse the current back buffer as new back.
+ * In that case, wait until it's not busy anymore.
+ */
++   dri3_update_num_back(draw);
+num_to_consider = draw->num_back;
+if (!loader_dri3_have_image_blit(draw) && draw->cur_blit_source != -1) {
+   num_to_consider = 1;
+-- 
+2.15.1
+

Modified: PKGBUILD
===
--- PKGBUILD2018-01-12 18:57:10 UTC (rev 281688)
+++ PKGBUILD2018-01-12 18:57:55 UTC (rev 281689)
@@ -6,7 +6,7 @@
 pkgbase=lib32-mesa
 pkgname=('lib32-vulkan-intel' 'lib32-vulkan-radeon' 'lib32-libva-mesa-driver' 
'lib32-mesa-vdpau' 'lib32-mesa')
 pkgver=17.3.2
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -15,10 +15,12 @@
 license=('custom')
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
LICENSE
+   0001-loader-dri3-Avoid-freeing-renderbuffers-in-use.patch
 0002-glvnd-fix-gl-dot-pc.patch)
 sha256sums=('e2844a13f2d6f8f24bee65804a51c42d8dc6ae9c36cff7ee61d0940e796d64c6'
 'SKIP'
 

[arch-commits] Commit in lib32-mesa/trunk (2 files)

2017-10-19 Thread Laurent Carlier
Date: Thursday, October 19, 2017 @ 16:40:08
  Author: lcarlier
Revision: 263633

upgpkg: lib32-mesa 17.2.3-1

upstream update 17.2.3

Modified:
  lib32-mesa/trunk/PKGBUILD
Deleted:
  
lib32-mesa/trunk/swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch

+
 PKGBUILD   |   13 ++---
 swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch |   14 
--
 2 files changed, 4 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-10-19 16:32:56 UTC (rev 263632)
+++ PKGBUILD2017-10-19 16:40:08 UTC (rev 263633)
@@ -5,7 +5,7 @@
 
 pkgbase=lib32-mesa
 pkgname=('lib32-vulkan-intel' 'lib32-vulkan-radeon' 'lib32-libva-mesa-driver' 
'lib32-mesa-vdpau' 'lib32-mesa')
-pkgver=17.2.2
+pkgver=17.2.3
 pkgrel=1
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
@@ -15,13 +15,11 @@
 license=('custom')
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
LICENSE
-0002-glvnd-fix-gl-dot-pc.patch
-swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch)
-sha256sums=('cf522244d6a5a1ecde3fc00e7c96935253fe22f808f064cab98be6f3faa65782'
+0002-glvnd-fix-gl-dot-pc.patch)
+sha256sums=('a0b0ec8f7b24dd044d7ab30a8c7e6d3767521e245f88d4ed5dd93315dc56f837'
 'SKIP'
 '7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2'
-'64a77944a28026b066c1682c7258d02289d257b24b6f173a9f7580c48beed966'
-'2dcbd3b311b18e473000fb496a93a4a7a4ae9f9413aace209c0ea4aebbba715b')
+'64a77944a28026b066c1682c7258d02289d257b24b6f173a9f7580c48beed966')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D') # Emil Velikov 

 validpgpkeys+=('946D09B5E4C9845E63075FF1D961C596A7203456') # "Andres Gomez 
"
 validpgpkeys+=('E3E8F480C52ADD73B278EE78E1ECBE07D7D70895') # Juan Antonio 
Suárez Romero (Igalia, S.L.) "
@@ -33,9 +31,6 @@
   # non-upstreamed ones
   patch -Np1 -i ../0002-glvnd-fix-gl-dot-pc.patch
 
-  # swr driver
-  patch -Np1 -i 
../swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
-
   autoreconf -fiv
 }
 

Deleted: swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
===
--- swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch  
2017-10-19 16:32:56 UTC (rev 263632)
+++ swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch  
2017-10-19 16:40:08 UTC (rev 263633)
@@ -1,14 +0,0 @@
-diff --git a/src/gallium/drivers/swr/rasterizer/core/utils.h 
b/src/gallium/drivers/swr/rasterizer/core/utils.h
-index b096d2120cb..3c849e82d3b 100644
 a/src/gallium/drivers/swr/rasterizer/core/utils.h
-+++ b/src/gallium/drivers/swr/rasterizer/core/utils.h
-@@ -365,7 +365,8 @@ static INLINE std::string GetEnv(const std::string& 
variableName)
- output.resize(valueSize - 1); // valueSize includes null, output.resize() 
does not
- GetEnvironmentVariableA(variableName.c_str(), [0], valueSize);
- #else
--output = getenv(variableName.c_str());
-+char *o = getenv(variableName.c_str());
-+output = o ? std::string(o) : std::string();
- #endif
- 
- return output;


[arch-commits] Commit in lib32-mesa/trunk (2 files)

2017-10-04 Thread Laurent Carlier
Date: Wednesday, October 4, 2017 @ 15:25:03
  Author: lcarlier
Revision: 261482

upgpkg: lib32-mesa 17.2.2-1

upstream update 17.2.2

Modified:
  lib32-mesa/trunk/PKGBUILD
Deleted:
  lib32-mesa/trunk/swr-rast-remove-llvm-fence-atomics-from-generated-files.patch

---+
 PKGBUILD  |   13 ++
 swr-rast-remove-llvm-fence-atomics-from-generated-files.patch |   19 --
 2 files changed, 5 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-10-04 15:24:46 UTC (rev 261481)
+++ PKGBUILD2017-10-04 15:25:03 UTC (rev 261482)
@@ -5,8 +5,8 @@
 
 pkgbase=lib32-mesa
 pkgname=('lib32-vulkan-intel' 'lib32-vulkan-radeon' 'lib32-libva-mesa-driver' 
'lib32-mesa-vdpau' 'lib32-mesa')
-pkgver=17.2.1
-pkgrel=2
+pkgver=17.2.2
+pkgrel=1
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-libelf' 'lib32-llvm' 'lib32-libvdpau'
@@ -16,14 +16,12 @@
 source=(https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz{,.sig}
LICENSE
 0002-glvnd-fix-gl-dot-pc.patch
-swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
-swr-rast-remove-llvm-fence-atomics-from-generated-files.patch)
-sha256sums=('77385d17827cff24a3bae134342234f2efe7f7f990e778109682571dbbc9ba1e'
+swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch)
+sha256sums=('cf522244d6a5a1ecde3fc00e7c96935253fe22f808f064cab98be6f3faa65782'
 'SKIP'
 '7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2'
 '64a77944a28026b066c1682c7258d02289d257b24b6f173a9f7580c48beed966'
-'2dcbd3b311b18e473000fb496a93a4a7a4ae9f9413aace209c0ea4aebbba715b'
-'a747e0046eab7bb9c73444549c9c63d078b11b756d2294ba9c7ee0612caf62db')
+'2dcbd3b311b18e473000fb496a93a4a7a4ae9f9413aace209c0ea4aebbba715b')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D') # Emil Velikov 

 validpgpkeys+=('946D09B5E4C9845E63075FF1D961C596A7203456') # "Andres Gomez 
"
 validpgpkeys+=('E3E8F480C52ADD73B278EE78E1ECBE07D7D70895') # Juan Antonio 
Suárez Romero (Igalia, S.L.) "
@@ -37,7 +35,6 @@
 
   # swr driver
   patch -Np1 -i 
../swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
-  patch -Np1 -i 
../swr-rast-remove-llvm-fence-atomics-from-generated-files.patch
 
   autoreconf -fiv
 }

Deleted: swr-rast-remove-llvm-fence-atomics-from-generated-files.patch
===
--- swr-rast-remove-llvm-fence-atomics-from-generated-files.patch   
2017-10-04 15:24:46 UTC (rev 261481)
+++ swr-rast-remove-llvm-fence-atomics-from-generated-files.patch   
2017-10-04 15:25:03 UTC (rev 261482)
@@ -1,19 +0,0 @@
-diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py 
b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
-index 025d38a..ce892a9 100644
 a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
-+++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
-@@ -140,6 +140,14 @@ def parse_ir_builder(input_file):
- 
- ignore = False
- 
-+# The following functions need to be ignored in openswr.
-+# API change in llvm-5.0 breaks baked autogen files
-+if (
-+(func_name == 'CreateFence' or
-+ func_name == 'CreateAtomicCmpXchg' or
-+ func_name == 'CreateAtomicRMW')):
-+ignore = True
-+
- # The following functions need to be ignored.
- if (func_name == 'CreateInsertNUWNSWBinOp' or
- func_name == 'CreateMaskedIntrinsic' or


[arch-commits] Commit in lib32-mesa/trunk (2 files)

2016-07-28 Thread Laurent Carlier
Date: Thursday, July 28, 2016 @ 14:40:01
  Author: lcarlier
Revision: 184558

upgpkg: lib32-mesa 12.0.1-4

add a fix for rendering issues in overlord games

Added:
  lib32-mesa/trunk/0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch
Modified:
  lib32-mesa/trunk/PKGBUILD

--+
 0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch |   17 +
 PKGBUILD |   10 +++---
 2 files changed, 24 insertions(+), 3 deletions(-)

Added: 0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch
===
--- 0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch
(rev 0)
+++ 0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch2016-07-28 14:40:01 UTC 
(rev 184558)
@@ -0,0 +1,17 @@
+diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp 
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+index 7564119..38e2c4a 100644
+--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
 b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+@@ -6058,7 +6058,11 @@ st_translate_program(
+   inputSemanticName[i], inputSemanticIndex[i],
+   interpMode[i], 0, interpLocation[i],
+   array_id, array_size);
+-i += array_size - 1;
++
++GLuint base_attr = inputSlotToAttr[i];
++while (i + 1 < numInputs &&
++   inputSlotToAttr[i + 1] < base_attr + array_size)
++   ++i;
+  }
+  else {
+ t->inputs[i] = ureg_DECL_fs_input_cyl_centroid(ureg,

Modified: PKGBUILD
===
--- PKGBUILD2016-07-28 13:41:25 UTC (rev 184557)
+++ PKGBUILD2016-07-28 14:40:01 UTC (rev 184558)
@@ -5,7 +5,7 @@
 pkgbase=lib32-mesa
 pkgname=('lib32-mesa-vdpau' 'lib32-mesa' 'lib32-mesa-libgl')
 pkgver=12.0.1
-pkgrel=3
+pkgrel=4
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
  'lib32-libxshmfence' 'lib32-libxxf86vm' 'lib32-libxdamage' 
'gcc-multilib' 'lib32-elfutils' 'lib32-llvm' 'lib32-systemd'
@@ -16,13 +16,15 @@
LICENSE
 remove-libpthread-stubs.patch
 0001-st-mesa-fix-reference-counting-bug-in-st_vdpau.patch
-0002-vl-dri3-fix-a-memory-leak-from-front-buffer.patch)
+0002-vl-dri3-fix-a-memory-leak-from-front-buffer.patch
+0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch)
 sha256sums=('bab24fb79f78c876073527f515ed871fc9c81d816f66c8a0b051d8d653896389'
 'SKIP'
 '7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2'
 'd82c329e89754266eb1538df29b94d33692a66e3b6882b2cee78f4d5aab4a39c'
 'ccc8ea7f4e38f2dc26fd29150929e943aac5bc9b56bd3eddec882c6ccd1d64a5'
-'f6c17257e96182ce51b85ef75cef4f6c205b00dfbf8fc1089cd77c4a3eda6981')
+'f6c17257e96182ce51b85ef75cef4f6c205b00dfbf8fc1089cd77c4a3eda6981'
+'c1b650d2b3512d5f8f463f1974a28ed6b88e7e1936c5cfe1034ab97696d1de14')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D') # Emil Velikov 

 
 prepare() {
@@ -34,6 +36,8 @@
   # fix memory leaks - merged upstream
   patch -Np1 -i ../0001-st-mesa-fix-reference-counting-bug-in-st_vdpau.patch
   patch -Np1 -i ../0002-vl-dri3-fix-a-memory-leak-from-front-buffer.patch
+  # fix rendering in overlord series games
+  patch -Np1 -i ../0001-Mesa-dev-st_glsl_to_tgsi-overlord-fix.patch
 
   autoreconf -fiv
 }


[arch-commits] Commit in lib32-mesa/trunk (2 files)

2015-10-26 Thread Laurent Carlier
Date: Monday, October 26, 2015 @ 09:08:49
  Author: lcarlier
Revision: 145002

upgpkg: lib32-mesa 11.0.4-1

upstream update 11.0.4

Modified:
  lib32-mesa/trunk/PKGBUILD
Deleted:
  lib32-mesa/trunk/0001-i965-Remove-early-release-of-DRI2-miptree.patch

--+
 0001-i965-Remove-early-release-of-DRI2-miptree.patch |   33 -
 PKGBUILD |   13 ++
 2 files changed, 4 insertions(+), 42 deletions(-)

Deleted: 0001-i965-Remove-early-release-of-DRI2-miptree.patch
===
--- 0001-i965-Remove-early-release-of-DRI2-miptree.patch2015-10-26 
07:30:11 UTC (rev 145001)
+++ 0001-i965-Remove-early-release-of-DRI2-miptree.patch2015-10-26 
08:08:49 UTC (rev 145002)
@@ -1,33 +0,0 @@
-From e2a696a4cd93c2dbe445243de48ed478fbdb8009 Mon Sep 17 00:00:00 2001
-From: Chris Wilson 
-Date: Fri, 10 Jul 2015 10:41:35 +0100
-Subject: [PATCH] i965: Remove early release of DRI2 miptree
-
-intel_update_winsys_renderbuffer_miptree() will release the existing
-miptree when wrapping a new DRI2 buffer, so we can remove the early
-release and so prevent a NULL mt dereference should importing the new
-DRI2 name fail for any reason. (Reusing the old DRI2 name will result
-in the rendering going astray, to a stale buffer, and not shown on the
-screen, but it allows us to issue a warning and not crash much later in
-innocent code.)
-
-Signed-off-by: Chris Wilson 

- src/mesa/drivers/dri/i965/brw_context.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/src/mesa/drivers/dri/i965/brw_context.c 
b/src/mesa/drivers/dri/i965/brw_context.c
-index e8d1396..72f3897 100644
 a/src/mesa/drivers/dri/i965/brw_context.c
-+++ b/src/mesa/drivers/dri/i965/brw_context.c
-@@ -1388,7 +1388,6 @@ intel_process_dri2_buffer(struct brw_context *brw,
-   buffer->cpp, buffer->pitch);
-}
- 
--   intel_miptree_release(>mt);
-bo = drm_intel_bo_gem_create_from_name(brw->bufmgr, buffer_name,
-   buffer->name);
-if (!bo) {
--- 
-2.5.0
-

Modified: PKGBUILD
===
--- PKGBUILD2015-10-26 07:30:11 UTC (rev 145001)
+++ PKGBUILD2015-10-26 08:08:49 UTC (rev 145002)
@@ -4,7 +4,7 @@
 
 pkgbase=lib32-mesa
 pkgname=('lib32-mesa-vdpau' 'lib32-mesa' 'lib32-mesa-libgl')
-pkgver=11.0.3
+pkgver=11.0.4
 pkgrel=1
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
@@ -13,20 +13,15 @@
 url="http://mesa3d.sourceforge.net;
 license=('custom')
 
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/mesa-${pkgver}.tar.xz{,.sig}
-   LICENSE
-0001-i965-Remove-early-release-of-DRI2-miptree.patch)
-sha256sums=('ab2992eece21adc23c398720ef8c6933cb69ea42e1b2611dc09d031e17e033d6'
+   LICENSE)
+sha256sums=('40201bf7fc6fa12a6d9edfe870b41eb4dd6669154e3c42c48a96f70805f5483d'
 'SKIP'
-'7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2'
-'a3f520ea13c923841c646a5b1627927744938ff691aa08e1aeaf14cce12bd1f7')
+'7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D') # Emil Velikov 

 
 prepare() {
   cd ${srcdir}/?esa-*
 
-  # Should fix FS#45750, tested by heftig - Not merged upstream
-  patch -Np1 -i ../0001-i965-Remove-early-release-of-DRI2-miptree.patch
-
   # Fix detection of libLLVM when built with CMake
   sed -i 's/LLVM_SO_NAME=.*/LLVM_SO_NAME=LLVM/' configure
 }


[arch-commits] Commit in lib32-mesa/trunk (2 files)

2015-08-12 Thread Laurent Carlier
Date: Wednesday, August 12, 2015 @ 23:31:26
  Author: lcarlier
Revision: 138290

upgpkg: lib32-mesa 10.6.4-1

upstream update 10.6.4

Added:
  lib32-mesa/trunk/0001-i965-Remove-early-release-of-DRI2-miptree.patch
Modified:
  lib32-mesa/trunk/PKGBUILD

--+
 0001-i965-Remove-early-release-of-DRI2-miptree.patch |   33 +
 PKGBUILD |   17 ++--
 2 files changed, 46 insertions(+), 4 deletions(-)

Added: 0001-i965-Remove-early-release-of-DRI2-miptree.patch
===
--- 0001-i965-Remove-early-release-of-DRI2-miptree.patch
(rev 0)
+++ 0001-i965-Remove-early-release-of-DRI2-miptree.patch2015-08-12 
21:31:26 UTC (rev 138290)
@@ -0,0 +1,33 @@
+From e2a696a4cd93c2dbe445243de48ed478fbdb8009 Mon Sep 17 00:00:00 2001
+From: Chris Wilson ch...@chris-wilson.co.uk
+Date: Fri, 10 Jul 2015 10:41:35 +0100
+Subject: [PATCH] i965: Remove early release of DRI2 miptree
+
+intel_update_winsys_renderbuffer_miptree() will release the existing
+miptree when wrapping a new DRI2 buffer, so we can remove the early
+release and so prevent a NULL mt dereference should importing the new
+DRI2 name fail for any reason. (Reusing the old DRI2 name will result
+in the rendering going astray, to a stale buffer, and not shown on the
+screen, but it allows us to issue a warning and not crash much later in
+innocent code.)
+
+Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk
+---
+ src/mesa/drivers/dri/i965/brw_context.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/mesa/drivers/dri/i965/brw_context.c 
b/src/mesa/drivers/dri/i965/brw_context.c
+index e8d1396..72f3897 100644
+--- a/src/mesa/drivers/dri/i965/brw_context.c
 b/src/mesa/drivers/dri/i965/brw_context.c
+@@ -1388,7 +1388,6 @@ intel_process_dri2_buffer(struct brw_context *brw,
+   buffer-cpp, buffer-pitch);
+}
+ 
+-   intel_miptree_release(rb-mt);
+bo = drm_intel_bo_gem_create_from_name(brw-bufmgr, buffer_name,
+   buffer-name);
+if (!bo) {
+-- 
+2.5.0
+

Modified: PKGBUILD
===
--- PKGBUILD2015-08-12 20:26:26 UTC (rev 138289)
+++ PKGBUILD2015-08-12 21:31:26 UTC (rev 138290)
@@ -4,7 +4,7 @@
 
 pkgbase=lib32-mesa
 pkgname=('lib32-mesa-vdpau' 'lib32-mesa' 'lib32-mesa-libgl')
-pkgver=10.6.3
+pkgver=10.6.4
 pkgrel=1
 arch=('x86_64')
 makedepends=('python2-mako' 'lib32-libxml2' 'lib32-expat' 'lib32-libx11' 
'glproto' 'lib32-libdrm' 'dri2proto' 'dri3proto' 'presentproto'
@@ -13,12 +13,21 @@
 url=http://mesa3d.sourceforge.net;
 license=('custom')
 
source=(ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/mesa-${pkgver}.tar.xz{,.sig}
-   LICENSE)
-sha256sums=('58592e07c350cd2e8969b73fa83048c657a39fe2f13f3b88f5e5818fe2e4676d'
+   LICENSE
+0001-i965-Remove-early-release-of-DRI2-miptree.patch)
+sha256sums=('8f5ac103f0f503de2f7a985b0df349bd4ecdfe7f51c714be146fa5a9a3c07b77'
 'SKIP'
-'7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2')
+'7fdc119cf53c8ca65396ea73f6d10af641ba41ea1dd2bd44a824726e01c8b3f2'
+'a3f520ea13c923841c646a5b1627927744938ff691aa08e1aeaf14cce12bd1f7')
 validpgpkeys=('8703B6700E7EE06D7A39B8D6EDAE37B02CEB490D') # Emil Velikov 
emil.l.veli...@gmail.com
 
+prepare() {
+  cd ${srcdir}/?esa-*
+
+  # Should fix FS#45750, tested by heftig - Not merged upstream
+  patch -Np1 -i ../0001-i965-Remove-early-release-of-DRI2-miptree.patch
+}
+
 build() {
   export CC=gcc -m32
   export CXX=g++ -m32