svn commit: r553060 - head/graphics/mesa-dri/files

Piotr Kubaj pkubaj at FreeBSD.org
Fri Oct 23 00:08:59 UTC 2020


Author: pkubaj
Date: Fri Oct 23 00:08:58 2020
New Revision: 553060
URL: https://svnweb.freebsd.org/changeset/ports/553060

Log:
  graphics/mesa-dri: fix build of libosmesa on powerpc64le
  
  Error:
  ../src/gallium/auxiliary/util/u_pwr8.h:87:11: error: implicit declaration of function 'vec_perm' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
     return vec_perm (even, odd, perm_mask);
            ^

Added:
  head/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__rast__tri.c   (contents, props changed)
  head/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__setup__tri.c   (contents, props changed)

Added: head/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__rast__tri.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__rast__tri.c	Fri Oct 23 00:08:58 2020	(r553060)
@@ -0,0 +1,14 @@
+--- src/gallium/drivers/llvmpipe/lp_rast_tri.c.orig	2020-09-28 22:52:10 UTC
++++ src/gallium/drivers/llvmpipe/lp_rast_tri.c
+@@ -465,6 +465,11 @@ lp_rast_triangle_32_3_4(struct lp_rasterizer_task *tas
+ 
+ #if defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
+ 
++#ifdef __clang__
++#undef vector
++#undef pixel
++#undef bool
++#endif
+ #include <altivec.h>
+ #include "util/u_pwr8.h"
+ 

Added: head/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__setup__tri.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__setup__tri.c	Fri Oct 23 00:08:58 2020	(r553060)
@@ -0,0 +1,14 @@
+--- src/gallium/drivers/llvmpipe/lp_setup_tri.c.orig	2020-10-22 23:39:01 UTC
++++ src/gallium/drivers/llvmpipe/lp_setup_tri.c
+@@ -47,6 +47,11 @@
+ #if defined(PIPE_ARCH_SSE)
+ #include <emmintrin.h>
+ #elif defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
++#ifdef __clang__
++#undef vector
++#undef pixel
++#undef bool
++#endif
+ #include <altivec.h>
+ #include "util/u_pwr8.h"
+ #endif


More information about the svn-ports-all mailing list