summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
AgeCommit message (Collapse)Author
2021-01-04mesa: add more details to elf-tls patchAnuj Mittal
Include link to upstream report and the last autobuilder failure [1] so it's easy to identify why this is needed in future. [1] https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/1160/steps/8/logs/step1c Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 28647f8e4fb5fe2e56f0609900187bc658ba9ccf) Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-06-16mesa: Remove -fcommonAdrian Bunk
This was fixed in upstream version 20.0. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1d269a3f3a84cae92e611e02082150cfd97f8258) Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-03-30mesa-gl: Allow mesa-gl to build without X11 enabled.Mark Hatle
Trying to build mesa-gl without X11 enabled, results in numerous errors about being incorrectly configured, such as: ERROR: Problem encountered: building dri drivers require at least one windowing system or classic osmesa A rendering engine must be available, so per the error we enable osmesa if X11 is not available. Once 'osmesa' is enabled we also need to make sure that swrast for DRI is also available. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-25mesa: upgrade 20.0.1 -> 20.0.2Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-07mesa: updated to mesa 20.0.1 releaseNathan Hartman
Updated to 20.0.1 release: https://www.mesa3d.org/relnotes/20.0.1.html Signed-off-by: Nathan Hartman <hnathan918@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-06mesa: updated to 20.0 releaseNathan Hartman
Updated mesa and mesa-gl recipes to 20.0 release. The license checksum difference is due to a small change in the license formatting. The asterisk for footnotes was changed to a '[1]' See: https://gitlab.freedesktop.org/mesa/mesa/-/commit/199572b65b7a03ffc887783e7f0f96f95bf1f99d glxgears runs successfully at 60 fps on a rpi4. Signed-off-by: Nathan Hartman <hnathan918@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-29mesa: add fix for arm6Jeremy Puhlman
We have had similar problems with missing atomics on arm6 that arm5 has. Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-21mesa: upgrade 19.3.3 -> 19.3.4Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-08mesa: upgrade 19.3.1 -> 19.3.3Wang Mingyu
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-27mesa: Allow building the virgl driver to be configurableFred Baksik
If a .bbappend file sets GALLIUMDRIVERS then virgl is always being appended to the list of drivers to be built. Make virgl an optional component. Signed-off-by: Fred Baksik <fred.baksik@mrcy.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2020-01-21mesa: Help compile with clang/mipsKhem Raj
meson is detecting it does not support 64bit attomics but then when defining local suppliments confused clang ../mesa-19.3.1/src/util/u_atomic.c:38:1: error: cannot redeclare builtin function '__sync_add_and_fetch_8' __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val) ^ ../mesa-19.3.1/src/util/u_atomic.c:38:1: note: '__sync_add_and_fetch_8' is a builtin with type 'long long (volatile long long *, long long, ...)' ../mesa-19.3.1/src/util/u_atomic.c:38:1: error: definition of builtin function '__sync_add_and_fetch_8' __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val) ^ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-31mesa: Upgrade to 19.3.1Alistair Francis
Upgrade mesa to 19.3 and refresh the patches. As MESA_EGL_NO_X11_HEADERS was renamed to EGL_NO_X11 in [1] we are going to change the do_install and add a patch to libepoxy to use the new define. 1: https://gitlab.freedesktop.org/mesa/mesa/commit/6202a13b71e18dc31ba7e2f4ea915b67eacc1ddb Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-30recipes: Use -fcommon explicitlyKhem Raj
This is needed with gcc 10 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-28mesa: Fix vc4 build for 64bit time_t changes on 32bit archesKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-12-16mesa.inc: allow the user to choose the build typeTrevor Woerner
Upstream mesa can either be built as a debug release (the default) or a production release. This patch allows the user to choose which one they want by setting MESA_BUILD_TYPE to either 'production' or 'debug' as they see fit. Under OpenEmbedded a production build will be performed by default. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-21mesa: Upgrade to 19.2.4Alistair Francis
Upgrade mesa and mesa-gl to 19.2.4. The license hash change was a trivial new line removal. The glx-tls option was removed as it isn't included in the meson.build file. It has been replaced with 'use-elf-tls' instead. I have backported the asm removal as an attempt to fix the musl build issue. Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-21distro_features_check: expand with MACHINE_FEATURES and COMBINED_FEATURES, ↵Denys Dmytriyenko
rename Besides checking DISTRO_FEATURES for required or conflicting features, being able to check MACHINE_FEATURES and/or COMBINED_FEATURES may also be useful at times. Temporarily support the old class name with a warning about future deprecation. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-04mesa: fix meson configure fix when 'dri' is excluded from PACKAGECONFIGYann Dirson
Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-10-02mesa: Add freedreno PACKAGECONFIG optionOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-09-15mesa: no need to depend on target python3Ross Burton
2019-09-15mesa: Upgrade 19.1.1 -> 19.1.6Otavio Salvador
- Add python3 to DEPENDS: mesa commit cb3072488c changed function that verifies python installation and to this new function works we need to have Python3 in DEPENDS. This is a bugfix only set of releases. Check following links for the relevant release notes: - https://www.mesa3d.org/relnotes/19.1.2.html - https://www.mesa3d.org/relnotes/19.1.3.html - https://www.mesa3d.org/relnotes/19.1.4.html - https://www.mesa3d.org/relnotes/19.1.5.html - https://www.mesa3d.org/relnotes/19.1.6.html Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-08-30mesa: Add support for the panfrost PACKAGECONFIGNeil Armstrong
Add support to enable the Panfrost Gallium driver in PACKAGECONFIG Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-30mesa: disable gallium swrast driver on x86 x32Alexander Kanavin
It was found to crash the X server on startup under qemu. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-21mesa: fix upstream version checkAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-08-16mesa: Add packageconfigs for vc4 and v3dKhem Raj
This helps in enabling them via packageconfig from SOC layers Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-13mesa: enable glx-tls option in native and nativesdk buildsAlexander Kanavin
Before meson conversion this was always enabled; now it needs to be explicitly switched on. This un-breaks the virgl headless test in particular, which regressed with the meson conversion (and the test is not currently run on AB due to oudated graphics hardware in it). Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-07libglu:upgrade 9.0.0 -> 9.0.1Zang Ruochen
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-07mesa,llvm,meson: Update llvm to 8.0.1 plus define and use LLVM version globallyKhem Raj
- Add missing dependency on libedit - Define LLVMVERSION on the same lines as GCCVERSION and other tools - Use LLVMVERSION in mesa and meson.bbclass to get llvm version instead of hardcoding it - Use llvm patches unmodified from meta-clang, helps in keeping them in sync - Define PREFERRED_VERSION for llvm, llvm-native, nativesdk-llvm Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-27mesa: Add support for the lima PACKAGECONFIGAlistair Francis
Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-27mesa: Update 19.1.0 -> 19.1.1Fabio Berton
Mesa 19.1.1 is a bug fix release which fixes bugs found since the 19.1.0 release. For a complete changelog see: https://www.mesa3d.org/relnotes/19.1.1.html Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-14mesa: Update 19.0.6 -> 19.1.0Fabio Berton
Update all patches to apply on 19.1.0 version. See full mesa 19.0.1 changes here: - https://www.mesa3d.org/relnotes/19.1.0.html Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-08mesa: Update 19.0.5 -> 19.0.6Fabio Berton
Mesa 19.0.6 is a bug fix release which fixes bugs found since the 19.0.5 release. For full log see: - https://www.mesa3d.org/relnotes/19.0.6.html Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-02mesa-demos: update to 8.4.0Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-01mesa: Update 19.0.3 -> 19.0.5Fabio Berton
Mesa 19.0.5 is a bug fix release which fixes bugs found since the 19.0.3 release. For full log see: - https://www.mesa3d.org/relnotes/19.0.5.html - https://www.mesa3d.org/relnotes/19.0.4.html Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-28mesa: Fix patch Upstream-StatusRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-27mesa: Fix a case when gbm is enabled but DRIDRIVERS is not definedKhem Raj
This is a typical scenario with arm platforms, with meson if DRIDRIVERS is empty then dri is disabled automatically, but gbm needs dri2 enabled for it to have proper backend, in autotools we could use --enable-gbm --enable-dri and get correct behaviour but with meson enabling dri2 only works if DRIDRIVERS is not empty This fixes mesa-gl build for rpi machines when using userland graphics Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-17mesa: fix imx gallium driver PACKAGECONFIG optionMarco Felsch
Since commit [1] the imx-drm driver is covered by the generic kmsro driver. [1] https://gitlab.freedesktop.org/mesa/mesa/commit/ \ 41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2 Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-16mesa: Convert recipe to use meson build systemFabio Berton
- Remove all non related meson patches - Change radeon driver to r100 - Add python3-mako-native gettext-native to DEPENDS Based on https://patchwork.openembedded.org/patch/158748/ Alex: added a patch to restore glx-tls option, which addresses the musl runtime issue. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-26mesa: Update 19.0.1 -> 19.0.3Fabio Berton
Mesa 19.0.3 is a bug fix release which fixes bugs found since the 19.0.1 release. For full log see: https://www.mesa3d.org/relnotes/19.0.2.html https://www.mesa3d.org/relnotes/19.0.3.html Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-29llvm: fix more places where '8.0' version of llvm was hardcodedAlexander Kanavin
So that it says '8.0.0' to reflect the recent PV change. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-29mesa: update 19.0.0 -> 19.0.1Alexander Kanavin
x.0.0 releases are actually considered 'development' by the upstream, and true releases are x.0.1: https://www.mesa3d.org/relnotes/19.0.0.html Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-24mesa: Update 18.3.4 -> 19.0.0Fabio Berton
- Patch 0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch was applied on commit e68777c87ceed02ab199b32f941778c3cf97c794. - Refresh all patches - mesa 19.0.0 deprecated the use of autotools and we need to add --enable-autotools flag. For details see mesa commit: e68777c87ceed02ab199b32f941778c3cf97c794 The complete change log can be found here: https://www.mesa3d.org/relnotes/19.0.0.html Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-28mesa-gl: Set PACKAGECONFIG for targetKhem Raj
mesa.inc uses PACKAGECONFIG_class-target override to setup default packageconfigs, which means that when we build mesa-gl for target then it does no honor the ??= setting we have in mesa-gl recipe, and ends up compiling egl, gles2 as well, which is not intended. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25mesa: Add opengl to native and nativesdk PACKAGECONFIGFabio Berton
Allow the use of opengl for native and nativesdk packages. Based on https://patchwork.openembedded.org/patch/158748/ Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25mesa: Replace dri-native with dri for native and nativesdk classesFabio Berton
Instead of using a native specific packageconfig option, we now set the swrast as the supported driver. Currently the native version does not build any dri drivers at all. This is intentional: mesa-native is used only by virgl, so was made the most minimal possible configuration for mesa-native so that a) virgl works; and b) build time is as short as possible. There are two swrast drivers, one dri-based, another gallium-based. Autotools lets you build both, meson forces you to choose. Thus DRIDRIVERS = "swrast" is only set for _native, as for _target we get the gallium driver instead. See discussion here [1] Based on https://patchwork.openembedded.org/patch/158748/ [1] https://patchwork.openembedded.org/patch/158806/ Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25mesa: Update 18.1.9 -> 18.3.4Fabio Berton
- Refresh all patches. - Remove "Use Python 3 to execute the scripts" patch Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support for both python 2 and 3. - Remove "dri: i965: Add missing time.h include" patch Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h header file. - Remove --enable-texture-float. Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to unconditionally enable floating-point textures. - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved ${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf Add 00-mesa-defaults.conf to mesa-megadriver package - Stop removing ${sysconfdir}/drirc on do_install_append - Fix upgrade path from mesa to mesa-megadriver - Add patch to fix mesa-native build - Add xrandr to X11_DEPS Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-03llvm,mesa: Upgrade to upcoming 8.0.0 releaseKhem Raj
License-Update: Copyright year updates from 2017-2019 Refresh patches to apply on new version mesa move dep to the llvm release to 8.0 Needs to happen along with llvm upgrade always Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-31mesa: enable native and nativesdk variantsAlexander Kanavin
Note that only the most minimal necessary subset of mesa is built; particularly we don't build any drivers as that is offloaded to the GL implementation provided by the host. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-18mesa: Allow building the r600 driverAlistair Francis
The r600 DRI driver does not require LLVM, so remove it from the LLVM dependency PACKAGE_CONFIG. Also remove the x86 requirement on the drivers as they are work on non-x86 systems. This was tested on a RISC-V board. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-14meta: Fix Deprecated warnings from regexsRichard Purdie
Fix handling of escape characters in regexs and hence fix python Deprecation warnings which will be problematic in python 3.8. Note that some show up as: """ meta/classes/package.bbclass:1293: DeprecationWarning: invalid escape sequence \.   """ where the problem isn't on 1293 in package.bbclass but in some _prepend to a package.bbclass function in a different file like mesa.inc, often from do_package_split() calls. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>