summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Allow to use Etnaviv with i.MX8Frieder Schrempf2020-02-171-10/+10
| | | | | | | | | | | | | Currently the settings for i.MX8 are fixed to only allow to use OSMesa for offscreen rendering. Actually etnaviv is usable on i.MX8MM an it should therefore be possible to let Gallium be enabled instead of unconditionally disabling it. Therefore we introduce the USE_OSMESA_ONLY variable, that can be set to "no" for i.MX8 if etnaviv should be used just like for i.MX6. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> (cherry picked from commit deb2f61f227dcb31ed41629c98e5e5e1edf3afec)
* mesa: Use PACKAGECONFIG to enable Gallium driversFrieder Schrempf2020-02-171-2/+2
| | | | | | | | | We don't need to manipulate the GALLIUMDRIVERS variable. Setting the correct PACKAGECONFIG options is enough as the main recipe handles the rest. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> (cherry picked from commit 494ed8c9b7b211397ce621a36345539a23433ecc)
* mesa-demos: Remove workaround now that eglut_wayland event loop is fixedTom Hochstein2019-10-092-29/+0
| | | | | | | | | The eglut_wayland event loop is properly fixed, so the simple workaround patch is no longer necessary. https://gitlab.freedesktop.org/mesa/demos/commit/c539078c5fa592134f6f8a95be51c8eb318f5c39 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa: Enable Freedreno when using mainline BSPOtavio Salvador2019-09-201-3/+3
| | | | | | | | The Freedreno allows the i.MX53 SoC to run using the mesa as rendering, thus providing GPU support. Change-Id: I9bf08503f8c6020d50a2395fc27b15cb797cbba6 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-gl: Fix GPU compatibility using imxgpu overrideTom Hochstein2019-09-121-1/+1
| | | | | | | The override imxgpu was added some time ago since it is possible to have 3D support without 2D support. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa-demos: Improve variable namesTom Hochstein2019-09-121-9/+14
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa_%.bbappend: enable for all imx8 SoCsPeter Griffin2019-09-101-3/+3
| | | | | | | This allows a Weston build with swrast enabled to successfully build and boot on imx8m-evk board. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
* mesa: switch mesa to swrast renderer for mx8mm machine, resolve build issueAndrey Zhizhikin2019-08-231-0/+13
| | | | | | | | | | | | | | | After mesa update to 19.1.0, the OSMesa is not anymore explicitly set to 'classic' rather than defaults to 'none'. If the DRI driver is included in the build and neither gl nor 'classic' osmesa is used - this causes the build to fail. This commit disables the gallium for mx8mm, sets the dri drivers to swrast and explicitly defines the 'classic' osmesa to be built. gallium is disabled since current support state of i.MX8M Mini GPU in gallium is unknown. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* mesa: Use kmsro,vc4 only for armv7a and armv7veFabio Berton2019-04-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using etnaviv,kmsro,vc4 as GALLIUMDRIVERS with imx25pdk machine fails with error: ----- / | {standard input}: Assembler messages: | {standard input}:252: Error: selected processor does not support `vldm ip,{q0,q1,q2,q3}' in ARM mode | {standard input}:253: Error: selected processor does not support `vst1.8 d0,[lr],r8' in ARM mode | {standard input}:254: Error: selected processor does not support `vst1.8 d1,[r3],r8' in ARM mode | {standard input}:255: Error: selected processor does not support `vst1.8 d2,[lr],r8' in ARM mode | {standard input}:256: Error: selected processor does not support `vst1.8 d3,[r3],r8' in ARM mode | {standard input}:257: Error: selected processor does not support `vst1.8 d4,[lr],r8' in ARM mode | {standard input}:258: Error: selected processor does not support `vst1.8 d5,[r3],r8' in ARM mode | {standard input}:259: Error: selected processor does not support `vst1.8 d6,[lr]' in ARM mode | {standard input}:260: Error: selected processor does not support `vst1.8 d7,[r3]' in ARM mode | {standard input}:476: Error: selected processor does not support `vldm ip,{q0,q1,q2,q3}' in ARM mode | {standard input}:477: Error: selected processor does not support `vst1.8 d0,[lr],r8' in ARM mode | {standard input}:478: Error: selected processor does not support `vst1.8 d1,[r3],r8' in ARM mode | {standard input}:479: Error: selected processor does not support `vst1.8 d2,[lr],r8' in ARM mode | {standard input}:480: Error: selected processor does not support `vst1.8 d3,[r3],r8' in ARM mode | {standard input}:481: Error: selected processor does not support `vst1.8 d4,[lr],r8' in ARM mode | {standard input}:482: Error: selected processor does not support `vst1.8 d5,[r3],r8' in ARM mode | {standard input}:483: Error: selected processor does not support `vst1.8 d6,[lr]' in ARM mode | {standard input}:484: Error: selected processor does not support `vst1.8 d7,[r3]' in ARM mode | {standard input}:659: Error: selected processor does not support `vldm r5,{q0,q1,q2,q3}' in ARM mode \____ Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
* mesa: Replace imx with kmsro and vc4 in GALLIUMDRIVERSFabio Berton2019-03-271-1/+1
| | | | | | | | | | | | | | | | | mesa 19.0.0 remove imx from gallium drivers and add kmsro, vc4 is a kmsro dependency, so we need to enable too. mesa commit 41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2 Author: Rob Herring <robh@kernel.org> Date: Thu Jan 24 14:03:54 2019 -0600 Switch imx to kmsro and remove the imx winsys The kmsro winsys is equivalent to the imx winsys, so we can switch to it and remove the imx one. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
* remove True option to getVar callsAndré Draszik2019-01-171-1/+1
| | | | | | | | | | | | | | getVar() has been defaulting to expanding by default for a long time (2016), thus remove the True option from getVar() calls with a regex search and replace. Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik <andre.draszik@jci.com>
* mesa: Remove redundant install codeTom Hochstein2018-08-021-3/+0
| | | | | | | | Now that wayland 1.15 provides libwayland-egl, the main mesa recipe removes libwayland-egl from its install, so no need to repeat that here. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Fix condition for GLES supportTom Hochstein2018-07-051-3/+5
| | | | | | | | | The condition for GLES support was incorrect and would remove GLES for parts with both 2D and 3D. Fix the condition so GLES is removed only for parts with 2D and no 3D. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Fix do_install_append_imxgpu taskFabio Berton2018-07-031-1/+1
| | | | | | | usr/include/KHR is a directory, remove using rm -rf command. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Include glut for i.MX GPUTom Hochstein2018-06-291-0/+1
| | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Use the new imxgpu overrideTom Hochstein2018-06-291-13/+8
| | | | | | | Use imxgpu override for GPU 2D or 3D condition Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Update to use new imxgpu overrideTom Hochstein2018-06-291-3/+4
| | | | | | | | This makes use of new imxgpu override as future i.MX8M addition requires it as i.MX8M has 3D GPU but no 2D. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Adjust install for files provided by imx-gpu-vivTom Hochstein2018-06-291-6/+5
| | | | | | | | - Remove wayland-egl.pc - Remove KHR headers Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: CleanupTom Hochstein2018-06-291-3/+3
| | | | | | | | Fix variable order and remove references to non-existent packages. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Fix gbm provideOtavio Salvador2018-06-051-1/+1
| | | | | | | The gbm provide is virtual/libgbm, not gbm. Fix it. Change-Id: Iead2f2f1bc320136f9f75730e69afe8c7ec59b11 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Remove parts provided by imx-gpu-viv v6Tom Hochstein2018-03-151-3/+17
| | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Remove /usr/lib/pkgconfig/wayland-egl.pcFabio Berton2017-11-161-0/+4
| | | | | | | | The file /usr/lib/pkgconfig/wayland-egl.pc is installed by imx-gpu-viv and we need to remove from mesa. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: fix configuration rewriteMatt Madison2017-05-191-3/+2
| | | | | | | | | to change just the PACKAGECONFIG[x11] setting (without expansion), instead of overwriting EXTRA_OECONF (with expansion). Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Enable Etnaviv support when using 'use-mainline-bsp' overrideOtavio Salvador2017-03-271-0/+4
| | | | | | | This enables the Gallium backend and its Etnaviv driver. Change-Id: I8557932299f54d77d10015ea125cd26322c7c07b Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Set override for imxgpu2d machinesFabio Berton2017-01-271-1/+1
| | | | | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Rework recipe to use the feature overridesOtavio Salvador2017-01-271-12/+7
| | | | | | | | The recipe was still using the mx6 specific overrides, which is wrong. We should use the feature overrides so more SoCs can be dealt in the generic way. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Use machine overrides extenderTom Hochstein2016-12-161-3/+1
| | | | | | | Redo configuration using machine overrides extender. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Refactor to use the new i.MX feature overridesTom Hochstein2016-10-271-3/+12
| | | | | | | | Configure the package using the existence of 2D and/or 3D hardware. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Fix configuration for Wayland on i.MXTom Hochstein2016-10-271-4/+3
| | | | | | | | If distro features contains wayland, we assume a wayland backend and configure the package accordingly. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Make package configuration specific to i.MXTom Hochstein2016-10-271-1/+1
| | | | | | | | Changes to the package configuration should be applied only to i.MX builds. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-gl: Refactor code to use the new overridesOtavio Salvador2016-09-081-4/+1
| | | | | | | | | The recipe has been reworked to use the 'imxgpu2d' feature override. This override has been taken as it is the common only on the matching overrides. Change-Id: Id9b66b2c8f7c9ebff3f7ee9413700a6b42b8278d Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Fix incorrent spelling of Upstream-Status tag.Tom Hochstein2016-05-161-1/+1
| | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Rebase patches due to OE-Core changesTom Hochstein2016-05-161-30/+15
| | | | | | | | Update patch Add-OpenVG-demos-to-support-wayland.patch due to changes applied in OE-Core:b851cb0a. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-gl: Blacklist the recipe for i.MX6 SoCs with GPUOtavio Salvador2016-04-191-0/+4
| | | | | | | | | | | | | | | | | | The mesa-gl is not in sure for the i.MX6 SoC from Quad, DualLite, SoloX and SoloLite families. The full featured, but trimmed, mesa is used instead. This fixes following warning: ,---- | NOTE: multiple providers are available for runtime libgl-mesa-dev (mesa, mesa-gl) | NOTE: consider defining a PREFERRED_PROVIDER entry to match libgl-mesa-dev | NOTE: multiple providers are available for runtime mesa-driver-swrast (mesa, mesa-gl) | NOTE: consider defining a PREFERRED_PROVIDER entry to match mesa-driver-swrast `---- Change-Id: I082b8f7a739e4ea3cfe5f1760c7163d118e9883c Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Rework i.MX6 UltraLite support to not use other i.MX6 codeOtavio Salvador2016-04-192-29/+12
| | | | | | | | | | | | | | The i.MX6 UltraLite is very different from the other i.MX6 SoCs and the current BSP infrastructure needs to be reworked to allow for more granullar control of the features each SoC provide to control the changes to be applied for the SoC peripherals support. For now, it is not possible to express this clearly in the BSP so the current change is to revert some of the changes done for the i.MX6 UltraLite to be enabled and make sure that the boards using the SoC does not inherit the 'mx6' override. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Add Wayland and OpenVG supportLauren Post2016-04-193-1/+135
| | | | | | | | Add patches to support both OpenVG and Wayland support. Add configuration to enable in PACKAGECONFIG. Signed-off-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Drop Freescale official Linux kernel for i.MX23, i.MX28 and i.MX5 SoC familiesOtavio Salvador2016-04-191-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel provided by Freescale for i.MX28 and i.MX5 is too old (2.6.35.3) and there are no plans to upgrade it, as the OE-Core is going to use GCC 5.2 as default compiler soon and it is not possible to compile this kernel with the new toolchain, thus the removal. The metadata related to the i.MX23, i.MX28 and i.MX5 SoC family, which is dependant of this Linux kernel support, has been removed in this commit so if someone ever wants to bring it back it is easy to find out all the necessary changes. The recipes affected are: - alsa-state - amd-gpu-x11-bin - gtk+3 - imx-lib - imx-test - imx-vpu - libfslcodec - linux-imx - mesa - qt4-embedded-free - qt4-x11-free - qtbase - xf86-video-imxfb Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Daiane Angolini <daiane.angolini@freescale.com>
* mesa: Remove virtual/libopenvg from providers listOtavio Salvador2016-04-191-5/+5
| | | | | | | The mesa now provide virtual/libopenvg which should be offered by the AMD and Vivante GPU drivers. Remove it from the providers list. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Support for mx6 without GPUsOtavio Salvador2016-04-191-1/+8
| | | | | | | | Fix to support future mx6 i.MX 6UltraLite which does not have a GPU. This SoC will use mesa so mesa changes before should be more SoC specific to allow future mx6 SoC without GPU to use mesa. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Fix override of x11 GLX support for i.MX6Otavio Salvador2016-04-191-1/+11
| | | | | | | | The replacement of --enable-glx-tls for --enable-glx was not working due the way the variables are expanded. To fix the issue an annonymous function has been added to mangle it just before its use. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Avoid Vivante GPU headers conflict for gl.h and glext.hOtavio Salvador2016-04-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | The new GPU release include new GL headers which conflict with the ones provided by mesa. The build fails with: ,---- | ERROR: The recipe imx-gpu-viv is trying to install files into a shared | area when those files already exist. Those files and their manifest | location are: | | .../build-framebuffer/tmp/sysroots/imx6qsabresd/usr/include/GL/gl.h | Matched in manifest-imx6qsabresd-mesa.populate_sysroot | | .../build-framebuffer/tmp/sysroots/imx6qsabresd/usr/include/GL/glext.h | Matched in manifest-imx6qsabresd-mesa.populate_sysroot `---- This removes of the mesa's headers so the ones provided by Vivante are used instead. Fixes [Yocto: #5098]. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa-demos: Fix so patches only install for SoC with GPULauren Post2015-07-281-2/+8
| | | | | | | | Only install patches for SoC with a GPU. Future i.MX 6UltraLite does not have a GPU. Signed-off-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Support for mx6 without GPUsLauren Post2015-07-281-7/+12
| | | | | | | | | Fix to support future mx6 i.MX 6UltraLite which does not have a GPU. This SoC will use mesa so mesa changes before should be more SoC specific to allow future mx6 SoC without GPU to use mesa. Signed-off-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Move meta-fsl-arm content to layer rootOtavio Salvador2015-07-164-0/+400
The meta-fsl-arm is going to be used as the base for this layer. It contains a clean history and allowing a more granullar set of changes. This commit is just a rename of all contents of meta-fsl-arm subdirectory to this layer's root, subsequent changes are based on top of that. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>