diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-05-28 02:49:19 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-29 15:14:37 +0100 |
commit | a0e6896e2317318be0e4bb85a1543f71608dd03d (patch) | |
tree | b1ee8cca21d0d6e308a47e37d786534fdb298014 | |
parent | 4a7138337a4f9c59a9ebbee295078175571b315b (diff) | |
download | poky-a0e6896e2317318be0e4bb85a1543f71608dd03d.tar.gz |
mesa: remove XA tracker support
XA tracker is unmaintained and deprecated. It has been removed in 25.2
branch and it is going to be disabled by default in the 25.1.2 release.
Be slightly more proactive, pick up the patch disabling XA by default
and drop support for XA tracker in the recipe.
(From OE-Core rev: e8bba3efd72bf90d70e674b0686d13639a44f0ad)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/mesa/files/0001-meson-stop-building-XA-by-default.patch | 33 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 7 |
2 files changed, 34 insertions, 6 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-meson-stop-building-XA-by-default.patch b/meta/recipes-graphics/mesa/files/0001-meson-stop-building-XA-by-default.patch new file mode 100644 index 0000000000..4372675952 --- /dev/null +++ b/meta/recipes-graphics/mesa/files/0001-meson-stop-building-XA-by-default.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 31a835dd2573c17d77efa8803c7fb28e0d58abc6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | ||
3 | Date: Thu, 22 May 2025 20:11:46 +0300 | ||
4 | Subject: [PATCH] meson: stop building XA by default | ||
5 | |||
6 | Commit cf40099730c4 ("meson: deprecate gallium-xa") deprecated XA | ||
7 | tracker, but didn't disable it by default. Thus any attempt to disable | ||
8 | it would cause a deprecated option warning. Flip the default to disable | ||
9 | XA tracker by default. | ||
10 | |||
11 | Fixes: cf40099730c4 ("meson: deprecate gallium-xa") | ||
12 | Backport-to: 25.1 | ||
13 | Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | ||
14 | Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/31cf6b94ad1dfaf4272b22a39d7e2805d03f9375] | ||
15 | --- | ||
16 | meson.options | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/meson.options b/meson.options | ||
20 | index e6c9567ade86..a56bcef6e2ca 100644 | ||
21 | --- a/meson.options | ||
22 | +++ b/meson.options | ||
23 | @@ -127,6 +127,7 @@ option( | ||
24 | option( | ||
25 | 'gallium-xa', | ||
26 | type : 'feature', | ||
27 | + value : 'disabled', | ||
28 | description : 'enable gallium xa frontend.', | ||
29 | deprecated: true, | ||
30 | ) | ||
31 | -- | ||
32 | 2.47.2 | ||
33 | |||
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 7c067420c1..75467fc856 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -18,6 +18,7 @@ SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \ | |||
18 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ | 18 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ |
19 | file://0001-freedreno-don-t-encode-build-path-into-binaries.patch \ | 19 | file://0001-freedreno-don-t-encode-build-path-into-binaries.patch \ |
20 | file://0001-dont-build-clover-frontend.patch \ | 20 | file://0001-dont-build-clover-frontend.patch \ |
21 | file://0001-meson-stop-building-XA-by-default.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | SRC_URI[sha256sum] = "cf942a18b7b9e9b88524dcbf0b31fed3cde18e6d52b3375b0ab6587a14415bce" | 24 | SRC_URI[sha256sum] = "cf942a18b7b9e9b88524dcbf0b31fed3cde18e6d52b3375b0ab6587a14415bce" |
@@ -197,7 +198,6 @@ MESA_NATIVE:class-native = "" | |||
197 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" | 198 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" |
198 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm llvm-native elfutils" | 199 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm llvm-native elfutils" |
199 | PACKAGECONFIG[libclc] = "-Dmesa-clc=${MESA_CLC} -Dinstall-mesa-clc=${INSTALL_MESA_CLC} -Dmesa-clc-bundle-headers=enabled,,libclc spirv-tools spirv-llvm-translator ${MESA_NATIVE}" | 200 | PACKAGECONFIG[libclc] = "-Dmesa-clc=${MESA_CLC} -Dinstall-mesa-clc=${INSTALL_MESA_CLC} -Dmesa-clc-bundle-headers=enabled,,libclc spirv-tools spirv-llvm-translator ${MESA_NATIVE}" |
200 | PACKAGECONFIG[xa] = "-Dgallium-xa=enabled, -Dgallium-xa=disabled" | ||
201 | PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" | 201 | PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" |
202 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" | 202 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" |
203 | 203 | ||
@@ -253,7 +253,6 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | |||
253 | libgles1-mesa libgles1-mesa-dev \ | 253 | libgles1-mesa libgles1-mesa-dev \ |
254 | libgles2-mesa libgles2-mesa-dev \ | 254 | libgles2-mesa libgles2-mesa-dev \ |
255 | libopencl-mesa \ | 255 | libopencl-mesa \ |
256 | libxatracker libxatracker-dev \ | ||
257 | mesa-megadriver mesa-vulkan-drivers \ | 256 | mesa-megadriver mesa-vulkan-drivers \ |
258 | mesa-vdpau-drivers mesa-tools \ | 257 | mesa-vdpau-drivers mesa-tools \ |
259 | " | 258 | " |
@@ -345,7 +344,6 @@ FILES:libgl-mesa = "${libdir}/libGL.so.*" | |||
345 | FILES:libglx-mesa = "${libdir}/libGLX*.so.*" | 344 | FILES:libglx-mesa = "${libdir}/libGLX*.so.*" |
346 | FILES:libopencl-mesa = "${libdir}/lib*OpenCL.so* ${sysconfdir}/OpenCL/vendors/*.icd" | 345 | FILES:libopencl-mesa = "${libdir}/lib*OpenCL.so* ${sysconfdir}/OpenCL/vendors/*.icd" |
347 | FILES:libglapi = "${libdir}/libglapi.so.*" | 346 | FILES:libglapi = "${libdir}/libglapi.so.*" |
348 | FILES:libxatracker = "${libdir}/libxatracker.so.*" | ||
349 | 347 | ||
350 | FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/GL/internal/dri_interface.h ${includedir}/vulkan ${libdir}/vdpau/*.so" | 348 | FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/GL/internal/dri_interface.h ${includedir}/vulkan ${libdir}/vdpau/*.so" |
351 | FILES:libegl-mesa-dev = "${libdir}/libEGL*.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | 349 | FILES:libegl-mesa-dev = "${libdir}/libEGL*.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" |
@@ -354,9 +352,6 @@ FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL/*.h ${libdir}/pkgconf | |||
354 | FILES:libglapi-dev = "${libdir}/libglapi.*" | 352 | FILES:libglapi-dev = "${libdir}/libglapi.*" |
355 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" | 353 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" |
356 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc" | 354 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc" |
357 | FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ | ||
358 | ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ | ||
359 | ${libdir}/pkgconfig/xatracker.pc" | ||
360 | # catch all to get all the tools and data | 355 | # catch all to get all the tools and data |
361 | FILES:${PN}-tools = "${bindir} ${datadir}" | 356 | FILES:${PN}-tools = "${bindir} ${datadir}" |
362 | ALLOW_EMPTY:${PN}-tools = "1" | 357 | ALLOW_EMPTY:${PN}-tools = "1" |