Github messages for voidlinux
 help / color / mirror / Atom feed
From: Ophidiophobia <Ophidiophobia@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [REQUIRES TESTS] mesa: update to 20.2.0
Date: Thu, 15 Oct 2020 16:31:43 +0200	[thread overview]
Message-ID: <20201015143143.4GroSq6g898VCPZJz0rdJXJkm-IDLz8mPwD0O24mUik@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25318@inbox.vuxu.org>

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

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

https://github.com/Ophidiophobia/void-packages mesa-20.2.0
https://github.com/void-linux/void-packages/pull/25318

[REQUIRES TESTS] mesa: update to 20.2.0
This updates mesa to 20.2.0

Several things to keep in mind:
Announcement happened only on their mailing list https://lists.freedesktop.org/archives/mesa-announce/2020-September/000600.html
20.1.9 was released later but new games may still need 20.2.x to work.

I tested compiling musl and hope this does not cause run time problems for NVIDIA or Intel graphic cards.

The game Horizon Zero Dawn actually runs with 20.2.0 for me (on 20.1.9 and lower the game crashes during the intro or within seconds at the main menu.

I have checked this on one game so far. I'll test it on other games in the next hours (Radeon RX 590).
It would be nice if others would check it on their setups.



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mesa-20.2.0-25318.patch --]
[-- Type: text/x-diff, Size: 5011 bytes --]

From a00b1bbd317f8be1492a1d0bb9176d9fc7f41dc5 Mon Sep 17 00:00:00 2001
From: Ophidiophobia <sandstrahl700@gmx.de>
Date: Sun, 4 Oct 2020 08:35:33 +0200
Subject: [PATCH] mesa: update to 20.2.1

---
 srcpkgs/mesa/patches/add-use-elf-tls.patch |  6 +++--
 srcpkgs/mesa/patches/musl.patch            | 26 ++++++++++------------
 srcpkgs/mesa/template                      | 11 ++++++---
 3 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/srcpkgs/mesa/patches/add-use-elf-tls.patch b/srcpkgs/mesa/patches/add-use-elf-tls.patch
index d5b933d586d..617d8c0e946 100644
--- a/srcpkgs/mesa/patches/add-use-elf-tls.patch
+++ b/srcpkgs/mesa/patches/add-use-elf-tls.patch
@@ -9,10 +9,12 @@ index d228de0..972cd79 100644
  endif
  
  # Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
--if not ['windows', 'freebsd'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
+ use_elf_tls = false
+-if not ['windows', 'freebsd', 'openbsd'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
 +with_use_elf_tls = get_option('use-elf-tls')
-+if not ['windows', 'freebsd'].contains(host_machine.system()) and with_use_elf_tls and (not with_platform_android or get_option('platform-sdk-version') >= 29)
++if not ['windows', 'freebsd', 'openbsd'].contains(host_machine.system()) and with_use_elf_tls and (not with_platform_android or get_option('platform-sdk-version') >= 29)
    pre_args += '-DUSE_ELF_TLS'
+   use_elf_tls = true
  endif
 
 diff --git meson_options.txt meson_options.txt
diff --git a/srcpkgs/mesa/patches/musl.patch b/srcpkgs/mesa/patches/musl.patch
index ba679adab15..f00f0f78c99 100644
--- a/srcpkgs/mesa/patches/musl.patch
+++ b/srcpkgs/mesa/patches/musl.patch
@@ -9,8 +9,8 @@
  #include "pipe/p_compiler.h"
  #include "pipe/p_state.h"
  
---- src/gallium/state_trackers/nine/threadpool.h.orig	2015-05-07 14:10:53.443337212 +0200
-+++ src/gallium/state_trackers/nine/threadpool.h	2015-05-07 14:11:04.210307653 +0200
+--- src/gallium/frontends/nine/threadpool.h.orig	2015-05-07 14:10:53.443337212 +0200
++++ src/gallium/frontends/nine/threadpool.h	2015-05-07 14:11:04.210307653 +0200
 @@ -24,6 +24,8 @@
  #ifndef _THREADPOOL_H_
  #define _THREADPOOL_H_
@@ -20,18 +20,16 @@
  #define MAXTHREADS 1
  
  struct threadpool {
---- src/util/rand_xor.c.orig	2017-06-20 00:38:57.199474067 +0200
-+++ src/util/rand_xor.c	2017-06-20 00:40:31.351279557 +0200
-@@ -23,7 +23,9 @@
-  */
- 
- #if defined(__linux__)
-+#include <sys/types.h>
- #include <sys/file.h>
-+#include <sys/stat.h>
+--- src/util/rand_xor.c.orig	2020-10-03 12:27:48.489024729 +0200
++++ src/util/rand_xor.c	2020-10-03 12:31:05.927113521 +0200
+@@ -28,6 +28,7 @@
+ #if defined(HAVE_GETRANDOM)
+ #include <sys/random.h>
+ #endif
++#include <sys/types.h>		/* size_t, ssize_t */
  #include <unistd.h>
  #include <fcntl.h>
- #else
+ #endif
 --- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
 +++ src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
 @@ -28,6 +28,8 @@
@@ -43,8 +41,8 @@
  #include "radv_radeon_winsys.h"
  #include "ac_gpu_info.h"
  #include "addrlib/addrinterface.h"
---- src/gallium/state_trackers/nine/nine_debug.c.orig	2020-03-06 07:46:48.278918421 +0100
-+++ src/gallium/state_trackers/nine/nine_debug.c	2020-03-06 07:51:32.919964119 +0100
+--- src/gallium/frontends/nine/nine_debug.c.orig	2020-03-06 07:46:48.278918421 +0100
++++ src/gallium/frontends/nine/nine_debug.c	2020-03-06 07:51:32.919964119 +0100
 @@ -65,7 +65,7 @@ _nine_debug_printf( unsigned long flag,
  {
      static boolean first = TRUE;
diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template
index 13de387a00b..0ec6360e0b3 100644
--- a/srcpkgs/mesa/template
+++ b/srcpkgs/mesa/template
@@ -1,6 +1,6 @@
 # Template file for 'mesa'
 pkgname=mesa
-version=20.1.9
+version=20.2.1
 revision=1
 wrksrc="mesa-${version}"
 build_style=meson
@@ -23,7 +23,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=b251ca0769b722058986640d48f8457c596142cfbee1a83cba91b83391427382
+checksum=d1a46d9a3f291bc0e0374600bdcb59844fa3eafaa50398e472a36fc65fd0244a
 
 build_options="wayland"
 build_options_default="wayland"
@@ -146,6 +146,11 @@ else
 	configure_args+=" -Dgallium-vdpau=false -Dgallium-va=false -Dgallium-xvmc=false"
 fi
 
+# empty values introduced by leading comma are not allowed; the whole enumeration can be empty
+# _gallium_drivers is not affected by this problem
+_vulkan_drivers=${_vulkan_drivers/=,/=}
+_dri_drivers=${_dri_drivers/=,/=}
+
 configure_args+=" ${_gallium_drivers} ${_vulkan_drivers} ${_dri_drivers}"
 
 if [ "$_have_vulkan" ]; then
@@ -180,7 +185,7 @@ post_configure() {
 }
 
 post_install() {
-	vlicense docs/license.html
+	vlicense docs/license.rst
 	case "$XBPS_TARGET_MACHINE" in
 		i686*)
 			vsed -e 's#/usr/lib/#/usr/lib32/#g' \

  parent reply	other threads:[~2020-10-15 14:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-03 17:07 [PR PATCH] " Ophidiophobia
2020-10-03 18:08 ` q66
2020-10-03 18:10 ` q66
2020-10-03 19:06 ` Ophidiophobia
2020-10-04  6:36 ` [PR PATCH] [Updated] " Ophidiophobia
2020-10-04  6:58 ` Ophidiophobia
2020-10-04  9:58 ` Ophidiophobia
2020-10-04 10:32 ` q66
2020-10-05  5:37 ` [PR PATCH] [Updated] " Ophidiophobia
2020-10-09 14:12 ` HadetTheUndying
2020-10-15 14:31 ` Ophidiophobia [this message]
2020-10-15 14:42 ` Ophidiophobia
2020-10-15 15:12 ` mesa: update to 20.2.1 Ophidiophobia
2020-10-15 21:11 ` [PR PATCH] [Merged]: " q66

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=20201015143143.4GroSq6g898VCPZJz0rdJXJkm-IDLz8mPwD0O24mUik@z \
    --to=ophidiophobia@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).