diff options
author | Markus Volk <f_l_k@t-online.de> | 2024-02-14 19:14:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-15 09:18:10 +0000 |
commit | 3a5e5742fcf85d34f4220b7705290c6d4bc7800c (patch) | |
tree | 33e26af16f0d1ba1e1fbd3505a474b1e50b44b22 /meta/recipes-graphics/mesa/mesa.inc | |
parent | b83bd953dae17a7243b11ab98bd02459c717db89 (diff) | |
download | poky-3a5e5742fcf85d34f4220b7705290c6d4bc7800c.tar.gz |
mesa: update 23.3.5 -> 24.0.0
- refresh 0001-meson.build-check-for-all-linux-host_os-combinations.patch
- rework VIDEO_CODECS. mesa now provides options for 'all' and 'all_free'
Adjust accordingly.
Free codecs are built by default:
Codecs : av1dec av1enc vp9dec
If LICENSE_FLAGS_ACCEPTED contains 'commercial' all supported codecs are built:
Codecs : vc1dec h264dec h264enc h265dec h265enc
av1dec av1enc vp9dec
(From OE-Core rev: 8975bf600de8a3faa8d222f50beb1e2b02fb2870)
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 3a7b91f637..fabc52f0e7 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -20,7 +20,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ | |||
20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ | 20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ |
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI[sha256sum] = "69ccb1278641ff5bad71ca0f866188aeb1a92aadc4dbb9d35f50aebec5b8b50f" | 23 | SRC_URI[sha256sum] = "dc7e8c077bc5884df95478263b34bdebb7e88e600689cb56fb07be2b8c304c36" |
24 | 24 | ||
25 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" | 25 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" |
26 | 26 | ||
@@ -81,12 +81,12 @@ def strip_comma(s): | |||
81 | 81 | ||
82 | PACKAGECONFIG = " \ | 82 | PACKAGECONFIG = " \ |
83 | gallium \ | 83 | gallium \ |
84 | video-codecs \ | ||
84 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland', d)} \ | 85 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland', d)} \ |
85 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ | 86 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ |
86 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ | 87 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ |
87 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ | 88 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ |
88 | ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ | 89 | ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ |
89 | ${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'video-codecs', '', d)} \ | ||
90 | " | 90 | " |
91 | 91 | ||
92 | PACKAGECONFIG:append:class-native = "gallium-llvm r600" | 92 | PACKAGECONFIG:append:class-native = "gallium-llvm r600" |
@@ -203,8 +203,8 @@ PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" | |||
203 | 203 | ||
204 | PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" | 204 | PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" |
205 | 205 | ||
206 | VIDEO_CODECS = "vc1dec,h264dec,h264enc,h265dec,h265enc" | 206 | VIDEO_CODECS ?= "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'all', 'all_free', d)}" |
207 | PACKAGECONFIG[video-codecs] = "-Dvideo-codecs=${@strip_comma('${VIDEO_CODECS}')}, -Dvideo-codecs=''" | 207 | PACKAGECONFIG[video-codecs] = "-Dvideo-codecs=${VIDEO_CODECS}, -Dvideo-codecs=''" |
208 | 208 | ||
209 | # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) | 209 | # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) |
210 | FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer" | 210 | FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer" |