Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2020 00:08:58 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r553060 - head/graphics/mesa-dri/files
Message-ID:  <202010230008.09N08wOg090265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010230008.09N08wOg090265>