diff --git a/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__rast__tri.c b/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__rast__tri.c new file mode 100644 index 000000000000..df98dd775c5c --- /dev/null +++ b/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__rast__tri.c @@ -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 + #include "util/u_pwr8.h" + diff --git a/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__setup__tri.c b/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__setup__tri.c new file mode 100644 index 000000000000..d1b66fb52af0 --- /dev/null +++ b/graphics/mesa-dri/files/patch-src_gallium_drivers_llvmpipe_lp__setup__tri.c @@ -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 + #elif defined(_ARCH_PWR8) && UTIL_ARCH_LITTLE_ENDIAN ++#ifdef __clang__ ++#undef vector ++#undef pixel ++#undef bool ++#endif + #include + #include "util/u_pwr8.h" + #endif