summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: upgrade 25.1.4 -> 25.1.5Wang Mingyu7 days1-2/+2
| | | | | | | | (From OE-Core rev: 9109961657e6e96fde59b6e07e70af16a4ddfdfd) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: upgrade 25.1.3 -> 25.1.4Wang Mingyu2025-07-031-2/+2
| | | | | | | (From OE-Core rev: c1d7829b9873f1037dab1ddc200a3da68337f909) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: enable glvnd if it is enabled in DISTRO_FEATURESDmitry Baryshkov2025-06-241-1/+1
| | | | | | | | | | | Let the distro to be a central authority regarding GLVND feature. Make mesa.inc enable glvnd PACKAGECONFIG if it is enabled in DISTRO_FEATURES. (From OE-Core rev: 25d29420919caadae4d35e7eb0291dd3504d8552) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: fix RPROVIDEd package namesDmitry Baryshkov2025-06-241-1/+1
| | | | | | | | | | | | The BCP for virtual runtime package names is virtual-foo. Make mesa follow the established convention and change the names of the provied packages to virtual-foo-icd. Fixes: 9d3b4c9bc403 ("mesa: sort out PROVIDES for the glvnd case") (From OE-Core rev: d69e06dbd8575e258a4542f34c5eaba413da7750) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: remove consecutive blank linesAlexander Kanavin2025-06-201-1/+0
| | | | | | | | | | | | | | | | | Some of them were introduced by mass-removal of S = WORKDIR/git assignments; rather than try to fix up (or redo) just these, I've run this sed command over the whole tree: sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name *.bb -o -name *.inc` The rationale is that more than one empty line is wasting vertical screen space, and does nothing for readability. (From OE-Core rev: cedc4ff7c9bcfb22a20e43e47f9759f4007a4f1a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: set S to be in UNPACKDIR in recipes that explicitly set SAlexander Kanavin2025-06-202-2/+2
| | | | | | | | (From OE-Core rev: 7321cc17ae5483f17fe9cdffea7b62acd9d9c3a2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: do not build nouveau NVIDIA gallium-llvm driver if not requestedQuentin Schulz2025-06-161-5/+7
| | | | | | | | | | | | | | | | | | The Nouveau driver is used for NVIDIA GPUs and thus doesn't really need to be always enabled when building gallium-llvm drivers. So let's guard it with a nouveau PACKAGECONFIG. The only intended change is nouveau not being build on target mesa on non-x86/i686 machines when building gallium-llvm drivers as I assume NVIDIA GPUs aren't that common on other CPU architectures (tegra already bringing in the nouveau driver should handle the NVIDIA SoCs that would benefit from nouveau driver and thus are not impacted by this change). (From OE-Core rev: 22e7f562fb4b5becc342fe7d60c37c70e42ccf6b) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: do not build r300 AMD gallium-llvm driver if not requestedQuentin Schulz2025-06-161-1/+2
| | | | | | | | | | | | | | | | It doesn't make much sense to always build the r300 AMD gallium LLVM driver as that's HW-specific. Instead, let's guard it with the amd PACKAGECONFIG. This will only disable R300 for target mesa on non-x86/i686 machines where gallium-llvm PACKAGECONFIG is selected but not amd, otherwise behavior is left unchanged. (From OE-Core rev: 28d41017ffd03d0bcc4ef0272a95d19412488624) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 25.1.1 -> 25.1.3Markus Volk2025-06-092-36/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mesa 25.1.3 Release Notes / 2025-06-07 Mesa 25.1.3 is a bug fix release which fixes bugs found since the 25.1.2 release. Mesa 25.1.3 implements the OpenGL 4.6 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don’t support all the features required in OpenGL 4.6. OpenGL 4.6 is only available if requested at context creation. Compatibility contexts may report a lower version depending on each driver. Mesa 25.1.3 implements the Vulkan 1.4 API, but the version reported by the apiVersion property of the VkPhysicalDeviceProperties struct depends on the particular driver being used. New features None Bug fixes 25.1.2 - instant crash on upgrade, very first attempt at a new surface Mesa 25.1.2 Release Notes / 2025-06-04 Mesa 25.1.2 is a bug fix release which fixes bugs found since the 25.1.1 release. Mesa 25.1.2 implements the OpenGL 4.6 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don’t support all the features required in OpenGL 4.6. OpenGL 4.6 is only available if requested at context creation. Compatibility contexts may report a lower version depending on each driver. Mesa 25.1.2 implements the Vulkan 1.4 API, but the version reported by the apiVersion property of the VkPhysicalDeviceProperties struct depends on the particular driver being used. New features None Bug fixes Confidential issue #13281 anv, regression: Missing terrain in It Takes Two on BMG “breaking-limit” benchmark will Freeze before starting. rusticl: CL_MEM_HOST_READ_ONLY cl_image2d reads zeroes from host on AMD Vega8 Bug (bad code optimization?) in the GLSL (compute) shader compiler nvk: Broken lighting in Trine 5 RX9070 hard crash with Mafia Definitive Edition RADV: Potential bug with vulkan fragment shader interpolation (on outputs from mesh shaders?) In the game “Foundation” a buildings areas of effect is missing ANV: Dota 2 May 22 2025 update crashing in vkCmdBindDescriptorSets with no validation error Vulkan Video engages during playback of format which is not supported by my Fiji GPU Weston hangs on virtio (non-accelerated version) on QEMU with Mesa main KVM/qemu: GDM fails to start / gnome-shell crashes after update to mesa-dri-drivers-25.0.3 (From OE-Core rev: da2c318f530a29b42c36fe8d5015fcdd3e1c1420) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa-demos: drop osmesa PACKAGECONFIGDmitry Baryshkov2025-06-091-1/+0
| | | | | | | | | | | | | Support for OSMesa has been removed in the latest Mesa versions, drop corresponding PACKAGECONFIG option from mesa-demos. Note, there is no need to pass -Dosmesa=disabled, meson will detect that the library is not available. Suggested-by: Khem Raj <raj.khem@gmail.com> (From OE-Core rev: 27e7e3bff40a884044a19e52d0eaa35a80880464) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa-gl: drop obsolete commentDmitry Baryshkov2025-06-091-1/+0
| | | | | | | | | | Drop comment mentioning OSMesa (which was removed from mesa). Fixes: 7ee8e99a5204 ("mesa-gl: Remove osmesa dependency") (From OE-Core rev: f1b96c3009a2c21cf6f63cd07b7eee60da5cad34) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: add support for Teflon, TFLite delegateDmitry Baryshkov2025-05-291-0/+4
| | | | | | | | | | | | | Extend mesa PACKAGECONFIG with new option, teflon, enabling building of the TFLite delegate, libteflon.so. Currently it supports only VeriSilicon NPUs. Suggested-by: Fathi Boudra <fathi.boudra@linaro.org> (From OE-Core rev: d639f2e3e6922efe845cf84fb35d729167693adb) 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>
* mesa: remove XA tracker supportDmitry Baryshkov2025-05-292-6/+34
| | | | | | | | | | | | | 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>
* mesa-gl: Remove osmesa dependencyKhem Raj2025-05-291-2/+2
| | | | | | | | | | | osmesa has been removed from recently upgrade mesa recipes remove it from the fallback for non-x11 systems (From OE-Core rev: 7ee8e99a52044e18cd35bde8d280274ce44e26d4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: move dri_internal header to mesa-devDmitry Baryshkov2025-05-271-2/+2
| | | | | | | | | | | | The GL/internal/dri_internal.h header is not a part of the OpenGL API. Instead it defines Mesa interface with DRI drivers. Move it to mesa-dev package to reside next to dri.pc. (From OE-Core rev: 72ad9950f0b6c44068e52be3bb3a015bd3affa06) 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>
* mesa: drop .so files for GLVND ICD librariesDmitry Baryshkov2025-05-271-1/+4
| | | | | | | | | | | | | | | If GLVND is enabled, Mesa provides two ICD libaries, libEGL_mesa.so.0 and libGLX_mesa.so.0. During the installation it also creates two extra symlinks, libEGL_mesa.so and libGLX_mesa.so, however those symliks are unnecessary and useless as nothing will ever link to those ICD archives. Remove them from the install dir, which also makes package libglx-mesa-dev disappear (it contained only this symlink). (From OE-Core rev: badb1ee13ec87923aa6c4cdeb90756cc370e10bc) 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>
* mesa: sort out PROVIDES for the glvnd caseDmitry Baryshkov2025-05-271-3/+9
| | | | | | | | | | | | | | | If mesa is built with GLVND enabled, it doesn't provide GL / GL ES / EGL libraries directly. Instead it provides two ICD libraries: libEGL_mesa.0 and libGLX_mesa.so.0. Remove virtual provides from the glvnd case (dropping incorrect virtual/libglx provider while we are at it) and replace those with runtime providers (to be used by libglvnd in order to pull corresponding ICDs). (From OE-Core rev: 9d3b4c9bc40392ba87f110ec5db0dedf381b8c4a) 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>
* mesa: don't set RCONFLICTS / PROVIDES if glvnd is enabledDmitry Baryshkov2025-05-271-21/+21
| | | | | | | | | | | | | | If glvnd is enabled, mesa packages do not provide full library implementations (instead it provides two ICDs, one for EGL, one for GLX). This means that there is no more conflict between mesa packages and other vendor packages. Stop setting those extra tags for mesa packages. (From OE-Core rev: b1b8a0f69dafe23c992754cffb7aaf575753e564) 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>
* mesa: drop gallium-pipe supportDmitry Baryshkov2025-05-271-4/+1
| | | | | | | | | | | With Clover being gone, there are no more separate gallium-pipe libraries. Drop corresponding parts of the recipe. (From OE-Core rev: b668f51f0384029892e8a87935c5fad26dd4e690) 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>
* mesa: don't add extra tags to the libopencl-mesa packageDmitry Baryshkov2025-05-271-6/+9
| | | | | | | | | | | | | | The libopencl-mesa package provides OpenCL ICDs (Installable Client Drivers). As such, there is no conflict between several packages providing ICDs for different vendors. Split the loop that modifies package metadata and stop adding extra RPROVIDES / RCONFLICTS / RREPLACES tags to the libopencl-mesa package. (From OE-Core rev: 6849af6df74f4a30ab7820a698598932832498dc) 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>
* mesa: drop the libopencl-mesa-dev packageDmitry Baryshkov2025-05-271-3/+5
| | | | | | | | | | | | | | Thre is no "development" package for libopencl-mesa. The main package contains Installable Client Drivers, for which there are no headers and the extra .so file isn't supposed to be linked with anything. Drop the useless and confusing libopencl-mesa-dev package. (From OE-Core rev: 2f9ee74eb7dfce569e9c49dca54e0ed4b5b8596d) 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>
* mesa: fold GL ES 3 packages into GL ES 2 onesDmitry Baryshkov2025-05-271-14/+4
| | | | | | | | | | | | | OpenGL ES 3 is closely tied to the OpenGL ES 2: there is no separate library, one can use GL ES 2 headers for GL ES 3 app, etc. Instead of having separate packages, merge GL ES 3 packages into GL ES 2 ones. Suggested-by: Böszörményi Zoltán <zboszor@gmail.com> (From OE-Core rev: 7c0e9c170db93d9af7cc505dcd71c4f3d6c4e9c5) 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>
* mesa: drop -Dgallium-opencl flagDmitry Baryshkov2025-05-271-5/+1
| | | | | | | | | | | | The Clover support has been deprecated upstream and got explicitly disabled by the 0001-dont-build-clover-frontend.patch patch. Drop it from the build flags. (From OE-Core rev: ba712aabaa7cb20e97dd9e97456357a0ed24337e) 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>
* mesa: drop useless -Dshared-glapi flagDmitry Baryshkov2025-05-271-1/+0
| | | | | | | | | | | Mesa 25.1 dropped support for static glapi, making this switch deprecated (and useless). Drop it from the build options. (From OE-Core rev: 4a06d51f9917a71ab1df31bcb6ce7f67dfce7139) 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>
* mesa: remove OSMesa supportDmitry Baryshkov2025-05-271-5/+0
| | | | | | | | | | | Mesa 25.1 has dropped OSMesa support. Remove corresponding bits from the recipe. (From OE-Core rev: 8d134f130b9e3b9b8f6508d2ba84223c4e23cffa) 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>
* mesa: make asahi dependent on openclMarkus Volk2025-05-271-3/+2
| | | | | | | | | | | asahi not only depends on libclc but also requires rusticl -remove obsolete comment (From OE-Core rev: 9645fd0864b8ec3495bf74058ffbf056583677d5) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 25.1.0 -> 25.1.1Markus Volk2025-05-271-4/+4
| | | | | | | | | | - install gbm_backend_abi.h into libgbm-dev package (From OE-Core rev: 20c3490811fee0dcda7a90d177d26070e782d66e) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: add support for asahi driversMarkus Volk2025-05-191-2/+6
| | | | | | | | (From OE-Core rev: 9bd16b398ff40d6172b33fb0a0f369a2c79ea03a) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 25.0.5 -> 25.1.0Markus Volk2025-05-195-240/+33
| | | | | | | | | | | | | | - drop two merged patches - clover frontend is always compiled, even if not enabled clover is deprecated and was removed in master branch add a patch to fix that - install gbm_backend_abi.h (From OE-Core rev: 3d334e5b1e0e152178afce73f01cd1a3ded30677) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Do not use envvar BINDGEN_EXTRA_CLANG_ARGSKhem Raj2025-05-081-4/+0
| | | | | | | | | | | Its now set in meson bbclass for native, nativesdk and target recipes correctly. (From OE-Core rev: 4e0bf4e1abab97ac149a7483742d466e9f07ddd4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Fix header search pathsKhem Raj2025-05-053-0/+179
| | | | | | | | | | | | | | | | | | | | | mesa build currently emits CLANG_RESOURCE_DIR into compiled objects and meson calculates it from llvm cmake files from sysroot and it points to absolute paths in target sysroot. To fix this backport a patch that does not rely on CLANG_RESOURCE_DIR, however, this patch still leaves it in code as fallback via FALLBACK_CLANG_RESOURCE_DIR, we are on LLVM 20.x which will not use this variable, lets just remove detection so it does not encode hardcoded paths. Fixes ERROR: mesa-2_25.0.2-r0 do_package_qa: QA Issue: File /usr/lib/libMesaOpenCL.so.1.0.0 in package libopencl-mesa contains reference to TMPDIR [buildpaths] ERROR: mesa-2_25.0.2-r0 do_package_qa: Fatal QA errors were found, failing task. (From OE-Core rev: afcde8eb575684fb514e1012b31bc0da04f4cb28) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Pass needed clang flags via BINDGEN_EXTRA_CLANG_ARGSKhem Raj2025-05-051-0/+4
| | | | | | | | | | | | | | | | This is needed for clang to find the c++ headers when invoked via bindgen Fixes | /mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux/mesa/25.0.2/recipe-sysroot/usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found | Unable to generate bindings: clang diagnosed error: /mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux/mesa/25.0.2/recipe-sysroot/usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found | (From OE-Core rev: 6d9f95a25dd32871e8c07ec3295a216236b3a7e0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: upgrade 25.0.2 -> 25.0.5Dmitry Baryshkov2025-05-052-32/+3
| | | | | | | | | Several fixes, mostly targeting AMD and Qualcomm platforms. (From OE-Core rev: a8502be8f943332df1ba8f57742d0508d5a8b4e5) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: bundle Clang OpenCL headers into meta-clcDmitry Baryshkov2025-04-232-1/+59
| | | | | | | | | | Add a patch bundling OpenCL headers into meta-clc. This removes extra runtime dependencies when runnign meta-clc compiler. (From OE-Core rev: 8a627d93a6a37382c75ca45f5afb9fec069877f8) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: drop the bindgen patchDmitry Baryshkov2025-04-232-72/+1
| | | | | | | | | | Drop the bingen-target and bindgen-includedir options in favour of the bindgen_clang_args being passed through the meson target file. (From OE-Core rev: efd31bbd52b94ac7633e5c9d1664f2305c074059) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Enable PanVK for panfrost PACKAGECONFIGQuentin Schulz2025-04-201-0/+1
| | | | | | | | | | | | | | | | | | If panfrost is enabled, we currently build panfrost tools and the gallium driver. There's also a vulkan driver available for panfrost, so let's enable it as well whenever panfrost PACKAGECONFIG is enabled, similarly to how it's done for the gallium driver. PanVK is the "commercial" name for the vulkan driver for panfrost but it's enabled under the panfrost name in meson. This was "tested" with `vkgears -info` with mesa-demos from commit 11939e1697b894be3c68a89e3ea86fc51a320836 on an RK3588-based system. (From OE-Core rev: a04b7772d65e0b92330b1d35e578b5d8ae01dcef) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: handle svga Gallium driver through PACKAGECONFIG tooDmitry Baryshkov2025-04-161-9/+7
| | | | | | | | | | For the sake of uniformity add the svga PACKAGECONFIG and use it to guard inclusion of the svga Gallium driver. (From OE-Core rev: 0fa6c2e6eb6c0b5eadb447bfa01a9b0930f9a9da) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: introduce amd PACKAGECONFIGDmitry Baryshkov2025-04-161-13/+8
| | | | | | | | | | | Follow the example of other hardware platforms and introduce a separate PACKAGECONFIG knbob for all AMD/ATI cards. Enable it by default on x86 platforms. (From OE-Core rev: 6a2170ea7722c214412c05a7b98eede41611bb64) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: don't buid Intel drivers outside of x86 worldDmitry Baryshkov2025-04-161-9/+8
| | | | | | | | | | | It mostly doesn't make sense to build i915 & Co drivers for non-x86 targets. Add separate 'intel' PACKAGECONFIG entry (enabled by default on x86) and use it to select Intel-related drivers. (From OE-Core rev: 77c18b21cee43f25486337b958635fbe991321ac) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update patch statusDmitry Baryshkov2025-04-161-1/+1
| | | | | | | | | | Update status of mesa build fix as the patch have been submitted to the project. (From OE-Core rev: 1857b8b1dd0e36785e57f30c0629accfee3c8f27) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: drop kmsro PACKAGECONFIGDmitry Baryshkov2025-04-161-2/+0
| | | | | | | | | | | | Mesa has dropped support for separate kmsro option to gallium-drivers. Drop it from the recipe and drop the now-unused PACKAGECONFIG too. Reported-by: Martin Jansa <martin.jansa@gmail.com> Closes: https://lore.kernel.org/r/CA+chaQeWA01kB3q6=o4xcZwA1TMggHxYTZ0AZETY7he_yU3E1A@mail.gmail.com/ (From OE-Core rev: 3d9ec347e651e05d0246a8723ca4038bb1f5b765) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa-demos: fix detection of GLX headersRoss Burton2025-04-162-0/+47
| | | | | | | | | | | | | | | | Backport a patch from upstream to fix the build when glx.pc isn't found, but the glx headers are available. As libglvnd is the only provider of glx.pc and by default we build without libglvnd, this is common. This solves the problem where mesa-demo is missing the GLX demos, such as glxgears. [ YOCTO #15825 ] (From OE-Core rev: 764765e48ff02e412944bdca8885fb30ea0cbb76) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: remove obsolete deletion of .la filesRoss Burton2025-04-161-6/+0
| | | | | | | | | | As Mesa is built with Meson now, there's no need to delete the .la files as they're not installed in the first place. (From OE-Core rev: 9d5541c8b9e7713abd6c8e32a6881304f3349cb2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: add support for RustiCL under PACKAGECONFIG "opencl"Zoltán Böszörményi2025-04-112-5/+83
| | | | | | | | | | | | | | | | Mesa now has two OpenCL implementations: Clover (older one) and RustiCL (newer one). Extend the "opencl" package config to include both implementations into the libopencl-mesa (-dev) packages. As the Clover implementation is in maintenance mode and is expected to be removed at Mesa 25.2, it doesn't make sense to split the packages or to provide two config options. (From OE-Core rev: d76672d674b1e354ad774b8cef2d8b6cd4c9f400) Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> [DB: merged "rusticl" and "clover" back to "opencl", reworked rust inheritance] Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: upgrade 24.0.7 -> 25.0.2Dmitry Baryshkov2025-04-117-242/+117
| | | | | | | | | | | | | | Upgrade the Mesa package, dropping applied and refreshing outstanding patches. The dri3 config option is now gone, dependencies are merged into X11 deps. The swrast gallium driver has been split into softpipe and llvmpipe drivers. Reworked OpenCL support to use mesa_clc compiler. License-Update: license text cleared and clarified. (From OE-Core rev: f9eb0468e45ee5a6a3b3195ef5e78c328c4347c9) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa-demos: update 8.5.0 -> 9.0.0Alexander Kanavin2025-03-203-865/+8
| | | | | | | | | | | | | | | | | | | | The new version is in a location that isn't discoverable by upstream version checks, and so has been overlooked for a while. Drop patches: 0001-mesa-demos-Add-missing-data-files.patch (backport) 0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch (very old patch rejected by upstream as not necessary and not making sense: https://gitlab.freedesktop.org/mesa/demos/-/issues/9 ) Disably wayland for now due to libdecor dependency, adjust other feature dependencies as needed. (From OE-Core rev: 59a9e96fa43e18af932cec7c2f1a36d9fcafff94) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: correct download locationAlexander Kanavin2025-03-203-3/+3
| | | | | | | (From OE-Core rev: 6f12ecd4e69f482834c8ba4115f9a119d1bfae75) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest: Fix variable assignment whitespaceRichard Purdie2025-02-011-13/+13
| | | | | | | | | | Recipes are much more readable with whitespace around the assignment operators. Fix various assignments in OE-Core to show this is definitely the preferred formatting. (From OE-Core rev: 30ea609d3357fb3de911f2f6a5e6856c151b976a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Fix missing GLES3 headers in SDK sysrootTom Hochstein2025-01-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | Building weston with core-image-weston SDK fails: ``` ../libweston/renderer-gl/gl-shader-config-color-transformation.c:29:10: fatal error: GLES3/gl3.h: No such file or directory 29 | #include <GLES3/gl3.h> | ^~~~~~~~~~~~~ ``` Both GLES2 and GLES3 implementations are contained in libGLESv2.so.2, which is packaged in libgles2-mesa. However, the headers are split between libgles2-mesa-dev and libgles3-mesa-dev, which is why the GLES3 headers end up missing in the SDK sysroot. Add a dependency so the GLES3 headers are properly associated with the GLES3 implementation. (From OE-Core rev: 7e1308ec413e69a8427ac5998431005d9e4b8033) Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: set PV from the .inc file and not via filenamesAlexander Kanavin2024-08-233-0/+1
| | | | | | | | | | | This allows automated updates of the recipe together with mesa-gl variant, and avoids having to check that update submissions do include mesa-gl file rename. (From OE-Core rev: f5cfb3e23603cefb2f3f6bfe776afaedefd10808) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>