aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa
AgeCommit message (Collapse)Author
2024-04-24imx-gpu-viv: Upgrade 6.4.11.p2.2 -> 6.4.11.p2.4Tom Hochstein
Drops OpenGL support. Align with NXP BSP 6.6.3-1.0.0. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2023-06-21recipes: Add missing patch tag Upstream-StatusKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21recipes: Correct Upstream-StatusKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-06mesa-demos: Drop non-functional glx configurationTom Hochstein
The packageconfig glx is no longer used after a rework, and removing the packageconfig x11 now also removes glx support. [1] [1] https://github.com/openembedded/openembedded-core/commit/a904c9492e86be39fcdd244e8f4b9768861c0e77 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-08-26libglu: Remove x11 requirement for i.MX GPUTom Hochstein
i.MX GPU drivers don't require x11. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-08-26mesa-demos: Update for latestTom Hochstein
Drop OpenVG packageconfig and patch as OpenVG support is dropped from mesa-demos. For i.MX GPU: - x11 is not required - GLX is not supported - GLU is required - GLUT is not required for x11 Since x11 is not required but GLU is, restore the PACKAGECONFIG for glu, which was recently tied to x11. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2022-08-26mesa-demos: Update formatting for readabilityTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-08-27mesa: drop patches after upgrade to 21.2.1.Andrey Zhizhikin
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>
2021-08-12layer: Convert to new override syntaxKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-31mesa: Refresh patches for mesa 21.1.1Andreas Müller
* 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>
2021-04-20mesa-etnaviv-env: Add support to sysvinitVinicius Aquino
Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com>
2021-04-20mesa/etnaviv: Add patches to fix redrawAndreas Müller
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>
2021-04-20Move mesa/etnaviv to xf86-video-modesettingAndreas Müller
* armada sources are gone finally * glmark2-es2 performance is almost doubled 87 -> 162 Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2021-04-20mesa-etnaviv-env: Add a recipe to set environment variables for mesa/entavivAndreas Müller
* 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>
2021-04-13mesa: For NXP BSP align DRM parts to other GPU partsTom Hochstein
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>
2021-02-16mesa: For i.MX parts without GPU use default gallium and driTom Hochstein
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>
2021-02-03mesa: Disable dri for parts without DRMTom Hochstein
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>
2021-01-29mesa: Re-enable dri driver swrast for NXP BSPTom Hochstein
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>
2021-01-26mesa: Limit OSMesa to DRM and remove swrastTom Hochstein
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>
2020-12-11mesa: Use OSMesa for use-nxp-bspFabio Berton
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>
2020-05-01mesa: Remove 'vc4' from PACKAGECONFIG for mainline BSPOtavio Salvador
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
2020-05-01mesa: Simplify PACKAGECONFIG for mainline BSPOtavio Salvador
The mainline BSP can use same settings for all SoCs reducing the complexity. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-02-15mesa: 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>
2020-02-15mesa: 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>
2019-12-23mesa: Fix glcorearb.h collision with imx-gpu-vivMihai Lindner
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>
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>