aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland
AgeCommit message (Collapse)Author
2018-10-30weston: Disable opengl for 2D-only SOCTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-10-30weston: Set desktop shell size to 1080p for i.MX 8MTom Hochstein
For i.MX 8M, set the shell size to 1080p to reduce GPU pressure. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-10-30weston: Use argb8888 as gbm-format for i.MX 8MQTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-10-30weston: Move i.MX-specific config file to recipeTom Hochstein
Make it easier to customize the config file. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-10-26weston: BugfixesTom Hochstein
- g2d-renderer: Enable dither effect in the fbdev board - compositor-drm: avoid commit invalid framebuffer to plane - g2d-render: fix the render error in vg_gc2000 test - g2d-render: fix the residual image on display - g2d-renderer: import DMABuf should use offset in attributes - compositor-drm: Revert the fence support in DRM compositor - compositor-drm: fix video playback hang after add fence in glrender - MGS-4050 [#ccc] libweston/compositor-fbdev: Use fbGetDisplayByIndex when selecting the framebuffer - compositor-drm: Add display fence support - compositor-drm: fix cannot reuse current framebuffer if damage is empty - g2d-render: weston will be closed after executing weston-info - g2d-render: support new ion allocator Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-09-12weston: install weston.ini to disable idle timeoutGary Bisson
In order to get the same behavior as meta-fsl-bsp-release (see weston_4.0.0.bbappend). Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-12wayland-protocols: Avoid recipe parsing for foreign machinesOtavio Salvador
This restricts the parsing for machines which has either imxgpu or imxfbdev SoC features. Fixes: contamination of other BSP machines Reported-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-11wayland-protocols: Fix PACKAGE_ARCH for i.MX-specific versionTom Hochstein
Fix the PACKAGE_ARCH so that our i.MX-specific version does not override the standard allarch version. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-11wayland-protocols: Fix fetcher errorTom Hochstein
The i.MX-specific recipe is using a standard archive, so the i.MX-specific recipe version cannot be used in the archive URL. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-07wayland-protocols: Add HDR10 metadata and alpha compositing protocolsTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-09-07wayland-protocols: Downgrade to 1.13 for i.MXTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2018-09-06Revert "wayland: Remove file provided by imx-gpu-viv"Gary Bisson
This reverts commit 3be51cd536cfb08e95e852ddfdb180a51798b1f0. This fixes the following issue: | No package 'wayland-egl' found Reason is that 3be51cd5 should have been removed as soon as the following commit was pushed: f1e39bd1 imx-gpu-viv: Remove wayland-egl files Since imx-gpu-viv doesn't provide wayland-egl any longer, wayland recipe has to. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-08-30weston: Fix non-GPU supportTom Hochstein
The desktop failed to start on i.MX parts without GPU. The problem is fixed, and now the package must be configured for i.MX GPU support. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-12wayland: Remove file provided by imx-gpu-vivFabio Berton
wayland-egl.pc is installed by imx-gpu-viv and we need to remove from wayland package for imxgpu machines. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-11imx-base.inc: Add imxfbdev and imxdrm to MACHINEOVERRIDES_EXTENDERTom Hochstein
- weston uses the imxfbdev override for backend configuration - imx-gpu-viv uses the imxdrm override for dependency configuration Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-06weston: Set DEFAULT_PREFERENCE to -1Fabio Berton
This recipe need to be set by machine using: PREFERRED_VERSION_weston = "4.0.0.imx" Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston-init: Fix inoperable Weston desktopTom Hochstein
For an image configured with pam and systemd, Weston apps would fail to run. For example: $ weston-terminal failed to connect to Wayland display: No such file or directory failed to create display: No such file or directory This fix is based on a proposal by Daniel Diaz to OE-core. The main part of the fix is the use of a new, manually created tty. The original proposal called weston directly, but that didn't seem to work where weston-launch did. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston-init: Remove OpenGL requirement for i.MX 6SLTom Hochstein
For parts with 2D GPU but not 3D GPU, OpenGL is not required. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Remove OpenGL requirement for i.MX 6SLTom Hochstein
OpenGL is not required for parts with 2D GPU but no 3D GPU. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Use cairo for parts with 3D GPUTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Add G2D rendering supportTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Set configuration for non-DRM partsTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Use a fork for i.MXTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Copy upstream 4.0 recipeTom Hochstein
http://git.yoctoproject.org/cgit.cgi/poky/tree/?h=master-next&id=d05a268c5069c3fb47ceed47862ba36b5f49ebd3 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-05weston: Remove 2.0 recipeTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-06weston: Append EGL_CFLAGS to CFLAGS for imxgpu2dFabio Berton
When building weston for imxgpu2d machine, CFLAGS doesn't get EGL_CFLAGS value and cause the error bellow: | ../build/tmp/sysroots/imx6sl-warp/usr/include/EGL/eglvivante.h:266:2: error: #error "Platform not recognized" | #error "Platform not recognized" Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-01-25weston: Do not force MACHINE_SOCARCH for PACKAGE_ARCHOtavio Salvador
There is no need to force the PACKAGE_ARCH as it is automatically set correctly for i.MX based machines and left unmodified otherwise. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-12-18weston: Switch to 2.0 with i.MX forkTom Hochstein
EGL support was removed from the fbdev compositor in Weston 2.0. Add it back via an i.MX fork. This has been verified with imx-gpu-viv v6 only. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-05-23weston: Apply append only for weston 1.11.1 versionFabio Berton
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-05-19weston: Use weston 1.11.1 for mx6 and mx7 machinesFabio Berton
As EGL support was removed from weston on commit: https://github.com/wayland-project/weston/commit/e77f8ad79bdf3613dc7e587ea0cf5b9d39e4f8e0 we can't use version 2.0.0. Add latest version with EGL support, 1.11.1 and set mx6 and mx7 machines to use this version. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-02-08weston: Fix patch for no input device handlingTom Hochstein
The previous patch had a logic error. The upstream submission was correct, so this just synchronizes the patch. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-25weston: Consolidate i.MX GPU patchesTom Hochstein
This is a non-functional change with one small exception, an additional variable initialization that has no known behavioral effect: Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-23weston: Touch events cause startup failureTom Hochstein
Pressing the touch panel continously during boot up caused weston to crash. The weston view was being accessed before it was fully initialized, so now we guard against this. Upstream-Status: Denied [Could not reproduce] Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-23weston: Undo recent command-line change for renderer selectionTom Hochstein
To restore command-line compatibility, reverting back to integer-based renderer selection syntax: weston [--use-gl=0|1] [--use-g2d=0|1] Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-23weston: xwayland: Fix crash when run with no input deviceTom Hochstein
Starting an xterm with no input device led to a crash because weston_wm_pick_seat() was returning garbage and weston_wm_selection_init() was trying to use the garbage. Upstream-Status: Accepted [https://cgit.freedesktop.org/wayland/weston/commit/?id=e7fff215ada3fd3d1b2af664888f960c082f9065] Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-23weston: Enable double buffer with fb_pan_display for weston compositorTom Hochstein
Refine offset calculation. Upstream-Status: Inappropriate [i.MX specific] Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-23weston: T3DStressTest_Wayland displays abnormally while using G2D compositorTom Hochstein
It need add g2d_finish after repaint_region and before copy to framebuffer. Because if using dual dpu cores, the tasks on each core will be executed sequently, but it can't ensure one task splited on dual cores can be finished synchronously by hardware. Upstream-Status: Inappropriate [i.MX specific] Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-12-16weston: Add egl and gles support for non-GPU SoCsTom Hochstein
For SoCs with no GPU, configure weston to use the software versions of egl and gles through mesa. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-12-16weston: Fix build on i.MX 6SLTom Hochstein
Weston requires egl and glesv2 together, or neither. Since the i.MX 6SL can only provide egl, we configure weston to work without egl. A build break occurred due to i.MX patches which should not be applied for 6SL. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-11-23weston: Use compiler settings provided by IMX-GPU driver pkg-configTom Hochstein
The IMX-GPU driver now provides compiler settings through pkg-config, so don't set them explicitly. The package had to be patched to link the compositor to egl. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-11-23weston: Remove duplication in variable valueTom Hochstein
Rework variable implementation (using SoC override) so that the value does not contain a duplication. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18weston: Fix weston build failedTom Hochstein
Expose more variale to G2d compositor, because it is not easy to get the physical address in G2d compositor. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18weston: Get stride from the FB bufferTom Hochstein
Fix the stride setting error in the fbinfo. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18weston: Use common API to support G2d compositorTom Hochstein
Replace gcoOS_WaylandCreateVivGlobal with eglBindWaylandDisplayWL. Fix a width set error in g2d_renderer_attach_shm. Use noncached buffer in weston shm buffer. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18weston: Add clone mode support for multi displayTom Hochstein
Support showing the same contents on multiple displays. Use the following command to enable multi-display: openvt -v -- weston-launch -- --idle-time=0 --use-g2d=1 --device=/dev/fb0,/dev/fb4 --clone-mode --log=/var/log/weston.log Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18weston: Re-implement renderer using G2DTom Hochstein
Change i.MX renderer from gal2d to g2d API. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-10-18weston: Remove EGL support for GPU 2D-only SoCsOtavio Salvador
The i.MX SoCs which provides support for GPU 2D but lacks GPU 3D should drop the EGL use. This fixes the i.MX6SL build errors seen in O.S. Systems autobuilders. Reported-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-09-21weston: Rebase patches for Weston 1.11Tom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-09-08weston: Refactor code to use the new overridesOtavio Salvador
The recipe has been reworked to use the 'imxpxp', 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6UL specific code has been reworked to used when only PXP-only support is available, fixing the i.MX7D support as well. Change-Id: Ieaae9f95bd7ace58df7bccdab19b42ad35f44f5e Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-06-27weston: Fix weston window manager for i.MX 6UltraLiteTom Hochstein
The weston window manager failed to start on i.MX 6UltraLite EVK. 6UL has no GPU, so we need to use pixman. Fixed by removing EGL/GLES support, and by configuring to use Framebuffer backend as native. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>