aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics
AgeCommit message (Collapse)Author
2021-04-14weston-init: Do not exit with error if uncomment function failFabio Berton
Show a warning instead of raising an error when uncomment function can't found the text. This allows using a custom weston.ini file in bbappend. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2021-04-13xserver-xorg: Enable glamor for i.MX 8Tom Hochstein
Enable glamor (the default) so legacy x11 apps will get GPU acceleration. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-04-13xserver-xorg: Remove dri and glx for i.MX DRMTom Hochstein
The removal of swrast support from mesa also removes dri support from mesa for i.MX with DRM, so disable dri. glx support depends on dri, so disable glx. xwayland breaks without glx, so backport a patch that fixes the break. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.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-04-13weston-init: Rework uncomment function logicVinicius Aquino
Fix error "Commented setting '#use-g2d=1' not found" when building for some imx machines. Signed-off-by: Vinicius Aquino <voa.aquino@gmail.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-16imx-gpu-apitrace: Upgrade for eglretrace supportTom Hochstein
eglretrace was not available for i.MX 6 and 7 on framebuffer or wayland. For wayland, waffle is enabled for 6 and 7, matching i.MX 8. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-02-11weston-init: Update weston.iniTom Hochstein
- Add repaint-window for all i.MX 8 to support 4K display - Add enable-overlay-view option as comment - Enable touchscreen_calibrator - Update transform values which were re-worked for weston 9.0 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-02-01weston: update to 9.0.0.imxMax Krummenacher
NXP release imx_5.4.70_2.3.0. 0001-weston-launch-Provide-a-default-version-that-doesn-t.patch update taken from NXP BSP. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-01wayland-protocols: update to 1.20.imxMax Krummenacher
NXP release imx_5.4.70_2.3.0. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-01imx-dpu-g2d: update to 6.4.3.p1.0Max Krummenacher
NXP release imx_5.4.70_2.3.0. This package uses EULA v17 October 2020. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-01imx-gpu-g2d: update to 6.4.3.p1.0Max Krummenacher
NXP release imx_5.4.70_2.3.0. This package uses EULA v17 October 2020. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-01imx-gpu-viv: update to 6.4.3.p1.0Max Krummenacher
NXP release imx_5.4.70_2.3.0. imx-gpu-viv provides the OpenCL C++ headers which meta-openembedded also provides in the opencl-clhpp recipe. Add opencl-clhpp to PROVIDES and have a PREFERRED_PROVIDER_opencl-clhpp decide on which to build. libgbm-imx got additional shared objects, set FILES accordingly. This package uses EULA v17 October 2020. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-02-01libdrm: update to 2.4.102.imxMax Krummenacher
NXP release imx_5.4.70_2.3.0. Drop the explicit PACKAGE_ARCH setting. This is done by fsl-dynamic-packagearch.bbclass. The musl-ioctl.patch has been upstreamed. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-01-31weston-init: enable g2d for mx6dl/mxq machinesPierluigi Passaro
Both the machines do support g2d and this fix graphical artifacts when using a mouse Signed-off-by: Pierluigi Passaro <pierluigi.p@variscite.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-27imx-gpu-viv: Restore virtual/opencl-icd to PROVIDESTom Hochstein
Since opencv depends on virtual/opencl-icd, restore virtual/opencl-icd to the recipes provided so imx-gpu-viv is properly selected. Fixes: ``` ERROR: Nothing PROVIDES 'virtual/opencl-icd' (but /opt/work/upstream/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.5.0.bb DEPENDS on or otherwise requires it). Close matches: virtual/libc ``` 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>
2021-01-26imx-gpu-viv: Align OpenCL package namesTom Hochstein
The existing OpenCL recipes opencl-headers and opencl-icd-loader are dependencies for clinfo. In order to build clinfo with imx-gpu-viv as provider, fix imx-gpu-viv to provide the same recipe names. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-01-07xf86-video-armada: Fix no more working SRC_URIKay Bouché
2020-12-11weston-imx: Bump revision f13d40a3Fabio Berton
This commit includes the following changes: - f13d40a3 compositor-drm: Add environmen variables configuration in weston.ini - 1e1f6fb5 compositor-drm: display will be blank when weston restart with rotate - 27cde525 gl-renderer: Video playback always flashes and jitteres on the top-right corner - e08a9c3d g2d-renderer: UI is abnormal using G2D compositor - 81a7538f gl-renderer: mm06 has performance dropped Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
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-11-24vulkan-loader: Add runtime dependency for libvulkan-imxTom Hochstein
The i.MX GPU package libvulkan-imx is missing at runtime because it is dynamically loaded and has no implicit mechanism for inclusion in the rootfs. Add the package explicitly. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13imx-dpu-g2d: Upgrade to 1.8.9Tom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13imx-gpu-g2d: Upgrade to 6.4.3.p0.0Tom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13imx-gpu-viv: Update install for improved packaging designTom Hochstein
The old packaging model stripped the version number from the filename, added a backend qualifier, and removed any symbolic links. This had to be matched in the install with logic to undo the changes. The design is now greatly simplified by preserving all library filenames as-is, with backend-specific libraries placed in sub-folders. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13imx-gpu-viv: Fix rootfs conflict with libvulkan-devTom Hochstein
The rootfs stage is failing with the following error: ``` Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libvulkan-imx-dev : Conflicts: libvulkan-dev Recommends: libglslc-imx-dev but it is not installable Recommends: libvsc-imx-dev but it is not installable E: Unable to correct problems, you have held broken packages. ``` It seems this is a result of disabling debian renaming. This was originally added in an NXP layer due to a conflict with a vulkan recipe that is no longer being used. Restoring the overrides for libvulkan-imx to the default state fixes the build break. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-11-13imx-gpu-viv: Upgrade to 6.4.3.p0.0Tom Hochstein
Key Features of the Vivante 6.x Driver Series - Full support for Khronos OpenGL ES 3.2 API. The new OpenGL ES 3.2 and OpenGL ES Shading Language 3.20 specifications bring AEP, plus additional functionality, into core OpenGL ES. Vivante OpenGL ES 3.2 implementation has passed Khronos OpenGL ES 3.2 Conformance Test. And Vivante GC7000XS* GPU core has been certified by Khronos as an OpenGL ES 3.2 compliant product. - Backward Compatible with 5.x and 4.x Drivers. Existing OpenGL ES 3.x/2.0 applications can run on these drivers without any changes. 6.4.3P0 GA ====================== Key Features: - GLES CTS 3.2.6.1 - Vulkan 1.1.6 - OpenVX 1.2 - GPU & NPU accelerated ML support - OpenCV 4.2 - Chromium v74 - Support for renderdoc 1.7 - Support for TFlite 2.2 - NNCTS 1.2 - Vulkan backend support for Unity Known Issues- L5.4.3_2.2.0: LF-308 wl_display_connect Failure reported during VPU and GPU stress power management test. LF-868 [MX6SX-SDB]GPU: weston stopped abnormally during stress suspend resume test. LF-178 GPU/XWLD: some tests failed in OpenCV performance test. LF-861 some tests failed in OpenCV stress test. LF-262 QT5.15 Few qt3d demos not work. Ongoing discussion with QT LF-936 [MX8MQ/MM/MN]GPU:no desktop UI and weston@root.service load fail after run low bus freq test.100% MGS-5650 UnrealEngine 4.25: Crash on GPU Drivers when starting a Vulkan Based Engine. See also: https://source.codeaurora.org/external/imx/imx-manifest/tree/GraphicsChangeLogv6?h=imx-linux-zeus Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-10-13xf86-video-imx-vivante: Remove trailing slash from SKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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>
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
2020-09-30weston: 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>
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>
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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
2020-09-23imx-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>
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>
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>
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>