aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa
AgeCommit message (Collapse)Author
2020-02-17mesa: Allow to use Etnaviv with i.MX8Frieder Schrempf
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)
2020-02-17mesa: Use PACKAGECONFIG to enable Gallium driversFrieder Schrempf
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)
2019-10-09mesa-demos: Remove workaround now that eglut_wayland event loop is fixedTom Hochstein
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>
2019-09-20mesa: Enable Freedreno when using mainline BSPOtavio Salvador
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>
2019-09-12mesa-gl: Fix GPU compatibility using imxgpu overrideTom Hochstein
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>
2019-09-12mesa-demos: Improve variable namesTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2019-09-10mesa_%.bbappend: enable for all imx8 SoCsPeter Griffin
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>
2019-08-23mesa: switch mesa to swrast renderer for mx8mm machine, resolve build issueAndrey Zhizhikin
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>
2019-04-01mesa: Use kmsro,vc4 only for armv7a and armv7veFabio Berton
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>
2019-03-27mesa: Replace imx with kmsro and vc4 in GALLIUMDRIVERSFabio Berton
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>
2019-01-17remove True option to getVar callsAndré Draszik
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>
2018-08-02mesa: Remove redundant install codeTom Hochstein
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>
2018-07-05mesa-demos: Fix condition for GLES supportTom Hochstein
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>
2018-07-03mesa: Fix do_install_append_imxgpu taskFabio Berton
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>
2018-06-29mesa-demos: Include glut for i.MX GPUTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-29mesa-demos: Use the new imxgpu overrideTom Hochstein
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>
2018-06-29mesa: Update to use new imxgpu overrideTom Hochstein
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>
2018-06-29mesa: Adjust install for files provided by imx-gpu-vivTom Hochstein
- 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>
2018-06-29mesa: CleanupTom Hochstein
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>
2018-06-05mesa: Fix gbm provideOtavio Salvador
The gbm provide is virtual/libgbm, not gbm. Fix it. Change-Id: Iead2f2f1bc320136f9f75730e69afe8c7ec59b11 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-03-15mesa: Remove parts provided by imx-gpu-viv v6Tom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-16mesa: Remove /usr/lib/pkgconfig/wayland-egl.pcFabio Berton
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>
2017-05-19mesa: fix configuration rewriteMatt Madison
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>
2017-03-27mesa: Enable Etnaviv support when using 'use-mainline-bsp' overrideOtavio Salvador
This enables the Gallium backend and its Etnaviv driver. Change-Id: I8557932299f54d77d10015ea125cd26322c7c07b Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-27mesa-demos: Set override for imxgpu2d machinesFabio Berton
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-27mesa: Rework recipe to use the feature overridesOtavio Salvador
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>
2016-12-16mesa: Use machine overrides extenderTom Hochstein
Redo configuration using machine overrides extender. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-27mesa-demos: Refactor to use the new i.MX feature overridesTom Hochstein
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>
2016-10-27mesa-demos: Fix configuration for Wayland on i.MXTom Hochstein
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>
2016-10-27mesa-demos: Make package configuration specific to i.MXTom Hochstein
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>
2016-09-08mesa-gl: Refactor code to use the new overridesOtavio Salvador
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>
2016-05-16mesa-demos: Fix incorrent spelling of Upstream-Status tag.Tom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-05-16mesa-demos: Rebase patches due to OE-Core changesTom Hochstein
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>
2016-04-19mesa-gl: Blacklist the recipe for i.MX6 SoCs with GPUOtavio Salvador
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>
2016-04-19Rework i.MX6 UltraLite support to not use other i.MX6 codeOtavio Salvador
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>
2016-04-19mesa-demos: Add Wayland and OpenVG supportLauren Post
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>
2016-04-19Drop Freescale official Linux kernel for i.MX23, i.MX28 and i.MX5 SoC familiesOtavio Salvador
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>
2016-04-19mesa: Remove virtual/libopenvg from providers listOtavio Salvador
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>
2016-04-19mesa-demos: Support for mx6 without GPUsOtavio Salvador
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>
2016-04-19mesa: Fix override of x11 GLX support for i.MX6Otavio Salvador
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>
2016-04-19mesa: Avoid Vivante GPU headers conflict for gl.h and glext.hOtavio Salvador
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>
2015-07-28mesa-demos: Fix so patches only install for SoC with GPULauren Post
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>
2015-07-28mesa: Support for mx6 without GPUsLauren Post
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>
2015-07-16Move meta-fsl-arm content to layer rootOtavio Salvador
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>