svn commit: r552871 - head/graphics/mesa-devel/files

Piotr Kubaj pkubaj at anongoth.pl
Wed Oct 21 19:12:02 UTC 2020


Thanks, that also works. When you commit it, please MFH to 2020Q4:
http://pylon.nyi.freebsd.org/data/121powerpc64-quarterly/552780/logs/errors/mesa-devel-20.2.b.2078.log

On 20-10-21 20:10:16, Jan Beich wrote:
> Jan Beich <jbeich at FreeBSD.org> writes:
> 
> > Piotr Kubaj via svn-ports-all <svn-ports-all at freebsd.org> writes:
> >
> >> On 20-10-21 19:28:43, Jan Beich wrote:
> >>> Piotr Kubaj <pkubaj at FreeBSD.org> writes:
> >>> 
> >>> > Author: pkubaj
> >>> > Date: Wed Oct 21 17:01:47 2020
> >>> > New Revision: 552871
> >>> > URL: https://svnweb.freebsd.org/changeset/ports/552871
> >>> >
> >>> > Log:
> >>> >   graphics/mesa-devel: fix build on big-endian architectures
> >>> >   
> [...]
> >> I'm planning to send PR to upstream today or tomorrow.
> >
> > While reviewing your change I did some modifications, so it benefits
> > NetBSD and OpenBSD as well (DragonFly doesn't support big-endian).
> >
> > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7257
> 
> To test the above via FreeBSD Ports try the following:
> 
> diff --git graphics/mesa-devel/Makefile graphics/mesa-devel/Makefile
> index e5955fd84715..5043e6d68925 100644
> --- graphics/mesa-devel/Makefile
> +++ graphics/mesa-devel/Makefile
> @@ -16,6 +16,7 @@ PATCHFILES+=	cb8f7a253934.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-
>  PATCHFILES+=	700efacda59c.patch:-p1
>  PATCHFILES+=	8f3e0778f9a3.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/issues/966#note_394512
>  PATCHFILES+=	167fa293d7b7.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5464
> +PATCHFILES+=	77a279f983c2.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7257
>  
>  MAINTAINER=	jbeich at FreeBSD.org
>  COMMENT=	Bleeding edge Mesa drivers (OpenGL, Vulkan)
> diff --git graphics/mesa-devel/distinfo graphics/mesa-devel/distinfo
> index 5382b0923d1a..ec19c262abff 100644
> --- graphics/mesa-devel/distinfo
> +++ graphics/mesa-devel/distinfo
> @@ -17,3 +17,5 @@ SHA256 (8f3e0778f9a3.patch) = ba3d2f7d9a9508b38eb53d5f1e2120d0114edbef900200838f
>  SIZE (8f3e0778f9a3.patch) = 41007
>  SHA256 (167fa293d7b7.patch) = cc3ad8e59d5d4d7380917e715f676abba65549b07e377dbf6fcec5c294915360
>  SIZE (167fa293d7b7.patch) = 2496
> +SHA256 (77a279f983c2.patch) = 4a812ea04c904acffee19af2c871e1c3a66f05f46a11eb1205f780d2316e3362
> +SIZE (77a279f983c2.patch) = 1495
> diff --git graphics/mesa-devel/files/patch-src_compiler_spirv_spirv__to__nir.c graphics/mesa-devel/files/patch-src_compiler_spirv_spirv__to__nir.c
> deleted file mode 100644
> index 471e1142772c..000000000000
> --- graphics/mesa-devel/files/patch-src_compiler_spirv_spirv__to__nir.c
> +++ /dev/null
> @@ -1,24 +0,0 @@
> ---- src/compiler/spirv/spirv_to_nir.c.orig	2020-10-21 16:03:29.994285000 +0200
> -+++ src/compiler/spirv/spirv_to_nir.c	2020-10-21 18:45:12.746719000 +0200
> -@@ -37,8 +37,12 @@
> - 
> - #include <stdio.h>
> - #if UTIL_ARCH_BIG_ENDIAN
> -+#ifdef __linux__
> - #include <byteswap.h>
> -+#elif defined(__FreeBSD__)
> -+#include <sys/endian.h>
> - #endif
> -+#endif
> - 
> - void
> - vtn_log(struct vtn_builder *b, enum nir_spirv_debug_level level,
> -@@ -415,7 +419,7 @@
> -    {
> -       uint32_t *copy = ralloc_array(b, uint32_t, word_count);
> -       for (unsigned i = 0; i < word_count; i++)
> --         copy[i] = bswap_32(words[i]);
> -+         copy[i] = bswap32(words[i]);
> -       words = copy;
> -    }
> - #endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20201021/532c8149/attachment.sig>


More information about the svn-ports-head mailing list