diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2023-12-15 14:37:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-21 10:38:29 +0000 |
commit | ab621df9f52afbe91cbe2c7b1fccf22baeaa64fd (patch) | |
tree | ce229669460fe9b2526f559870c42d5d4e50f6a5 /meta | |
parent | 2c1b967cd1b2786bc8ea7caf38d0d0fcc93af3e6 (diff) | |
download | poky-ab621df9f52afbe91cbe2c7b1fccf22baeaa64fd.tar.gz |
mesa: upgrade 23.2.1 -> 23.3.1
- build amd vulkan driver for x86 platforms
- drop included patch
[https://gitlab.freedesktop.org/mesa/mesa/-/blob/1fbdd37d4c1133ced5eb9812daa1fff04cbf5daa/meson.build#L1711]
(From OE-Core rev: 9d862e82a3d36ae27dc9fc919da203d200a67650)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/mesa/files/0001-meson-Disable-cmake-dependency-detector-for-llvm.patch | 42 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-gl_23.3.1.bb (renamed from meta/recipes-graphics/mesa/mesa-gl_23.2.1.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 9 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa_23.3.1.bb (renamed from meta/recipes-graphics/mesa/mesa_23.2.1.bb) | 0 |
4 files changed, 4 insertions, 47 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-meson-Disable-cmake-dependency-detector-for-llvm.patch b/meta/recipes-graphics/mesa/files/0001-meson-Disable-cmake-dependency-detector-for-llvm.patch deleted file mode 100644 index 4cded0546d..0000000000 --- a/meta/recipes-graphics/mesa/files/0001-meson-Disable-cmake-dependency-detector-for-llvm.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 00d41cd5aa3f4b494dc276c9b4ccdc096310c91f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 28 Sep 2023 15:34:22 -0700 | ||
4 | Subject: [PATCH] meson: use llvm-config instead of cmake to fix linking errors with meson 1.2.1 | ||
5 | |||
6 | meson dependency auto dependency detection uses cmake and then | ||
7 | config-tool to process dependencies, in mesa the logic to detect llvm is | ||
8 | using auto detection which means if it finds cmake then it will try to | ||
9 | use cmake method. Cmake method works ok except a case when llvm-dev | ||
10 | package is installed on the build host then it generates its own | ||
11 | native.meson file and ignores OE supplied meson.native file which has | ||
12 | correct llvm-config tool specified which is pointing to llvm-config from | ||
13 | native sysroot. The generated meson.native file points to one found in | ||
14 | /usr/bin and there onwards detector finds native install of llvm and | ||
15 | configures that into building native mesa package. | ||
16 | |||
17 | Since cmake detector does not always work, disable it by default and use | ||
18 | config-tool which works in all cases. This is suggested in below issues | ||
19 | too | ||
20 | |||
21 | A similar issue is open in meson upstream [1] and mesa [2] | ||
22 | |||
23 | [1] https://github.com/mesonbuild/meson/issues/10483 | ||
24 | [2] https://gitlab.freedesktop.org/mesa/mesa/-/issues/6738 | ||
25 | |||
26 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25438] | ||
27 | |||
28 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
29 | --- | ||
30 | meson.build | 1 + | ||
31 | 1 file changed, 1 insertion(+) | ||
32 | |||
33 | --- a/meson.build | ||
34 | +++ b/meson.build | ||
35 | @@ -1659,6 +1659,7 @@ with_llvm = false | ||
36 | if _llvm.allowed() | ||
37 | dep_llvm = dependency( | ||
38 | 'llvm', | ||
39 | + method : host_machine.system() == 'windows' ? 'auto' : 'config-tool', | ||
40 | version : _llvm_version, | ||
41 | modules : llvm_modules, | ||
42 | optional_modules : llvm_optional_modules, | ||
diff --git a/meta/recipes-graphics/mesa/mesa-gl_23.2.1.bb b/meta/recipes-graphics/mesa/mesa-gl_23.3.1.bb index ca160f1bfc..ca160f1bfc 100644 --- a/meta/recipes-graphics/mesa/mesa-gl_23.2.1.bb +++ b/meta/recipes-graphics/mesa/mesa-gl_23.3.1.bb | |||
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index e5c405a972..5f5c8ceb4c 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -18,10 +18,9 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ | |||
18 | file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \ | 18 | file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \ |
19 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ | 19 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ |
20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ | 20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ |
21 | file://0001-meson-Disable-cmake-dependency-detector-for-llvm.patch \ | ||
22 | " | 21 | " |
23 | 22 | ||
24 | SRC_URI[sha256sum] = "64de0616fc2d801f929ab1ac2a4f16b3e2783c4309a724c8a259b20df8bbc1cc" | 23 | SRC_URI[sha256sum] = "6e48126d70fdb3f20ffeb246ca0c2e41ffdc835f0663a03d4526b8bf5db41de6" |
25 | 24 | ||
26 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" | 25 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" |
27 | 26 | ||
@@ -105,10 +104,10 @@ PACKAGECONFIG[dri3] = "-Ddri3=enabled, -Ddri3=disabled, xorgproto libxshmfence" | |||
105 | # Vulkan drivers need dri3 enabled | 104 | # Vulkan drivers need dri3 enabled |
106 | # amd could be enabled as well but requires gallium-llvm with llvm >= 3.9 | 105 | # amd could be enabled as well but requires gallium-llvm with llvm >= 3.9 |
107 | VULKAN_DRIVERS = "" | 106 | VULKAN_DRIVERS = "" |
108 | VULKAN_DRIVERS:append:x86 = ",intel" | 107 | VULKAN_DRIVERS:append:x86 = ",intel,amd" |
109 | VULKAN_DRIVERS:append:x86-64 = ",intel" | 108 | VULKAN_DRIVERS:append:x86-64 = ",intel,amd" |
110 | # i686 is a 32 bit override for mesa-native | 109 | # i686 is a 32 bit override for mesa-native |
111 | VULKAN_DRIVERS:append:i686 = ",intel" | 110 | VULKAN_DRIVERS:append:i686 = ",intel,amd" |
112 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | 111 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" |
113 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" | 112 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" |
114 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}" | 113 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}" |
diff --git a/meta/recipes-graphics/mesa/mesa_23.2.1.bb b/meta/recipes-graphics/mesa/mesa_23.3.1.bb index 96e8aa38d6..96e8aa38d6 100644 --- a/meta/recipes-graphics/mesa/mesa_23.2.1.bb +++ b/meta/recipes-graphics/mesa/mesa_23.3.1.bb | |||