2021-10-14 21:41:06 +02:00
|
|
|
diff -u -r mesa-21.2.3.orig/include/CL/cl_platform.h mesa-21.2.3/include/CL/cl_platform.h
|
|
|
|
--- mesa-21.2.3.orig/include/CL/cl_platform.h 2021-10-14 12:26:03.866376943 +0200
|
|
|
|
+++ mesa-21.2.3/include/CL/cl_platform.h 2021-10-14 20:37:44.557384820 +0200
|
|
|
|
@@ -356,7 +356,9 @@
|
|
|
|
/* Define basic vector types */
|
|
|
|
#if defined( __VEC__ )
|
|
|
|
#if !defined(__clang__)
|
|
|
|
+ #ifndef __cplusplus
|
|
|
|
#include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
|
|
|
|
+ #endif
|
|
|
|
#endif
|
|
|
|
typedef __vector unsigned char __cl_uchar16;
|
|
|
|
typedef __vector signed char __cl_char16;
|
2021-10-14 12:33:03 +02:00
|
|
|
diff -u -r mesa-21.2.3.orig/src/gallium/drivers/llvmpipe/lp_rast_tri.c mesa-21.2.3/src/gallium/drivers/llvmpipe/lp_rast_tri.c
|
|
|
|
--- mesa-21.2.3.orig/src/gallium/drivers/llvmpipe/lp_rast_tri.c 2021-10-14 12:26:04.058380655 +0200
|
2021-10-14 20:43:05 +02:00
|
|
|
+++ mesa-21.2.3/src/gallium/drivers/llvmpipe/lp_rast_tri.c 2021-10-14 20:38:55.478734888 +0200
|
|
|
|
@@ -465,7 +465,9 @@
|
2021-10-14 12:33:03 +02:00
|
|
|
|
|
|
|
#if defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
|
|
|
|
|
2021-10-14 20:43:05 +02:00
|
|
|
+#ifndef __cplusplus
|
|
|
|
#include <altivec.h>
|
|
|
|
+#endif
|
2021-10-14 12:33:03 +02:00
|
|
|
#include "util/u_pwr8.h"
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
diff -u -r mesa-21.2.3.orig/src/gallium/drivers/llvmpipe/lp_setup_tri.c mesa-21.2.3/src/gallium/drivers/llvmpipe/lp_setup_tri.c
|
|
|
|
--- mesa-21.2.3.orig/src/gallium/drivers/llvmpipe/lp_setup_tri.c 2021-10-14 12:26:04.058380655 +0200
|
2021-10-14 20:43:05 +02:00
|
|
|
+++ mesa-21.2.3/src/gallium/drivers/llvmpipe/lp_setup_tri.c 2021-10-14 20:38:24.766150222 +0200
|
|
|
|
@@ -47,7 +47,9 @@
|
2021-10-14 12:33:03 +02:00
|
|
|
#if defined(PIPE_ARCH_SSE)
|
|
|
|
#include <emmintrin.h>
|
|
|
|
#elif defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN
|
2021-10-14 20:43:05 +02:00
|
|
|
+#ifndef __cplusplus
|
|
|
|
#include <altivec.h>
|
|
|
|
+#endif
|
2021-10-14 12:33:03 +02:00
|
|
|
#include "util/u_pwr8.h"
|
|
|
|
#endif
|
|
|
|
|