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);
          ^
This commit is contained in:
Piotr Kubaj 2020-10-23 00:08:58 +00:00
parent 3aa5ef37c1
commit 631389fe37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553060
2 changed files with 28 additions and 0 deletions

View File

@ -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"

View File

@ -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