aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics
AgeCommit message (Collapse)Author
2023-10-12xf86-video-armada / libdrm-armada: removedunfellAndreas Müller
Not necessary any more / sources are finally gone Fixes: #1553. Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> (cherry picked from commit 73e068409ffe01d6c52f329f3673cc601773f774)
2023-03-31Move from codeaurora to githubTom Hochstein
Fixes: #1469 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-04-07mesa: Use osmesa and swrast for all imxgpu overrideFabio Berton
The following error appears when building mesa with NXP BSP: ERROR: Problem encountered: building dri drivers require at least one windowing system or classic osmesa Using the same imxdrm configuration to all imxgpu machines to build mesa with IMX_DEFAULT_BSP nxp. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2021-02-22mesa: 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> (cherry picked from commit 148581622b1097123f0fdb905c3167d0d6d6f5b7)
2021-02-03mesa: Disable dri for parts without DRMTom Hochstein
On dunfell mesa build breaks with dri 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 disabled if no dri drivers are configured. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-02-03mesa: 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> (cherry picked from commit a8706239390f21621e175c61e3cc03630d650a10)
2021-02-03mesa: 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> (cherry picked from commit 47394d05017483e7fd0cba5b927c76198bdfa062)
2021-02-03mesa: 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> (cherry picked from commit 3b0fc734634f8f0db1f48fc13c64cacd3d99dd92)
2021-01-13xf86-video-armada: Fix no more working SRC_URIKay Bouché
(cherry picked from commit 2b18a6b0be178b0207c86fa049271cdd4c815981)
2020-10-13xf86-video-imx-vivante: Remove trailing slash from SKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 34529a497e3e0faf64b2bab0f05f6948ade13690)
2020-10-07imx-gpu-viv: Fix regression when running some userspace applicationsOtavio Salvador
The imx-gpu-viv does a very bad work regarding the soname handling of its libraries so we need to do a lot of hacks providing '.so' files for use by the application. This comes after revert of aa552127 "imx-gpu-viv: Fix packaging for various libraries" An example of the error can be seen below: ,----[ strace log ] | openat(AT_FDCWD, "/usr/lib/libEGL.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | openat(AT_FDCWD, "/lib/libGLESv1_CM.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | openat(AT_FDCWD, "/usr/lib/libGLESv1_CM.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | openat(AT_FDCWD, "/lib/libGLESv2.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | openat(AT_FDCWD, "/usr/lib/libGLESv2.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) `---- This commit are the extra fixes which was need due to new files on the new imx-gpu-viv release to fix the following build error: ,----[ Packaging error ] | ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch32-r0 do_package: QA Issue: | imx-gpu-viv: Files/directories were installed but not shipped in any | package: | /usr/lib/libOpenCL.so.1 | /usr/lib/libOpenCL.so.1.2 `---- as well as: ,----[ Packaging error ] | ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch64-r0 do_package: QA Issue: | imx-gpu-viv: Files/directories were installed but not shipped in any | package: | /usr/lib/libOpenVX.so.1.2 | /usr/lib/libOpenVX.so.1 `---- and finally: ,----[ Packaging error ] | ERROR: imx-gpu-viv-1_6.4.0.p2.4-aarch64-r0 do_package_qa: QA Issue: non | -dev/-dbg/nativesdk- package contains symlink .so: libopencl-imx path | '/work/aarch64-mx8m-fslc-linux/imx-gpu-viv/1_6.4.0.p2.4-aarch64-r0/packages-split/libopencl-imx/usr/lib/libOpenCL.so' | [dev-so] `---- Reported-by: Gary Bisson <gary.bisson@boundarydevices.com> Change-Id: I785a69c0592a3c5fda9fd14a7dc8cf35b2b94d08 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Tested-by: Gary Bisson <gary.bisson@boundarydevices.com> (cherry picked from commit 98eb5673ba2ae2b6cb91dd760511e3bcaae11c1d)
2020-10-07Revert "imx-gpu-viv: Fix packaging for various libraries"Otavio Salvador
This reverts commit aa5521274f88d4d652d271cae814662f569b67ff. Change-Id: I2a8534dd71baaaa4694200e06bd07b26898597d0 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Change-Id: Ie2e1cb6df1142eb54b3bf0573cdc9a1edb5e2b92 (cherry picked from commit 342fe6e4a9bbcc84d4909c09501f86e34b4a464f)
2020-10-02weston: add libxcursor to depends for xwaylandMax Krummenacher
Otherwise configure will fail. | ../git/xwayland/meson.build:27:2: ERROR: Problem encountered: xwayland requires xcursor which was not found. Or, you can use '-Dxwayland=false'. This reverts additionally commit 86cde62d1 which addressed the same issue. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit d49ab0d5bbd01d8cca8103668da72962124e14d3)
2020-09-30waffle: revert "waffle: fix patch fuzz QA warning"Andrey Zhizhikin
Current waffle release present on the dunfell branch in upstream is 1.6.0, while master upstream version is 1.6.1. Due to this version mismatch, patches applied on master do not apply clean on dunfell release. Revert commit [81262efe6e9eb8ac0ed345abccbf80233707dcc3] which resolved patch fuzz when waffle 1.6.1 is built, and keep the old versions of patch files which are matching waffle 1.6.0. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-09-29weston-init: add weston.ini section to support imx8mpAndrey Zhizhikin
Allow usage of 2D blit accelerator present in imx8mp soc Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> (cherry picked from commit 4bdcad572a8d24726e5e9ad5697cb149e0b23f22)
2020-09-29imx-gpu-viv: Use PACKAGECONFIG for valgrind support of libgalTom Hochstein
This replaces the previous RSUGGESTS use which does not work for all package managers and is not widely used. The use model of PACKAGECONFIG seems a better fit here. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit fa9f93999e85fe0851b39a93a5c2c575371f2929)
2020-09-29imx-gpu-viv: Fix packaging for various librariesTom Hochstein
Fix several packages so we don't put .so files in the main package (QA error dev-so). Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit aa5521274f88d4d652d271cae814662f569b67ff)
2020-09-29imx-gpu-viv: Fix packaging for libvulkan_VSI.soTom Hochstein
Fix the packaging now that libvulkan_VSI.so has a version. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 9e231483b103f40502f16b78692a9f928cf78b45)
2020-09-29imx-gpu-viv: Extend cleanup code for versioned librariesTom Hochstein
The do_install includes code for removing graphics backend-specific libraries that are not for the selected graphics backend. Extend this cleanup code to handle libraries with a version suffix. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit b0d43de899f3fc5434067e861b211b964e4700d2)
2020-09-29imx-gpu-viv: Remove unused libGL.so.1 symlinkTom Hochstein
The GL library SONAME is libGL.so.1.2, so the symlink libGL.so.1 has no use. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 8061c44582584528201936a73f7bf99c137e1419)
2020-09-29imx-gpu-viv: Upgrade to 6.4.0.p2.4Tom Hochstein
- Upgrade to weston 8.0 - Upgrade to Qt 5.15 (vulkan experimental) - Upgrade to OpenCV 4.1 - Support for Android 10, Android NN - Support for TensorFlow Lite 2.1 Fixed Issues: - LF-459 [8QM] GPU/xwld:Vulkan sdk demo 'ObjectSelection' flicker on display. - LF-423 ML/AI:Some dnn_vxc cases showed out-of-range recognition rates. - LF-844 [6QP_SD] GPU/FB: Bloom_FB cannot be killed by ctrl c randomly. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit b2036a3242a6da9282565b75a5b4deb971b1cbb7)
2020-09-29imx-gpu-g2d: upgrade to 6.4.0.p2.4Andrey Zhizhikin
NOTE: This version uses v11 EULA from NXP Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> (cherry picked from commit 34df3329607c1388774a46cd86ae2c107768cd9e)
2020-09-29imx-gpu-apitrace: fix the upgrade after rebase to 9.0.0Andrey Zhizhikin
Bump the repository version as it was updated upstream in NXP repository and drop unused patches from the layer, they should be present now in the updated version from upstream. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> (cherry picked from commit af181163fec5ca859c6a3989c9ea8cd1ceb27449)
2020-09-29imx-dpu-g2d: upgrade to 1.8.7Andrey Zhizhikin
This version adds runtime dependency to libopencl-imx since it is required to support HEVC tile format for Amphion VPU. NOTE: This version uses v11 EULA from NXP. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> (cherry picked from commit 0661394cdfef69afd454ea515eb9a395afda44fb)
2020-09-29weston-imx: remove also xwayland from package configAndrey Zhizhikin
Commit [5a5c5dd23ea0173ef16073c3c651aec89b5a67c1] removes x11 and wayland from PACKAGECONFIG, but when wayland with X11 distro is used - this leaves the xwayland package config option enabled. Without x11 and wayland in PACKAGECONFIG, xwayland cannot be enabled so remove this config option as well. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> (cherry picked from commit 86cde62d18184284f91c0b695bd18c8d96fbee60)
2020-09-22weston-imx: Remove wayland and x11 from PACKAGECONFIGFabio Berton
Weston i.MX uses framebuffer to render images and doesn't work if wayland PACKAGECONFIG is enabled. Without this weston can't find the wayland display. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> (cherry picked from commit 5afc3561a2203b21e238bdc5c8c0f4048625e8de)
2020-09-14weston.ini: Move to imx subdirKhem Raj
This ensures that it does not lurk for non meta-freescale BSPs Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit f33351bdb249413715549ff477809c73c0723d97)
2020-07-23Revert "weston-init: use g2d for i.MX8M Nano SoC"Tom Hochstein
8M Nano does not have 2D acceleration. This reverts commit b3f51ab82838a67146d5b6fcf8f19d36c5efeb37.
2020-06-08waffle: fix patch fuzz QA warningAndrey Zhizhikin
Fix patch fuzz QA warning reported by build, use devtool to correct patches. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-05-11libdrm-armada: Allow usage with use-mainline-bspFabio Berton
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-05-11xf86-video-armada: Allow usage with use-mainline-bspFabio Berton
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-05-05weston: Restore partial clients for i.MX 6 and 7Tom Hochstein
The clients configuration for fbdev was recently removed from meta-freescale [1] because of the following error: ``` | Run-time dependency gbm found: NO (tried pkgconfig and cmake) | | clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option. ``` [1] eda44e49618610c13ebe4c026cd4981b404a1543 It was also removed for non-Wayland from OE-core [2] because of the following error in the same client dmabuf-egl: ``` clients/meson.build:141:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires option renderer-gl which is not enabled. If you rather not build this, drop "dmabuf-egl" from simple-clients option. ``` [2] 9b1d30810eeecb46b977c8eed68be69aef891312 Restore the working subset of clients. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
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-04-29xserver-xf86-config: Fix xorg.conf for 6ULLTom Hochstein
The 6ULL does not have a hardware-accelerated framebuffer device, so switch to the kernel framebuffer device. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-29weston: Cleanup FILES for no longer used folderTom Hochstein
${sysconfdir}/xdg/weston was used to install weston.ini, but that functionality has moved to weston-init. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-29weston: Fix build error for opengl typoTom Hochstein
There was an extra hyphen on the command line: meson: error: unrecognized arguments: --Dopengl=false Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-29weston: Fix non-GBM build error for i.MX 6 & 7Tom Hochstein
i.MX 6 and 7 doesn't support GBM, required by weston-simple-dmabuf-egl: | Run-time dependency gbm found: NO (tried pkgconfig and cmake) | | clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option. Remove the clients for i.MX 6 and 7. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-29weston: Restructure recipe for ease of maintananceTom Hochstein
Structure the recipe into two sections, the top as a verbatim copy of the upstream recipe that is the basis, and the bottom for the i.MX customization. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-29weston: Align 8.0.0.imx recipe with 8.0.0Tom Hochstein
Update license file data and move i.MX customizations to unique lines for simpler diff. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24waffle: Fix x11 build without GBM supportTom Hochstein
For i.MX 6 and 7, building x11_egl failed with the following: ``` In file included from ../waffle-1.6.0/src/waffle/surfaceless_egl/sl_window.c:35: ../waffle-1.6.0/src/waffle/surfaceless_egl/sl_platform.h:30:10: fatal error: gbm.h: No such file or directory 30 | #include <gbm.h> | ^~~~~~~ ``` The failure is not surprising since i.MX 6 and 7 don't support GBM. What is surprising is surfaceless_egl is built even if it is disabled. The meson dependency for surfaceless_egl was incorrectly tied to x11_egl, so fix that, plus add a dependency on GBM. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24waffle: Add missing dependency on EGLTom Hochstein
For Wayland builds without XWayland support, the following build break was happening: In file included from /home/bamboo/build/5.4-zeus-full/fsl-imx-internal-wayland/temp_build_dir/build_fsl-imx-internal-wayland/tmp/work/aarch64-mx8-poky-linux/waffle/1.6.0-r0/recipe-sysroot/usr/include/EGL/egl.h:39, from ../waffle-1.6.0/src/waffle/egl/wegl_context.h:31, from ../waffle-1.6.0/src/waffle/egl/wegl_util.c:28: /home/bamboo/build/5.4-zeus-full/fsl-imx-internal-wayland/temp_build_dir/build_fsl-imx-internal-wayland/tmp/work/aarch64-mx8-poky-linux/waffle/1.6.0-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:144:10: fatal error: X11/Xlib.h: No such file or directory 144 | #include <X11/Xlib.h> | ^~~~~~~~~~~~ compilation terminated. This happens because the egl.pc configuration is missing. Fix the mising dependency. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24waffle: Disable GBM support for i.MX 6 and 7 GPUTom Hochstein
GBM is not available on i.MX 6 and 7 GPU, so disable support. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24imx-gpu-apitrace: Enable egl and waffleTom Hochstein
Add egl and waffle as common configuration. The unique configuration for 8M and 8M Nano is no longer required. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24imx-gpu-apitrace: Add config options for EGL and GUITom Hochstein
Also, remove x11-egl option since it is a derivative of egl, x11, and waffle, and is no longer needed. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24imx-gpu-apitrace: Don't package binaries separatelyTom Hochstein
The libraries are not useful without the binaries, so putting them in separate packages is wrong. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-24imx-gpu-apitrace: Rebase fork on 9.0.0Tom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-20imx-dpu-g2d: Upgrade to 1.8.3Tom Hochstein
c27d26b MGS-5479 remove g2d_multiblit_test 9730281 MGS-5435 [QNX] G2D - child and parent window can not rotate correctly 73354dc MGS-5103 add YUV mode for BT.601 and BT.709 43ff464 MA-16215 Avoid change input parameter value in g2d_blitEx 807cf04 MGS-5403 enable G2D tile-status feature Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-04-16weston: upgrade recipe to version 8.0.0 from NXPAndrey Zhizhikin
Upgrade weston recipe version 6.0.1 -> 8.0.0 with following modifications performed: - Transition build system to meson, replace autotools references with meson options; - Align recipe with the latest version from oe-core, include all configuration changes done upstream into this recipe; - Drop patches applied upstream and those related to autotools; Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-04-16wayland-protocols: upgrade to 1.18 from NXPAndrey Zhizhikin
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>