summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch27
-rw-r--r--meta/recipes-graphics/mesa/mesa_19.3.1.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch b/meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch
new file mode 100644
index 0000000000..15485feb71
--- /dev/null
+++ b/meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch
@@ -0,0 +1,27 @@
1From bb2f0bea553d51d659a9bc46f7ae186885405151 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 13 Jan 2020 15:23:47 -0800
4Subject: [PATCH] meson misdetects 64bit atomics on mips/clang
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 src/util/u_atomic.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c
13index e4bffa8..58e1ddd 100644
14--- a/src/util/u_atomic.c
15+++ b/src/util/u_atomic.c
16@@ -21,7 +21,7 @@
17 * IN THE SOFTWARE.
18 */
19
20-#if defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD)
21+#if !defined(__clang__) && defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD)
22
23 #include <stdint.h>
24 #include <pthread.h>
25--
262.24.1
27
diff --git a/meta/recipes-graphics/mesa/mesa_19.3.1.bb b/meta/recipes-graphics/mesa/mesa_19.3.1.bb
index 855b7f23cd..b889f092e3 100644
--- a/meta/recipes-graphics/mesa/mesa_19.3.1.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.3.1.bb
@@ -6,6 +6,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
6 file://0003-Allow-enable-DRI-without-DRI-drivers.patch \ 6 file://0003-Allow-enable-DRI-without-DRI-drivers.patch \
7 file://0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch \ 7 file://0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch \
8 file://0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch \ 8 file://0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch \
9 file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
9 " 10 "
10 11
11SRC_URI[md5sum] = "5c5965db31993af47fee82c9a7ccba5e" 12SRC_URI[md5sum] = "5c5965db31993af47fee82c9a7ccba5e"