Github messages for voidlinux
 help / color / mirror / Atom feed
From: zlice <zlice@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] mesa: update to 22.2.0.
Date: Tue, 04 Oct 2022 22:44:26 +0200	[thread overview]
Message-ID: <20221004204426.ZxGVEk62TQf0Fl_EQm2BPa75KbMP3VkRA0K8dqSee6c@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39722@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

There is an updated pull request by zlice against master on the void-packages repository

https://github.com/zlice/void-packages mesa_22.2.0
https://github.com/void-linux/void-packages/pull/39722

mesa: update to 22.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture **x86_64**


A patch file from https://github.com/void-linux/void-packages/pull/39722.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa_22.2.0-39722.patch --]
[-- Type: text/x-diff, Size: 7335 bytes --]

From 00082c3dfdfa235fb564e198ef3a7562b32b5e55 Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Tue, 4 Oct 2022 15:47:21 -0400
Subject: [PATCH] mesa: update to 22.2.0.

---
 ...ch64-force-persistent-buffers-to-GTT.patch | 39 -------------------
 ...se-elf-tls.patch => add-elf-use-tls.patch} | 28 ++++++-------
 .../mesa/patches/megadriver-symlinks.patch    | 25 ------------
 srcpkgs/mesa/patches/musl-stacksize.patch     | 12 +++---
 srcpkgs/mesa/template                         |  4 +-
 5 files changed, 21 insertions(+), 87 deletions(-)
 delete mode 100644 srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
 rename srcpkgs/mesa/patches/{add-use-elf-tls.patch => add-elf-use-tls.patch} (57%)
 delete mode 100644 srcpkgs/mesa/patches/megadriver-symlinks.patch

diff --git a/srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch b/srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
deleted file mode 100644
index 725a306ec30b..000000000000
--- a/srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-https://gist.github.com/jnettlet/4dd6e43bcd5a551df29b12d3212e6edd
-
-From d72aa8ae74ffb7329003f9f23ffa05833af951ab Mon Sep 17 00:00:00 2001
-From: Jon Nettleton <jon@solid-run.com>
-Date: Fri, 14 Aug 2020 13:36:08 +0200
-Subject: [PATCH] radeonsi: On Aarch64 force persistent buffers to GTT
-
-This fixes a glamore corruption issue on the HoneyComb and by
-internet reports should also fix problems seen on Huaweii
-Kunpeng hardware.
-
-The root cause of the corruption needs to be worked out, but
-this patch also adds a noticable performance improvement. The
-aquarium webgl demo under chromium increases from 39-49 FPS
-when 5000 fish being rendered is selected.  Glmark scores also
-improve by ~200 with no specific tests showing any regression.
-
-Signed-off-by: Jon Nettleton <jon@solid-run.com>
----
- src/gallium/drivers/radeonsi/si_buffer.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c
-index 6b58aebee2d..c9e983367a0 100644
---- a/src/gallium/drivers/radeonsi/si_buffer.c
-+++ b/src/gallium/drivers/radeonsi/si_buffer.c
-@@ -151,6 +151,10 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res,
-        */
-       if (!sscreen->info.kernel_flushes_hdp_before_ib || !sscreen->info.is_amdgpu)
-          res->domains = RADEON_DOMAIN_GTT;
-+
-+#if defined(PIPE_ARCH_AARCH64)
-+      res->domains = RADEON_DOMAIN_GTT;
-+#endif
-    }
- 
-    /* Tiled textures are unmappable. Always put them in VRAM. */
--- 
-2.26.2
diff --git a/srcpkgs/mesa/patches/add-use-elf-tls.patch b/srcpkgs/mesa/patches/add-elf-use-tls.patch
similarity index 57%
rename from srcpkgs/mesa/patches/add-use-elf-tls.patch
rename to srcpkgs/mesa/patches/add-elf-use-tls.patch
index 6bb599d2475e..c9a154e4ccea 100644
--- a/srcpkgs/mesa/patches/add-use-elf-tls.patch
+++ b/srcpkgs/mesa/patches/add-elf-use-tls.patch
@@ -1,33 +1,29 @@
-Upstream: https://gitlab.freedesktop.org/mesa/mesa/issues/966
-Status: Not fixed upstream
---- a/meson.build  2022-05-02 16:58:59.796354436 -0400
-+++ b/meson.build  2022-05-02 17:07:49.628310289 -0400
-@@ -490,8 +490,11 @@
+--- a/meson.build	2022-09-20 17:01:37.000000000 -0400
++++ b/meson.build	2022-10-04 16:17:45.905483957 -0400
+@@ -504,6 +504,11 @@
    pre_args += '-DHAVE_@0@_PLATFORM'.format(platform.to_upper())
  endforeach
-
--use_elf_tls = true
--pre_args += '-DUSE_ELF_TLS'
-+#use_elf_tls = true
+ 
 +use_elf_tls = get_option('use-elf-tls')
 +if use_elf_tls
 +  pre_args += '-DUSE_ELF_TLS'
 +endif
-
++
  if with_platform_android and get_option('platform-sdk-version') >= 29
    # By default the NDK compiler, at least, emits emutls references instead of
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -446,6 +446,12 @@ option(
-   value : 25,
+   # ELF TLS, even when building targeting newer API levels.  Make it actually do
+--- a/meson_options.txt	2022-09-20 17:01:37.000000000 -0400
++++ b/meson_options.txt	2022-10-04 16:21:30.469304615 -0400
+@@ -472,6 +472,12 @@
    description : 'Android Platform SDK version. Default: Nougat version.'
  )
-+option(
+ option(
 +  'use-elf-tls',
 +  type : 'boolean',
 +  value : true,
 +  description : 'Build support for initial-exec TLS model'
 +)
- option(
++option(
    'zstd',
    type : 'combo',
+   choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
diff --git a/srcpkgs/mesa/patches/megadriver-symlinks.patch b/srcpkgs/mesa/patches/megadriver-symlinks.patch
deleted file mode 100644
index c19c42719422..000000000000
--- a/srcpkgs/mesa/patches/megadriver-symlinks.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-This converts megadriver installation to use symlinks so that we do
-not have to deal with skipping the strip stage for some files, as
-a result simplifying our template greatly.
-
---- a/bin/install_megadrivers.py
-+++ b/bin/install_megadrivers.py
-@@ -56,7 +56,7 @@ def main():
-         if os.path.lexists(abs_driver):
-             os.unlink(abs_driver)
-         print('installing {} to {}'.format(args.megadriver, abs_driver))
--        os.link(master, abs_driver)
-+        os.symlink(os.path.basename(master), abs_driver)
- 
-         try:
-             ret = os.getcwd()
-@@ -71,8 +71,7 @@ def main():
-         finally:
-             os.chdir(ret)
- 
--    # Remove meson-created master .so and symlinks
--    os.unlink(master)
-+    # Remove meson-created symlinks
-     name, ext = os.path.splitext(master)
-     while ext != '.so':
-         if os.path.lexists(name):
diff --git a/srcpkgs/mesa/patches/musl-stacksize.patch b/srcpkgs/mesa/patches/musl-stacksize.patch
index be2f5d454f59..cf5b2cd1fb91 100644
--- a/srcpkgs/mesa/patches/musl-stacksize.patch
+++ b/srcpkgs/mesa/patches/musl-stacksize.patch
@@ -1,8 +1,6 @@
-diff --git ./include/c11/threads_posix.h ./include/c11/threads_posix.h
-index 45cb6075e6..1a2ea1a450 100644
---- a/include/c11/threads_posix.h
-+++ b/include/c11/threads_posix.h
-@@ -281,15 +281,29 @@ static inline int
+--- a/src/c11/impl/threads_posix.c	2022-10-04 16:30:04.564345425 -0400
++++ b/src/c11/impl/threads_posix.c	2022-10-04 16:43:51.794135619 -0400
+@@ -255,18 +255,33 @@
  thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
  {
      struct impl_thrd_param *pack;
@@ -33,3 +31,7 @@ index 45cb6075e6..1a2ea1a450 100644
      return thrd_success;
  }
  
++
+ // 7.25.5.2
+ thrd_t
+ thrd_current(void)
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 6b86c2895bfd..0f40c5abc462 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,6 +1,6 @@
 # Template file for 'mesa'
 pkgname=mesa
-version=22.1.7
+version=22.2.0
 revision=1
 build_style=meson
 configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
@@ -22,7 +22,7 @@ license="MIT, LGPL-2.1-or-later"
 homepage="https://www.mesa3d.org/"
 changelog="https://docs.mesa3d.org/relnotes/${version}.html"
 distfiles="https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
-checksum=da838eb2cf11d0e08d0e9944f6bd4d96987fdc59ea2856f8c70a31a82b355d89
+checksum=b1f9c8fd08f2cae3adf83355bef4d2398e8025f44947332880f2d0066bdafa8c
 
 build_options="wayland"
 build_options_default="wayland"

  parent reply	other threads:[~2022-10-04 20:44 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 19:47 [PR PATCH] " zlice
2022-10-04 20:12 ` [PR PATCH] [Updated] " zlice
2022-10-04 20:24 ` zlice
2022-10-04 20:32 ` zlice
2022-10-04 20:37 ` zlice
2022-10-04 20:40 ` zlice
2022-10-04 20:44 ` zlice [this message]
2022-10-05  6:52 ` Visone-Selektah
2022-10-05 12:36 ` zlice
2022-10-05 14:18 ` Visone-Selektah
2022-10-05 14:40 ` zlice
2022-10-05 14:45 ` zlice
2022-10-05 15:15 ` Visone-Selektah
2022-10-05 16:58 ` [PR PATCH] [Updated] " zlice
2022-10-05 16:59 ` zlice
2022-10-05 17:01 ` zlice
2022-10-05 17:02 ` [PR PATCH] [Updated] " zlice
2022-10-05 17:04 ` Visone-Selektah
2022-10-05 18:00 ` [PR PATCH] [Updated] " zlice
2022-10-09 13:45 ` RicArch97
2022-10-11 21:36 ` Visone-Selektah
2022-10-16 18:46 ` HadetTheUndying
2022-10-16 18:52 ` zlice
2022-10-16 21:28 ` HadetTheUndying
2022-10-16 21:38 ` [PR PATCH] [Updated] " zlice
2022-10-16 21:39 ` zlice
2022-10-19 19:37 ` mesa: update to 22.2.1 JamiKettunen
2022-10-23 12:17 ` JamiKettunen
2022-10-23 17:36 ` HadetTheUndying
2022-10-23 17:38 ` [PR PATCH] [Updated] " zlice
2022-10-23 17:39 ` [PR PATCH] [Updated] mesa: update to 22.2.2 zlice
2022-10-23 17:41 ` zlice
2022-10-31  1:41 ` HadetTheUndying
2022-11-23 20:46 ` HadetTheUndying
2022-11-25 11:04 ` JamiKettunen
2022-11-26 20:15 ` 123randomuser321
2022-11-26 20:27 ` JamiKettunen
2022-11-26 20:27 ` JamiKettunen
2022-11-26 20:31 ` 123randomuser321
2022-11-26 20:35 ` paper42
2022-11-26 20:50 ` 123randomuser321
2022-11-27 16:31 ` [PR REVIEW] " classabbyamp
2022-11-27 16:31 ` classabbyamp
2022-11-27 16:44 ` zlice
2022-11-27 16:44 ` zlice
2022-11-27 16:46 ` paper42
2022-11-27 16:47 ` paper42
2022-11-27 16:47 ` classabbyamp
2022-11-27 16:48 ` paper42
2022-11-27 16:51 ` [PR PATCH] [Updated] " zlice
2022-11-27 16:53 ` zlice
2022-11-27 18:08 ` [PR REVIEW] mesa: update to 22.2.4 JamiKettunen
2022-12-01 12:03 ` biopsin
2022-12-01 12:04 ` biopsin
2022-12-01 14:52 ` [PR PATCH] [Merged]: " classabbyamp
2022-12-02 23:15 ` q66
2022-12-03 10:55 ` JamiKettunen
2022-12-03 11:05 ` JamiKettunen
2022-12-03 19:55 ` classabbyamp
2022-12-03 19:56 ` classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221004204426.ZxGVEk62TQf0Fl_EQm2BPa75KbMP3VkRA0K8dqSee6c@z \
    --to=zlice@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).