mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-17 10:30:38 +02:00
llvmpipe: altivec.h inclusion in -std=c++98..11 causes bool to be redefined
So we carefully include altivec.h in lp_setup_tri.c Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>
This commit is contained in:
parent
07cb3c0e31
commit
b65e745168
1 changed files with 16 additions and 5 deletions
|
|
@ -29,6 +29,21 @@
|
|||
* Binning code for triangles
|
||||
*/
|
||||
|
||||
#include "util/detect.h"
|
||||
|
||||
#if DETECT_ARCH_SSE
|
||||
#include <emmintrin.h>
|
||||
#elif defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
|
||||
#include <altivec.h>
|
||||
/*
|
||||
altivec.h inclusion in -std=c++98..11 causes bool to be redefined
|
||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241
|
||||
*/
|
||||
#undef bool
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "util/u_math.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_rect.h"
|
||||
|
|
@ -42,11 +57,7 @@
|
|||
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
#if DETECT_ARCH_SSE
|
||||
#include <emmintrin.h>
|
||||
#elif defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
|
||||
#include <altivec.h>
|
||||
#if defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
|
||||
#include "util/u_pwr8.h"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue