diff options
author | Markus Volk <f_l_k@t-online.de> | 2022-09-21 18:39:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-22 21:39:21 +0100 |
commit | dfdf55a43973e5b7329e50bd09a93c80434ce636 (patch) | |
tree | 176464514c68c5c9fe0f043488b92bb08b038a4b /meta/recipes-graphics/mesa/mesa.inc | |
parent | f18a7dee06bdca3230829d1bb8362ab065090dd8 (diff) | |
download | poky-dfdf55a43973e5b7329e50bd09a93c80434ce636.tar.gz |
mesa: upgrade 22.1.6 -> 22.2.0
- add PACKAGECONFIG to build vulkan beta drivers
- add PACKAGECONFIG for zink and build it along with vulkan
- remove TLS-ELF patch and the associated PACKAGECONFIG. It looks like its unneeded
- remove swrast_kms backport patch
- remove the patch that reverts the deprecation of drm_handle as it is not applicable. Still needed ?
- fix patch fuzz warnings
License file has been changed, but no change of licenses
https://gitlab.freedesktop.org/mesa/mesa/-/commit/e6392fcf3d8b8dd7e3a8427755d8be2f2332366a
(From OE-Core rev: a85d0566c0e09e7ccd394c6465305ab97ce5973a)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index ea7ed4fd27..8a74e0a80a 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -10,22 +10,19 @@ HOMEPAGE = "http://mesa3d.org" | |||
10 | BUGTRACKER = "https://bugs.freedesktop.org" | 10 | BUGTRACKER = "https://bugs.freedesktop.org" |
11 | SECTION = "x11" | 11 | SECTION = "x11" |
12 | LICENSE = "MIT" | 12 | LICENSE = "MIT" |
13 | LIC_FILES_CHKSUM = "file://docs/license.rst;md5=9a383ee9f65a4e939d6630e9b067ff58" | 13 | LIC_FILES_CHKSUM = "file://docs/license.rst;md5=63779ec98d78d823a9dc533a0735ef10" |
14 | 14 | ||
15 | PE = "2" | 15 | PE = "2" |
16 | 16 | ||
17 | SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ | 17 | 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://0002-meson.build-make-TLS-ELF-optional.patch \ | ||
20 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ | 19 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ |
21 | file://0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch \ | 20 | file://0001-futex.h-Define-__NR_futex-if-it-does-not-exist.patch \ |
22 | file://0001-util-format-Check-for-NEON-before-using-it.patch \ | 21 | file://0001-util-format-Check-for-NEON-before-using-it.patch \ |
23 | file://0001-Revert-egl-wayland-deprecate-drm_handle_format-and-d.patch \ | ||
24 | file://0001-swrast_kms-use-swkmsDRI2Extension-instead-of-driDRI2.patch \ | ||
25 | file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch \ | 22 | file://0001-nir-nir_opt_move-fix-ALWAYS_INLINE-compiler-error.patch \ |
26 | " | 23 | " |
27 | 24 | ||
28 | SRC_URI[sha256sum] = "22ced061eb9adab8ea35368246c1995c09723f3f71653cd5050c5cec376e671a" | 25 | SRC_URI[sha256sum] = "b1f9c8fd08f2cae3adf83355bef4d2398e8025f44947332880f2d0066bdafa8c" |
29 | 26 | ||
30 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" | 27 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" |
31 | 28 | ||
@@ -95,7 +92,7 @@ PACKAGECONFIG = " \ | |||
95 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ | 92 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ |
96 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ | 93 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ |
97 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ | 94 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ |
98 | ${@bb.utils.contains('TCLIBC', 'glibc', 'elf-tls', '', d)} \ | 95 | ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ |
99 | " | 96 | " |
100 | 97 | ||
101 | # "gbm" requires "opengl" | 98 | # "gbm" requires "opengl" |
@@ -104,7 +101,6 @@ PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" | |||
104 | X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr" | 101 | X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr" |
105 | # "x11" requires "opengl" | 102 | # "x11" requires "opengl" |
106 | PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}" | 103 | PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}" |
107 | PACKAGECONFIG[elf-tls] = "-Delf-tls=true, -Delf-tls=false" | ||
108 | PACKAGECONFIG[xvmc] = "-Dgallium-xvmc=enabled,-Dgallium-xvmc=disabled,libxvmc" | 104 | PACKAGECONFIG[xvmc] = "-Dgallium-xvmc=enabled,-Dgallium-xvmc=disabled,libxvmc" |
109 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" | 105 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" |
110 | 106 | ||
@@ -117,7 +113,7 @@ VULKAN_DRIVERS:append:x86:class-target = ",intel" | |||
117 | VULKAN_DRIVERS:append:x86-64:class-target = ",intel" | 113 | VULKAN_DRIVERS:append:x86-64:class-target = ",intel" |
118 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | 114 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" |
119 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" | 115 | VULKAN_DRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" |
120 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers=''," | 116 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" |
121 | 117 | ||
122 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" | 118 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" |
123 | 119 | ||
@@ -137,6 +133,7 @@ PACKAGECONFIG[freedreno] = "" | |||
137 | PACKAGECONFIG[kmsro] = "" | 133 | PACKAGECONFIG[kmsro] = "" |
138 | PACKAGECONFIG[vc4] = "" | 134 | PACKAGECONFIG[vc4] = "" |
139 | PACKAGECONFIG[v3d] = "" | 135 | PACKAGECONFIG[v3d] = "" |
136 | PACKAGECONFIG[zink] = "" | ||
140 | 137 | ||
141 | GALLIUMDRIVERS = "swrast" | 138 | GALLIUMDRIVERS = "swrast" |
142 | # gallium swrast was found to crash Xorg on startup in x32 qemu | 139 | # gallium swrast was found to crash Xorg on startup in x32 qemu |
@@ -149,6 +146,7 @@ GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',fre | |||
149 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}" | 146 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}" |
150 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}" | 147 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}" |
151 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}" | 148 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}" |
149 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}" | ||
152 | 150 | ||
153 | # radeonsi requires LLVM | 151 | # radeonsi requires LLVM |
154 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" | 152 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" |
@@ -177,6 +175,8 @@ GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', ' | |||
177 | PACKAGECONFIG[panfrost] = "" | 175 | PACKAGECONFIG[panfrost] = "" |
178 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" | 176 | GALLIUMDRIVERS:append ="${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" |
179 | 177 | ||
178 | PACKAGECONFIG[vulkan-beta] = "-Dvulkan-beta=true,-Dvulkan-beta=false" | ||
179 | |||
180 | PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false" | 180 | PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false" |
181 | 181 | ||
182 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" | 182 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" |