summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-05-28 02:49:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-29 15:14:37 +0100
commita0e6896e2317318be0e4bb85a1543f71608dd03d (patch)
treeb1ee8cca21d0d6e308a47e37d786534fdb298014
parent4a7138337a4f9c59a9ebbee295078175571b315b (diff)
downloadpoky-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.patch33
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc7
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 @@
1From 31a835dd2573c17d77efa8803c7fb28e0d58abc6 Mon Sep 17 00:00:00 2001
2From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
3Date: Thu, 22 May 2025 20:11:46 +0300
4Subject: [PATCH] meson: stop building XA by default
5
6Commit cf40099730c4 ("meson: deprecate gallium-xa") deprecated XA
7tracker, but didn't disable it by default. Thus any attempt to disable
8it would cause a deprecated option warning. Flip the default to disable
9XA tracker by default.
10
11Fixes: cf40099730c4 ("meson: deprecate gallium-xa")
12Backport-to: 25.1
13Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
14Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/31cf6b94ad1dfaf4272b22a39d7e2805d03f9375]
15---
16 meson.options | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/meson.options b/meson.options
20index 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--
322.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
23SRC_URI[sha256sum] = "cf942a18b7b9e9b88524dcbf0b31fed3cde18e6d52b3375b0ab6587a14415bce" 24SRC_URI[sha256sum] = "cf942a18b7b9e9b88524dcbf0b31fed3cde18e6d52b3375b0ab6587a14415bce"
@@ -197,7 +198,6 @@ MESA_NATIVE:class-native = ""
197PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" 198PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm"
198PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm llvm-native elfutils" 199PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm llvm-native elfutils"
199PACKAGECONFIG[libclc] = "-Dmesa-clc=${MESA_CLC} -Dinstall-mesa-clc=${INSTALL_MESA_CLC} -Dmesa-clc-bundle-headers=enabled,,libclc spirv-tools spirv-llvm-translator ${MESA_NATIVE}" 200PACKAGECONFIG[libclc] = "-Dmesa-clc=${MESA_CLC} -Dinstall-mesa-clc=${INSTALL_MESA_CLC} -Dmesa-clc-bundle-headers=enabled,,libclc spirv-tools spirv-llvm-translator ${MESA_NATIVE}"
200PACKAGECONFIG[xa] = "-Dgallium-xa=enabled, -Dgallium-xa=disabled"
201PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" 201PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial"
202PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" 202PACKAGECONFIG[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.*"
345FILES:libglx-mesa = "${libdir}/libGLX*.so.*" 344FILES:libglx-mesa = "${libdir}/libGLX*.so.*"
346FILES:libopencl-mesa = "${libdir}/lib*OpenCL.so* ${sysconfdir}/OpenCL/vendors/*.icd" 345FILES:libopencl-mesa = "${libdir}/lib*OpenCL.so* ${sysconfdir}/OpenCL/vendors/*.icd"
347FILES:libglapi = "${libdir}/libglapi.so.*" 346FILES:libglapi = "${libdir}/libglapi.so.*"
348FILES:libxatracker = "${libdir}/libxatracker.so.*"
349 347
350FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/GL/internal/dri_interface.h ${includedir}/vulkan ${libdir}/vdpau/*.so" 348FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/GL/internal/dri_interface.h ${includedir}/vulkan ${libdir}/vdpau/*.so"
351FILES:libegl-mesa-dev = "${libdir}/libEGL*.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" 349FILES: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
354FILES:libglapi-dev = "${libdir}/libglapi.*" 352FILES:libglapi-dev = "${libdir}/libglapi.*"
355FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" 353FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc"
356FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc" 354FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc"
357FILES: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
361FILES:${PN}-tools = "${bindir} ${datadir}" 356FILES:${PN}-tools = "${bindir} ${datadir}"
362ALLOW_EMPTY:${PN}-tools = "1" 357ALLOW_EMPTY:${PN}-tools = "1"