summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
Commit message (Collapse)AuthorAgeFilesLines
* weston: Add vsync to cloned displays.Piotr Wojtaszczyk2022-04-042-0/+103
| | | | | | | When using g2d clone mode allocates additional surfaces according to FB_MULTI_BUFFER for each cloned display. The g2d blit from the main screen to the cloned displays is done using inactive surface. The FBIOPAN_DISPLAY ioctl to the surface is done afterwards.
* mx8dx: Normalize MACHINEOVERRIDES implementationTom Hochstein2022-03-312-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The imx8dx-mek machine is similar to imx8qxp-mek and so the mx8qxp override was included in the MACHINEOVERRIDES hierarchy. This is non-standard, and the rework of the SOC overrides didn't handle it properly, leading to a build break: ``` Log data follows: | DEBUG: Executing shell function do_compile | NOTE: 8QX boot binary build | cp: failed to access '/home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/git/iMX8DX/scfw_tcm.bin': Not a directory | WARNING: /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636:179 exit 1 from 'cp /home/aquino/src/ossystems/oel-platform/build/tmp/deploy/images/imx8dx-mek/imx-boot$ tools/scfw_tcm.bin /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/git/iMX8DX/scfw_tcm.bin' | WARNING: Backtrace (BB generated script): | #1: compile_mx8x, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 179 | #2: do_compile, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 151 | #3: main, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 189 ERROR: Task (/home/aquino/src/ossystems/oel-platform/sources/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_compile) failed with exit code '1' ``` Fix the problem by removing mx8qxp from the mx8dx hierarchy and adapting existing mx8qxp overrides appropriately. Fixes: #1027 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* libdrm: remove unused patchMax Krummenacher2022-03-251-140/+0
| | | | | | | With the update to 2.4.109.imx the patch is no longer needed. Also remove it from the layer. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* wayland-protocols: Upgrade 1.22.imx -> 1.25.imxTom Hochstein2022-03-251-3/+9
| | | | | | | | This is a pre-release version from upcoming NXP Q2 release added to kirkstone to fix mesa compatibility problems. The commit does also update the recipe to align with the one in OE-core. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* libdrm: Upgrade 2.4.207.imx -> 2.4.109.imxTom Hochstein2022-03-251-4/+3
| | | | | | | | | This is a pre-release version from upcoming NXP Q2 release added to kirkstone to fix mesa compatibility problems. The patch 0001-meson-add-libdrm-vivante-to-the-meson-meta-data.patch is dropped as it is now upstream. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* Revert "weston-init: fix some invalid overrides"Tom Hochstein2022-03-151-2/+2
| | | | | | There is a root cause to this that will be fixed instead. This reverts commit 6be9870b5057cf122cecb2716583169b39de78ae.
* weston-init: fix some invalid overridesMing Liu2022-03-131-2/+2
| | | | | | | | | | The mx8qm-nxp-bsp/mx8qxp-nxp-bsp overrides would not work because imxgpu2d would take effect in the end since it has higher priority in MACHINEOVERRIDES. Append mx8qm-nxp-bsp/mx8qxp-nxp-bsp after imxgpu2d can fix the problem. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* xf86-video-imx-vivante: drop vivante specific x11 driverMax Krummenacher2022-03-063-112/+3
| | | | | | | | | | | | The required x11 driver stuff has been removed from imx-gpu-viv and thus the X11 driver is no longer buildable. Drop the recipe and fallback on the default X11 fb driver. | ERROR: Nothing RPROVIDES 'libvivante-dri-imx' (but .../meta-freescale/recipes-graphics/xorg-driver/xf86-video-imx-vivante_6.4.0.p0.0.bb RDEPENDS on or otherwise requires it) Completes 747c96f5 ("imx-gpu-viv: Upgrade to 6.4.3.p2.4"). Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* imx-gpu-viv: Remove comment code which was unusedOtavio Salvador2022-02-211-2/+0
| | | | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Rework recipes to use imx-nxp-bsp more extensivelyOtavio Salvador2022-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | This rework the recipes making use of new imx-nxp-bsp override; it has been applied to: - gstreamer1.0 - gstreamer1.0-plugins-bad - gstreamer1.0-plugins-base - gstreamer1.0-plugins-good - imx-alsa-plugins - imx-codec - imx-gst1.0-plugin - imx-parser - libdrm - libimxdmabuffer - linux-fslc-imx - linux-imx - optee-client - optee-test Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Generalize overrides subsystem for NXP and Mainline supportOtavio Salvador2022-02-2124-44/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Essentially, we extend the overrides to a generic-bsp, nxp-bsp, and mainline-bsp. So, for example, the mx8mq override is split into: - imx-generic-bsp: compatible with every i.MX SoC and both BSP variants - imx-nxp-bsp: compatible with every i.MX SoC but specific to NXP BSP - imx-mainline-bsp: compatible with every i.MX SoC but specific to Mainline BSP - mx8-generic-bsp: compatible with every i.MX8 SoC and both BSP variants - mx8-nxp-bsp: compatible with every i.MX8 SoC but specific to NXP BSP - mx8-mainline-bsp: compatible with every i.MX8 SoC but specific to Mainline BSP - mx8m-generic-bsp: compatible with every i.MX8M SoC and both BSP variants - mx8m-nxp-bsp: compatible with every i.MX8M SoC but specific to NXP BSP - mx8m-mainline-bsp: compatible with every i.MX8M SoC but specific to Mainline BSP - mx8mq-generic-bsp: compatible with every i.MX8MQ SoC and both BSP variants - mx8mq-nxp-bsp: compatible with every i.MX8MQ SoC8 but specific to NXP BSP - mx8mq-mainline-bsp: compatible with every i.MX8MQ SoC but specific to Mainline BSP The extender mechanism is responsible for extending the override list to include the generic overrides. We can then use the three different variants to handle the metadata correctly. Generically speaking, the conversion mainly was automated (with a lot of back and forth until getting it right). To convert an existing layer, the following script can be used: ```sh git ls-files classes recipes-* \ | xargs sed -i \ -e 's,:\(mx[6-8]\w*\),:\1-nxp-bsp,g' \ -e 's,(\(mx[6-8]\w*\)),(\1-nxp-bsp),g' \ -e 's,\(mx[6-8]\w*\)|,\1-nxp-bsp|,g' \ -e 's,|\(mx[6-8]\w*\)),|\1-nxp-bsp),g' \ \ -e 's,:\(mx[5s]\w*\),:\1-generic-bsp,g' \ -e 's,(\(mx[5s]\w*\)),(\1-generic-bsp),g' \ -e 's,\(mx[5s]\w*\)|,\1-generic-bsp|,g' \ -e 's,|\(mx[5s]\w*\)),|\1-generic-bsp),g' \ \ -e 's,:\(vf\w*\),:\1-generic-bsp,g' \ -e 's,:\(vf[56]0\w*\),:\1-generic-bsp,g' \ -e 's,\(vf\w*\)|,\1-generic-bsp|,g' \ -e 's,|\(vf\w*\)),|\1-generic-bsp),g' \ -e 's,\(vf[56]0\w*\)|,\1-generic-bsp|,g' \ -e 's,|\(vf[56]0\w*\)),|\1-generic-bsp),g' \ \ -e 's,:\(imx\) ,:\1-nxp-bsp ,g' \ -e 's,(\(imx\)),(\1-nxp-bsp),g' \ -e 's,\(imx\)|,\1-nxp-bsp|,g' \ -e 's,|\(imx\)),|\1-nxp-bsp),g' for d in $(find -type d | egrep '/mx[6-8]w*'); do git mv $d $d-nxp-bsp done for d in $(find -type d | egrep '/imx$'); do git mv $d $d-nxp-bsp done for d in $(find -type d | egrep '/mx[5s]w*'); do git mv $d $d-generic-bsp done ``` Fixes: #791. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* imx-g2d-samples: Ping to imxgpu2d machinesKhem Raj2022-02-121-0/+3
| | | | | | | It depends on imx-gpu-g2d recipe which is specific to imxgpu2d machine types Signed-off-by: Khem Raj <raj.khem@gmail.com>
* weston-init: Set bindir properly in weston.iniTom Hochstein2022-02-111-0/+1
| | | | | | | The customized weston.ini is installed in the rootfs with an unresolved bindir variable. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston-init: Enable screen sharingTom Hochstein2022-01-291-1/+2
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Adjust base patch for forkTom Hochstein2022-01-291-8/+10
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Upgrade to L5.10.72-2.2.0 releaseTom Hochstein2022-01-291-1/+1
| | | | | | | | | | | | | | | Fixes: ``` 26da63a4 screen-share: weston screen-share poor performance with g2d-renderer f8ce046f g2d-renderer: weston screenshare fail to work on rdp-backend with g2d-renderer 74ae3012 drm-backend: rename NV12_10LE40 to NV15 78e17706 backend-fbdev: MIPI display recovery slowly after suspend resume e73c641e LF-4317 launcher-logind: weston sometimes failed to start when booting up from eMMC d5ad97f2 g2d-renderer: use dmabuf.attributes.stride for video stride 23166110 LF-3992 state-propose: fix chromium cannot show on 8mq platform ``` Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Update base portion of recipeTom Hochstein2022-01-296-6/+104
| | | | | | | Update the base portion of the i.MX fork recipe to the latest OE-core recipe c8aa0222ce2be647911114aaebcbb0d55d7caf87. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Rework SRC_URITom Hochstein2022-01-291-5/+3
| | | | | | | Rework the i.MX SRC_URI override so it's clear what is changed and what is inherited. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* wayland-protocols: Upgrade to 1.22.imxTom Hochstein2022-01-291-2/+2
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-apitrace: Upgrade to 10.0.0Tom Hochstein2022-01-292-11/+8
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-g2d-samples: New recipe for G2D sample appsTom Hochstein2022-01-291-0/+22
| | | | | | | | The G2D sample apps are now available as source. Note that the package is currently limited to GPU-based G2D and is not compatible with DPU-based G2D. A future release will add DPU support. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-g2d: Upgrade to 6.4.3.p2.4Tom Hochstein2022-01-292-39/+31
| | | | | | | This version has the sample apps removed, available now in the new recipe imx-g2d-samples. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-g2d: Consolidate G2D recipes in single folderTom Hochstein2022-01-292-0/+0
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-viv: Upgrade to 6.4.3.p2.4Tom Hochstein2022-01-294-46/+18
| | | | | | | | - x11 is no longer supported - dri is no longer supported - remove vestiges of 64-bit framebuffer on Wayland, which is no longer supported Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* libdrm: Upgrade to 2.4.107.imxTom Hochstein2022-01-281-3/+3
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* libsdl2: follow oe-core's move to cmakeMax Krummenacher2022-01-151-1/+1
| | | | | | | openembedded-core commit c00f79c2f1 ("libsdl2: Move to CMake build") moved the recipe to CMake. Follow this in this bbappend. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* Merge pull request #907 from thochstein/masterOtavio Salvador2021-11-011-9/+11
|\ | | | | imx-gpu-viv updates for 6.4.3.p2.2
| * imx-gpu-viv: Install SOC-specific binariesTom Hochstein2021-10-311-0/+11
| | | | | | | | | | | | The archive now contains SOC-specific binaries. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
| * imx-gpu-viv: Drop SOC-specific header installationTom Hochstein2021-10-311-9/+0
| | | | | | | | | | | | | | The recipe installs GLES3 headers based on SOC. This is not necessary as lack of support is expected to be handled at runtime. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* | imx-gpu-viv: Expose Vulkan library versionTom Hochstein2021-10-311-2/+5
|/ | | | | | | Expose the Vulkan library version so NXP can easily override in their layer. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* waffle: Forward port Separate-surfaceless-option-from-x11 patch as wellKhem Raj2021-10-291-10/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* waffle: Forward port the patch to latest waffleKhem Raj2021-10-291-15/+13
| | | | | | OE-core has new version Signed-off-by: Khem Raj <raj.khem@gmail.com>
* imx-gpu-g2d: upgrade to 6.4.3.p2.2Andrey Zhizhikin2021-10-221-5/+5
| | | | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-dpu-g2d: upgrade to 1.9.4Andrey Zhizhikin2021-10-221-4/+4
| | | | | | Add runtime dependency to libopencl-imx. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-gpu-viv: upgrade to 6.4.3.p2.2Andrey Zhizhikin2021-10-224-9/+9
| | | | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-gpu-viv: skip QA check for libgl-imx packageAndrey Zhizhikin2021-10-221-0/+4
| | | | | | | | | | | | libgl-imx package provides libGL, which has runtime dependencies on X11 libraries. In case of Wayland-only builds, this triggers the QA error on missing RDEPENDS, since they are not provided by any package. Skip this QA check for libgl-imx package, as it is not distributed for Wayland-only builds, and has dependencies properly resolved when X11 builds are used. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-gpu-apitrace: enable back for glibc >= 2.34Andrey Zhizhikin2021-09-022-4/+36
| | | | | | | | | | | | | | Upsteam suggested that for glibc >= 2.34, dlsym wrappers can be disabled, see [1]. Similar commit is introduced in meta-oe: 9fdc7960b ("apitrace: Enable on glibc >= 2.34") Introduce patch to the layer and enable the package. Link: [1]: https://github.com/apitrace/apitrace/issues/756 Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> Cc: Tom Hochstein <tom.hochstein@nxp.com>
* 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>
* imx-gpu-viv: Provides virtual/libgl for framebufferTom Hochstein2021-08-231-3/+1
| | | | | | | Support for GL on framebuffer is available for some time, at least since 6.4.0.p2.6. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* xserver-xorg: Backport pixmap fixes for GLESTom Hochstein2021-08-189-0/+1877
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-viv: Drop empty Wayland packagesTom Hochstein2021-08-181-17/+0
| | | | | | | The functionality of libwayland-viv-imx and libgc-wayland-protocol-imx was moved to libegl-imx some time ago, so drop the empty packages. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-viv: Move CL/cl_viv_vx_ext.h to main packageTom Hochstein2021-08-181-1/+1
| | | | | | | The header file `/usr/include/CL/cl_viv_vx_ext.h` is needed at runtime, so move it to the main package `libclc-imx`. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-viv: Inhibit sysroot strippingTom Hochstein2021-08-181-3/+4
| | | | | | | | | The binaries are already stripped, so inhibit sysroot stripping. Fixes multiple warning messages like: WARNING: imx-gpu-viv-1_6.4.3.p2.0-aarch64-r0 do_populate_sysroot: File '/usr/lib/libGLES_CL.so.1.1.0' from imx-gpu-viv was already stripped, this will prevent future debugging! Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-viv: Cleanup FILES_libnn-imx*Tom Hochstein2021-08-181-3/+2
| | | | | | | Certain libnn-imx libraries and headers were moved to nn-imx recipe. Note that nn-imx currently exists only in meta-imx layer. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-dpu-g2d: Upgrade to 1.9.2Tom Hochstein2021-08-181-4/+4
| | | | | | | | | | | | | | | | | 2043f5e MA-18905 Fix NV12 tiled+interlaced to NV12 Linar output not correct issue. dec91a5 MGS-6047-4 [#ccc] G2d - add support for multiplane destination formats 530834d MGS-6068 [#ccc] [i.MX8QXPC0-MEK@Linux_IMX_5.4.70-2.3.0 Q4 RC1]imxvideoconvert_g2d 6f000cd MA-12001-2 Fix dpu_test build fail on android 3a7b8d4 MA-18242 configure vscale setup factor2 for bob deinterlace e59edc7 MGS-6114 [#ccc] [QNX] - add support for dpu register locking c4784ec MA-12001 Fix Android emulator build error 9fe13fb MGS-6047-3 [#ccc] G2d - add support for multiplane destination formats 43b1eb4 MGS-6047-2 [#ccc] G2d - add support for multiplane destination formats 30f3ece MGS-6047-1 [#ccc] G2d - add support for multiplane destination formats 0dfcf62 MGS-5942 [#ccc] G2D - add support of caching allocated buffers db7e627 MGS-6062 [#ccc] [G2D] YUV rotation is slow Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-g2d: Upgrade to 6.4.3.p2.0Tom Hochstein2021-08-181-6/+6
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-viv: Upgrade to 6.4.3.p2.0Tom Hochstein2021-08-184-10/+10
| | | | | | | See the change log for more details: https://source.codeaurora.org/external/imx/imx-manifest/tree/GraphicsChangeLogv6?h=imx-linux-hardknott Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-apitrace: exclude from builds with glibc 2.34+Andrey Zhizhikin2021-08-181-0/+3
| | | | | | | | | | | | | | | Upstream project has issues with new glibc dropping __libc_dlopen_mode and __libc_dlsym functions, which were initially marked as GLIBC_PRIVATE. Since according to [1] there is no solution for upstream at the moment, exclude the NXP fork of apitrace from builds. meta-oe has similar exclusion commit ba94b0fef ("apitrace: Exclude from builds with glibc 2.34+") for upstream component. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> Link: [1]: https://github.com/apitrace/apitrace/issues/756
* layer: More override fixesTom Hochstein2021-08-123-3/+3
| | | | | | | | | | Adds fixes for _imx, _imxdpu, _imxdrm, _imxgpu, _imxgpu3d, virtual PREFERRED_PROVIDER versions Fix other places for imx/imxdpu/imxdrm overrides Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer: Convert to new override syntaxKhem Raj2021-08-1224-206/+206
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>