summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa.inc
Commit message (Collapse)AuthorAgeFilesLines
* native: Stop clearing PACKAGESRichard Purdie2021-01-291-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Native recipes have been special and they don't have packages generated from them. The RDEPENDS/RPROVIDES and other runtime package specific variables can contain important data about dependencies recipes need though and currently it is required to write this information explicitly in the native case. We now delete the packaging tasks for native recipes which removes the need to clear PACKAGES. The next step to improve the metadata is to stop clearing it and ensure any entries in these variables are remapped appropriately. The R* variables were already being processed by the class extension code but the implementation was suboptimal. This patch stops clearing PACKAGES and PACKAGES_DYNAMIC and fixes the places where that caused issues in OE-Core, for example PACKAGES additions in anonymous python without the "-native" suffix and a case where the included classes caused a self reference in DEPENDS which would once have been removed by the previous code. The implementation uses datastore/parser parameters to ensure that the variable overrides are not overwritten when calling setVar which is appropriate for a function as close to the core as this one is. Some now unneeded code in python3-setuptools is dropped, there are further changes like this which can follow. This change was verified with OE-Core by comparing task-depends.dot generated by "bitbake world -g" before and after the change, the files were identical. (From OE-Core rev: fd6a007efa7cb45101a66f294af81d9d33bb3fab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa,mesa-gl: upgrade to 20.3.2Dmitry Baryshkov2021-01-151-1/+1
| | | | | | | | | Upgrade mesa and mesa-gl recipes to version 20.3.2. (From OE-Core rev: 5ab325c18640dd6d17ac4592f3ba3e484a5bdb37) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.2.4 -> 20.3.1Trevor Woerner2020-12-241-6/+2
| | | | | | | | | | | | | | | | | | | Two of the patches have been applied upstream: 0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch 0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch The 'surfaceless' platform is now enabled by default, therefore it is no longer a valid choice. The meson build system is intelligent enough now to decide if 'drm' needs to be enabled based on whether or not gbm is available. Therefore 'drm' also is no longer a valid platform choice: ERROR: Options "drm, surfaceless" are not in allowed choices: "auto, x11, wayland, haiku, android, windows" RP: Add missing mesa-gl upgrade (From OE-Core rev: de68fe9268092c0600a81bedfc805eaed9dcb87b) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa.inc: switch true/enabled false/disabledTrevor Woerner2020-12-201-11/+11
| | | | | | | | | | | | | | | | | | | | | A number of options have been switched from true/false to enabled/disabled and the older usage is deprecated, as is seen in the configuration logs: ../mesa-20.3.1/meson.build:92: WARNING: gles1 option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:100: WARNING: gles2 option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:119: WARNING: shared-glapi option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:381: WARNING: gbm option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:412: WARNING: egl option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:493: WARNING: dri3 option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:516: WARNING: gallium-vdpau option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:570: WARNING: gallium-xvmc option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:691: WARNING: gallium-va option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:727: WARNING: gallium-xa option "false" deprecated, please use "disabled" instead. (From OE-Core rev: acf78fd3d03e4fe07ee4ad677f178d17dc10ac7b) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: remove patch disabling asmAnuj Mittal2020-12-151-4/+0
| | | | | | | | | | | | | | | | | | | This was originally added for musl only [1]. Upstream has removed this option but we reverted that change during an upgrade to fix certain musl specific compile time issues [2]. I compile tested without this patch on musl-x86 and musl-x86-64 and don't see the warnings anymore. Similar textrel issues were fixed upstream so perhaps those helped [3]. [1] https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit?id=68bf128e901e89d5b49a28b15d5083b2bf6b536f [2] https://www.openembedded.org/pipermail/openembedded-core/2019-November/289222.html [3] https://gitlab.freedesktop.org/mesa/mesa/-/commit/45206d7673adb1484cbdb3eadaf82e0849c9cdcf?merge_request_iid=1974 (From OE-Core rev: a7bd1c3ca4d2f8a5e230b19517af1c52aec35f3e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Update 20.2.1 -> 20.2.4Fabio Berton2020-12-091-1/+1
| | | | | | | | | | This commit adds the changes of 20.2.2, 20.2.3 and 20.2.4 bug fix releases. (From OE-Core rev: 9c39a1360d81264e867242f238f6d14fdb395e96) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: drop _PYTHON_SYSCONFIGDATA_NAME hacksAlexander Kanavin2020-11-161-5/+0
| | | | | | | (From OE-Core rev: d3a81dd0e72a3495bfc7cc969c2bb806b666023d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add xcb-fixes to loader when using x11 and dri3Tom Hochstein2020-11-131-0/+1
| | | | | | | | | Backport fix for undefined symbol for xcb_xfixes_create_region in loader_dri3_helper.c. (From OE-Core rev: fd55d41c9d2e79fd7f7665107d1640a2dd9a3dc3) Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: fix a build raceAlexander Kanavin2020-11-081-0/+1
| | | | | | | (From OE-Core rev: df243fa624f3acf20abc7574909bd43db2ed9d12) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.1.8 -> 20.2.1Alexander Kanavin2020-10-301-11/+12
| | | | | | | | | | | | | | Build tweaks: - drop separate dri option and the patch that adds it; just setting -Ddri-drivers='' is enough - strip leading/trailing commas from drivers' lists, as upstream no longer allows blank entries if the list is not empty (e.g. -Ddri-drivers=,driver1,driver2 is now producing an error). - drop the long-obsolete llvm 3.3/3.2 logic License-Update: reformatted into rst (From OE-Core rev: 8682024ef029241c75e224174fd0b93835f88df3) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Fix build on 32bit arches supporting 64bit time_t onlyKhem Raj2020-10-201-0/+1
| | | | | | | | | | | | | Fixes ../mesa-20.1.8/src/util/futex.h:47:19: error: use of undeclared identifier 'SYS_futex'; did you mean 'sys_futex'? return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); ^~~~~~~~~ sys_futex (From OE-Core rev: 21bdff510a7673ccf7f27f551b641a5ba84d656c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.1.6 -> 20.1.8Anibal Limon2020-09-231-1/+1
| | | | | | | (From OE-Core rev: 166276bc6ad44d05b2b79ddef2ed3de3a2236631) Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.1.5 -> 20.1.6Alexander Kanavin2020-09-031-1/+1
| | | | | | | (From OE-Core rev: 28a0c267bde3710f0debe1a9a857c6387d090e23) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: upgrade 20.1.4 -> 20.1.5Alexander Kanavin2020-08-251-1/+1
| | | | | | | (From OE-Core rev: 993ac1a32932f2ebb571717769f654941e33c051) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.1.2 -> 20.1.4Alexander Kanavin2020-08-021-1/+1
| | | | | | | (From OE-Core rev: 5774386700196499eb6d29b93158165ad9c4c15c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: enable freedreno Vulkan driver if freedreno is enabledDmitry Baryshkov2020-07-271-0/+1
| | | | | | | | | | If freedreno is enabled in PACKAGECONFIG, enable respective Vulkan driver. (From OE-Core rev: eee63fdddaf74e548c362050f57e1d67eba1ba5d) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.0.7 -> 20.1.2Alexander Kanavin2020-06-281-2/+1
| | | | | | | (From OE-Core rev: 2ee962186176c5ecb34c670e76415d4321affe76) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: merge the .bb content into .incAlexander Kanavin2020-06-041-0/+22
| | | | | | | | | | | | This allows automated version updates to the recipe, as mesa-gl.bb no longer has to include the main mesa.bb. Bump mesa-gl to 20.0.7 at the same time. (From OE-Core rev: 39aba6948e04f1ee9bb4069be16f68bcfdbbeac4) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* multilib/recipes: Use new RecipePostKeyExpansion eventRichard Purdie2020-05-271-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are issues with multilib due to the ordering of events where some functions see the remapped multilib dependencies and some do not. A significant problem is that the multilib class needs to make some changes before key expansion and some afterwards but by using existing event handlers, some code sees things in a partially translated state, leading to bugs. This patch changes things to use a new event handler from bitbake which makes the ordering of the changes explcit. The challenge in doing this is that it breaks some existing anonymous python and dyanmic assignments. In some cases these used to be translated and no longer are, meaning MLPREFIX has to be added. In some cases these are now translated and the MLPREFIX can be removed. This change does now make it very clear when MLPREFIX is required and when it is not, its just the migration path which is harder. The patch changes the small number of cases where fixes are needed. In particular, where a variable like RDEPENDS is conditionally extended (e.g. with an override), MLPREFIX is now required. This patch also reverts: base: Revert 'base.bbclass: considering multilib when setting LICENSE_EXCLUSION' This reverts 6597130256a1609c3e05ec5891aceaf549c37985 as the changes to multilib datastore handling mean its no longer necessary. (From OE-Core rev: b3fda056a674889cd9697e779de023d4f993d3ce) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add PACKAGECONFIG knob to enable VDPAU state tracker and driversZoltan Boszormenyi2020-05-091-1/+5
| | | | | | | (From OE-Core rev: 7ea4c7c32cbad1743852c27a2f0a87d6cf5a1820) Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add PACKAGECONFIG knob to enable VAAPIZoltan Boszormenyi2020-05-091-0/+1
| | | | | | | | | | The previously added libva-initial recipe makes it possible and trivial. (From OE-Core rev: 1169238a4586852f807a63d9e70a8a556d84dac6) Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: enable x11 for native/nativesdkAlexander Kanavin2020-05-071-2/+2
| | | | | | | | | | This was found to be necessary for libsdl-native to enable opengl, as otherwise the opengl check would fall through to the host with unpredictable outcome. (From OE-Core rev: 53fb4937e5c2b293e6bdbbceb37b1080aa5db630) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: updated to 20.0 releaseNathan Hartman2020-03-061-1/+1
| | | | | | | | | | | | | | | 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. (From OE-Core rev: 0ee03e11bc2ae3faa6a2fcfdfae2ea35f7ba70ba) Signed-off-by: Nathan Hartman <hnathan918@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: add fix for arm6Jeremy Puhlman2020-02-291-0/+1
| | | | | | | | | | We have had similar problems with missing atomics on arm6 that arm5 has. (From OE-Core rev: 3971b6278f88b7f780f6d03847c2fed6bfd98d8c) Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Allow building the virgl driver to be configurableFred Baksik2020-01-271-2/+3
| | | | | | | | | | | | 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. (From OE-Core rev: 55256f06173de030a8f5181d72ac31d398edb398) Signed-off-by: Fred Baksik <fred.baksik@mrcy.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa.inc: allow the user to choose the build typeTrevor Woerner2019-12-161-0/+13
| | | | | | | | | | | | | 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. (From OE-Core rev: 6a6b775d69aa59102e1f6a68c88276be6d54a8e6) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Upgrade to 19.2.4Alistair Francis2019-11-211-6/+6
| | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: 82c2acc1f658f039becac04aa3dae696418bd1de) 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>
* distro_features_check: expand with MACHINE_FEATURES and COMBINED_FEATURES, ↵Denys Dmytriyenko2019-11-211-1/+1
| | | | | | | | | | | | | | | | 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. (From OE-Core rev: 5f4875b950ce199e91f99c8e945a0c709166dc14) Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add freedreno PACKAGECONFIG optionOtavio Salvador2019-10-021-0/+2
| | | | | | | | (From OE-Core rev: a37aafc691ea89e326352e360bfd97ad473f4287) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: no need to depend on target python3Ross Burton2019-09-161-1/+6
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Upgrade 19.1.1 -> 19.1.6Otavio Salvador2019-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | - 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 (From OE-Core rev: a870ce9261fffc2e4772e55bd2e727aa27172846) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add support for the panfrost PACKAGECONFIGNeil Armstrong2019-09-011-0/+3
| | | | | | | | | Add support to enable the Panfrost Gallium driver in PACKAGECONFIG (From OE-Core rev: 1685af76eb5d504e085a6e15fb16b902b89d857b) Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: disable gallium swrast driver on x86 x32Alexander Kanavin2019-08-301-0/+3
| | | | | | | | | It was found to crash the X server on startup under qemu. (From OE-Core rev: 045011ed29c0ab45892ad0881a4a8987f2adc977) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add packageconfigs for vc4 and v3dKhem Raj2019-08-211-0/+4
| | | | | | | | | This helps in enabling them via packageconfig from SOC layers (From OE-Core rev: 853179121e0f2149ca6365ac0b8ab5017079d5e6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: enable glx-tls option in native and nativesdk buildsAlexander Kanavin2019-08-131-2/+2
| | | | | | | | | | | | | | 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). (From OE-Core rev: 22d3f959e44b77cb6d7375a77cf028ceeb9d6cb4) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa,llvm,meson: Update llvm to 8.0.1 plus define and use LLVM version globallyKhem Raj2019-08-081-2/+4
| | | | | | | | | | | | | | | - 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 (From OE-Core rev: 3c08b638348abd543fc92baf56c28ca16ae6aac6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add support for the lima PACKAGECONFIGAlistair Francis2019-06-271-0/+3
| | | | | | | (From OE-Core rev: 8649c5e36969da061b39db4536d127128382fe15) Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Fix a case when gbm is enabled but DRIDRIVERS is not definedKhem Raj2019-05-271-1/+1
| | | | | | | | | | | | | | | | 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 (From OE-Core rev: 0c670a0fad379c3dc2a69ac5abfeaceda98a2f9c) 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>
* mesa: fix imx gallium driver PACKAGECONFIG optionMarco Felsch2019-05-171-2/+2
| | | | | | | | | | | | | | Since commit [1] the imx-drm driver is covered by the generic kmsro driver. [1] https://gitlab.freedesktop.org/mesa/mesa/commit/ \ 41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2 (From OE-Core rev: 2ac1d7401aa99c49c73d799ac73868f73d9b586a) 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>
* mesa: Convert recipe to use meson build systemFabio Berton2019-05-161-33/+31
| | | | | | | | | | | | | | | | | - 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. (From OE-Core rev: c72b6d46d392bfbcf54154f43663a7a8ada8c567) 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>
* llvm: fix more places where '8.0' version of llvm was hardcodedAlexander Kanavin2019-04-011-1/+1
| | | | | | | | | So that it says '8.0.0' to reflect the recent PV change. (From OE-Core rev: 3b4049157a72bcd984f93405a75946a39c045f2d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Update 18.3.4 -> 19.0.0Fabio Berton2019-03-251-1/+3
| | | | | | | | | | | | | | | | | - 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 (From OE-Core rev: 50b7418869b7d2f40adbfbb0844f710d9aa5c396) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Add opengl to native and nativesdk PACKAGECONFIGFabio Berton2019-02-251-2/+2
| | | | | | | | | | | Allow the use of opengl for native and nativesdk packages. Based on https://patchwork.openembedded.org/patch/158748/ (From OE-Core rev: 4a94dc8daab8890aaff36ffafdfe2feaa52902d4) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Replace dri-native with dri for native and nativesdk classesFabio Berton2019-02-251-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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/ (From OE-Core rev: 223ee432b908180932bf70e77d4058964d7f0786) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Update 18.1.9 -> 18.3.4Fabio Berton2019-02-251-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 (From OE-Core rev: 9ddd6add68f07fb7b3f264cee7c853ffe4a1b43e) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* llvm,mesa: Upgrade to upcoming 8.0.0 releaseKhem Raj2019-02-051-1/+1
| | | | | | | | | | | | | | 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 (From OE-Core rev: 96631d53becca8408758b405adc670ad7e2ea2f3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: enable native and nativesdk variantsAlexander Kanavin2019-01-311-7/+13
| | | | | | | | | | | 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. (From OE-Core rev: 621e9872ffd680e659d307a19ef5f65ef3bb36d0) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Allow building the r600 driverAlistair Francis2019-01-181-6/+10
| | | | | | | | | | | | | 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. (From OE-Core rev: 001b544db55101ab7a3f5f5910de6548542b6e2a) Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Fix Deprecated warnings from regexsRichard Purdie2019-01-161-2/+2
| | | | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: 4b1c0c7d5525fc4cea9e0f02ec54e92a6fbc6199) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Remove machine specific appendMark Hatle2018-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | If you try to build a system with multiple BSPs, one of which is qemux86 or qemux86-64, the overall system configuration will change and all of the graphics packages will end up being rebuilt each time. For a package based system, the PR values will also be incremented each time. The end result will be an ever growing set of PR values as well as being unable to tell which configured version of the graphics components are really being deployed. The solution was to always include the virgl gallium driver when an x86 based target is used. This may end up wasting some space, but solves the hash issue. (From OE-Core rev: 37e9465b342f6075ce13479dfed59cd2a7cc46ae) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>