summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa: drop patches after upgrade to 21.2.1.Andrey Zhizhikin2021-08-2710-862/+0
| | | | | | | | | | OE-Core mesa has been upgraded to version 21.2.1, which has all patches included. Drop all patches from the layer as they are not applicable anymore and remove them from SRC_URI. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* layer: Convert to new override syntaxKhem Raj2021-08-124-22/+22
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa: Refresh patches for mesa 21.1.1Andreas Müller2021-05-3112-214/+626
| | | | | | | | | | | | | | | | | | * Addresses [1] * all patches were taken from mesa's main branch and applied cleanly * On X11/xfce first tests were performed without any patches: At least we do not see a mouse pointer which is similar behavior as seen when introducing first patch series. * On X11/xfce moving windows is faster now / gtk-based applications still show tiny artifacts / Qt/QML based application run without issues / glmark2-es2 results in 158 which is similar to mesa 21.0.3 * Could not test my weston images (use sddm as dm): All native recipes inheriting cmake_qt5 are broken due to MACHINE_SOCARCH_FILTER - will open an issue for that. [1] https://github.com/Freescale/meta-freescale/issues/795 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* mesa-etnaviv-env: Add support to sysvinitVinicius Aquino2021-04-202-3/+12
| | | | Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com>
* mesa/etnaviv: Add patches to fix redrawAndreas Müller2021-04-207-0/+450
| | | | | | | | | | Without this series mouse pointer was not visible and screen was updated only when mouse was moved. Patch series was suggested in [1] [1] https://gitlab.freedesktop.org/mesa/mesa/-/issues/4584 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* Move mesa/etnaviv to xf86-video-modesettingAndreas Müller2021-04-201-0/+3
| | | | | | | * armada sources are gone finally * glmark2-es2 performance is almost doubled 87 -> 162 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* mesa-etnaviv-env: Add a recipe to set environment variables for mesa/entavivAndreas Müller2021-04-202-0/+27
| | | | | | | | | | * we have several options to start an x-session. To not touch all, set environment variables globally * Inspired by [1] [1] https://gitlab.freedesktop.org/mesa/mesa/-/issues/3721 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
* mesa: For NXP BSP align DRM parts to other GPU partsTom Hochstein2021-04-131-20/+2
| | | | | | | | With swrast no longer supported, align the DRM parts with the other non-DRM GPU parts, dropping osmesa, swrast, and dri, and restoring gallium. This undoes 3b0fc73. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa: For i.MX parts without GPU use default gallium and driTom Hochstein2021-02-161-10/+20
| | | | | | | | | | | | | For NXP BSP, building graphics software for a part without GPU can fail with a dependency issue: ``` ERROR: Nothing RPROVIDES 'libgl' (but /home/r60874/gatesgarth/sources/poky/meta/recipes-gnome/gtk+/gtk+3_3.24.22.bb, /home/r60874/gatesgarth/sources/poky/meta/recipes-graphics/cogl/cogl-1.0_1.22.8.bb RDEPENDS on or otherwise requires it) ``` This is fixed by adding a third case configuration using the default gallium and dri. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa: Disable dri for parts without DRMTom Hochstein2021-02-031-4/+9
| | | | | | | | | | | | | | On dunfell parts without DRM (i.MX 6 and 7) break because dri is enabled: ``` | meson.build:455:4: ERROR: Problem encountered: building dri drivers require at least one windowing system or classic osmesa ``` The break does not occur on master since dri is effectively disabled if no dri drivers are configured. Disabling dri outright is still a better implementation on master, and of course is required on dunfell. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa: Re-enable dri driver swrast for NXP BSPTom Hochstein2021-01-291-0/+2
| | | | | | | | | | | | | | Seems swrast won't disable hardware acceleration and is still needed to prevent a build break in xserver-xorg. ``` | Package dri was not found in the pkg-config search path. | Perhaps you should add the directory containing `dri.pc' | to the PKG_CONFIG_PATH environment variable | No package 'dri' found ``` Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa: Limit OSMesa to DRM and remove swrastTom Hochstein2021-01-261-4/+3
| | | | | | | | | | | | | | | | | | | OSMesa was originally added for i.MX 8 only. This limitation was recently dropped accidentally. Additionally, the 8DualXLite has no GPU and fails to build: ``` | In file included from ../../../mesa-demos-8.4.0/src/osdemos/osdemo32.c:14: | ../../../mesa-demos-8.4.0/src/util/glut_wrap.h:9:12: fatal error: GL/glut.h: No such file or directory | 9 | # include <GL/glut.h> | | ^~~~~~~~~~~ | compilation terminated. ``` Fix the OSMesa configuration by limiting it to parts with DRM. Also, adding swrast prevents the use of hardware acceleration. Drop swrast. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa: Use OSMesa for use-nxp-bspFabio Berton2020-12-111-10/+3
| | | | | | | | | | Enabling OSMesa and disabling Gallium is needed when using use-nxp-bsp, if we don't do this mesa raises error: Problem encountered: building dri drivers require at least one windowing system or classic osmesa Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
* mesa: Remove 'vc4' from PACKAGECONFIG for mainline BSPOtavio Salvador2020-05-011-1/+1
| | | | | | | | The SoCs supported by meta-freescale does not use vc4 and then we can drop it from the features. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Change-Id: I2b8e04c54644315401315c442a5e2cec8624c3f3
* mesa: Simplify PACKAGECONFIG for mainline BSPOtavio Salvador2020-05-011-4/+1
| | | | | | | The mainline BSP can use same settings for all SoCs reducing the complexity. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mesa: Allow to use Etnaviv with i.MX8Frieder Schrempf2020-02-151-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>
* mesa: Use PACKAGECONFIG to enable Gallium driversFrieder Schrempf2020-02-151-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>
* mesa: Fix glcorearb.h collision with imx-gpu-vivMihai Lindner2019-12-231-0/+1
| | | | | | | | Fix ERROR: The file /usr/include/GL/glcorearb.h is installed by both mesa and imx-gpu-viv, aborting. Signed-off-by: Mihai Lindner <mihai.lindner@nxp.com>
* 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>