aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics
AgeCommit message (Collapse)Author
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-18imx-gpu-viv: egl: Add alias for EGL_PLATFORM_GBM_KHROtavio Salvador
New EGL code uses EGL_PLATFORM_GBM_KHR (for example weston) and the value is the same, so we can provide an alias for it instead of patching every code using it. 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-12-18imx-gpu-viv: egl: Add alias for EGL_PLATFORM_X11_KHROtavio Salvador
New EGL code uses EGL_PLATFORM_X11_KHR (for example glmark2) and the value is the same, so we can provide an alias for it instead of patching every code using it. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-28xf86-video-armada: Bump to 04748ffFabio Estevam
Bump to 04748ff, which contains the following changes: 04748ff etnaviv: avoid out of bounds accelerated picture accesses e907c63 etnaviv: add default string for error codes 33eaf05 etnaviv: add coordinates to Xrender Composite debug c191212 etnaviv: fix stale cache_timer pointer 1c4b212 etnaviv: fix timeout calculation This fixes GUI text corruption on imx6q when running a core-image-sato image. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-20Revert "xf86-video-imxfb-vivante: Change SRC_URI to point to git"Otavio Salvador
This reverts commit fb66d5010363083ea8d84160b74c62dad67f9a13. The commit does an upgrade to the driver without upgrading the other components. We are reverting this as it must be part of the GPU upgrade patchset. 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-11-16xserver-xf86-config: Add Xorg configuration for i.MX 6SLL and 7ULPTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-16piglit: Remove redundant dependencyTom Hochstein
The dependency on virtual/egl is in the base recipe now. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-16eglinfo-fb: Use generic headerTom Hochstein
Use eglplatform.h rather than vendor-specific eglvivante.h. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-16libdrm: Extend ARM support to mx7Tom Hochstein
Apply the same xf86drm.h change made for mx6 to mx7. The recipe is already extended by using imxgpu2d as filter. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-28xf86-video-imxfb-vivante: Change SRC_URI to point to gitDaiane Angolini
Change SRC_URI to point to git repo on Code Aurora as it mirrors the git.freescale.com. It also changes the working directory to reflect the git structure. Signed-off-by: Daiane Angolini <daiane.angolini@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-06-28libdrm-armada: fix license stringTrevor Woerner
GPL2 -> GPLv2 Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-05-30xf86-video-armada: addTrevor Woerner
If the user enables "use-mainline-bsp" in MACHINEOVERRIDES, assume they want to use the open-source, reverse-engineered etnaviv drm x11 driver. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-05-30libdrm-armada: addTrevor Woerner
A drm for use with xf86-video-armada, which is for use with etnaviv. Signed-off-by: Trevor Woerner <twoerner@gmail.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-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-03-09imx-gpu-viv: Fix build break for missing gl headersTom Hochstein
For x11 graphics and Wayland graphics with XWayland support, a build break is possible due to missing headers. This is because imx-gpu-viv does not provide everything it needs to for virtual/libgl and depends on mesa to fill in what is missing. Adding a dependency on mesa fixes the build break. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-03-09xf86-video-imxfb-vivante: cleanupMax Krummenacher
The build starts since commit meta-fsl-arm da0581341a58dfe393a829b3c402330c73589963 with the make file in ${S} which is actually named Makefile, thus there is no need to override base.do_compile or pass the directory and name of the make file in EXTRA_OEMAKE. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-03-09xorg-driver: remove the local copies of xorg-driver-*.incMax Krummenacher
recipes-graphics/xorg-driver/xorg-driver-common.inc is identical to the copy in openembedded-core. xorg-driver-video.inc lacks the automatic addition of xorg-driver-abi-<ABI> to RDEPENDS. (and constructs DEPENDS differently but with the same effect) xf86-video-fbdev must now provide the full relative path for its include file. fixes: WARNING: xf86-video-imxfb-vivante-3_5.0.11.p8.6-r0 do_package_qa: QA Issue: Package xf86-video-imxfb-vivante contains Xorg driver (vivante_drv.so) but no xorg-abi- dependencies [xorg-driver-abi] and likely but not tested fixes the same warning for xf86-video-fbdev used for PPC devices. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> 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-02-08xserver-xorg: disable glamorAndreas Müller
oe-core enables glamour by default since commit 33864ddc. I tried to build xserver with glamor but failed first with | #error "Platform not recognized" This could be fixed by CFLAGS_append_imxgpu2d = " \ -DLINUX \ " but then I got | <sysroot>/usr/include/X11/Xlib.h:222:2: error: conflicting types for 'GC' | *GC; | ^~ | In file included from ../../xorg-server-1.19.1/glamor/glamor.h:34:0, | from ../../xorg-server-1.19.1/glamor/glamor_priv.h:32, | from ../../xorg-server-1.19.1/glamor/glamor_render.c:35: | ../../xorg-server-1.19.1/include/gcstruct.h:289:3: note: previous declaration of 'GC' was here | } GC; | ^~ | make[1]: *** [Makefile:730: glamor_gradient.lo] Error 1 As this needs deeper investigation to fix and we have no experience on how glamor performs on vivante, disable it for now. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-01-27piglit: 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-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-27libdrm: 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-27gtk+3: 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-27cogl: 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-27clutter: 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>
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-25xserver-common: Move to dynamic layersGary Thomas
The xserver-common recipe can only be built if the openbedded (meta-oe) layer is present, so move it to the dynamic layers to prevent breakage if that layer is not in the build. Signed-off-by: Gary Thomas <gary@mlbassoc.com> 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>
2017-01-23xserver-common: Enable iglx moduleNeena Busireddy
Enable iglx module to pass indirect glx rendering test case. Signed-off-by: Neena Busireddy <neenareddy.busireddy@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-12-20libsdl2: add append to fix buildAndreas Müller
Our vivante driver does not support the API libsdl2 expects. Fixes: <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_Create': <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:100:30: error: 'VIVANTE_GLES_LoadLibrary' undeclared (first use in this function) device->GL_LoadLibrary = VIVANTE_GLES_LoadLibrary; ^~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:100:30: note: each undeclared identifier is reported only once for each function it appears in <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:101:33: error: 'VIVANTE_GLES_GetProcAddress' undeclared (first use in this function) device->GL_GetProcAddress = VIVANTE_GLES_GetProcAddress; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:102:32: error: 'VIVANTE_GLES_UnloadLibrary' undeclared (first use in this function) device->GL_UnloadLibrary = VIVANTE_GLES_UnloadLibrary; ^~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:103:32: error: 'VIVANTE_GLES_CreateContext' undeclared (first use in this function) device->GL_CreateContext = VIVANTE_GLES_CreateContext; ^~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:104:30: error: 'VIVANTE_GLES_MakeCurrent' undeclared (first use in this function) device->GL_MakeCurrent = VIVANTE_GLES_MakeCurrent; ^~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:105:34: error: 'VIVANTE_GLES_SetSwapInterval' undeclared (first use in this function) device->GL_SetSwapInterval = VIVANTE_GLES_SetSwapInterval; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:106:34: error: 'VIVANTE_GLES_GetSwapInterval' undeclared (first use in this function) device->GL_GetSwapInterval = VIVANTE_GLES_GetSwapInterval; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:107:29: error: 'VIVANTE_GLES_SwapWindow' undeclared (first use in this function) device->GL_SwapWindow = VIVANTE_GLES_SwapWindow; ^~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:108:32: error: 'VIVANTE_GLES_DeleteContext' undeclared (first use in this function) device->GL_DeleteContext = VIVANTE_GLES_DeleteContext; ^~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_CreateWindow': <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:285:29: warning: implicit declaration of function 'SDL_EGL_CreateSurface' [-Wimplicit-function-declaration] data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window); ^~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:285:27: warning: assignment makes pointer from integer without a cast [-Wint-conversion] data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window); ^ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_DestroyWindow': <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:306:13: warning: implicit declaration of function 'SDL_EGL_DestroySurface' [-Wimplicit-function-declaration] SDL_EGL_DestroySurface(_this, data->egl_surface); ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Andreas Müller <schnitzeltony@googlemail.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-12-16gtk+3: Restore explicit CFLAGS settingTom Hochstein
The package doesn't link against egl, so we can't rely on egl.pc to provide the necessary config settings. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> 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>
2016-12-16imx-gpu-viv: Don't install GLES package configs on SoCs without 3DTom Hochstein
For SoC's without 3D, imx-gpu-viv doesn't provide a GLES library, so it's wrong to install the corresponding package configs. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-11-23imx-gpu-viv: Configure for Wayland backend if wayland and x11 are in distroTom Hochstein
By i.MX convention, if wayland and x11 are in the distro features, the Wayland backend is used. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-11-23gtk+3: Configure for Wayland backend if wayland and x11 are in distroTom Hochstein
By i.MX convention, if wayland and x11 are in the distro features, the Wayland backend is used. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-11-23cogl-1.0: Configure for Wayland backend if wayland and x11 are in distroTom Hochstein
By i.MX convention, if wayland and x11 are in the distro features, the Wayland backend is used. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-11-23clutter-1.0: Use Wayland backend if wayland and x11 are in distroTom Hochstein
By i.MX convention, if wayland and x11 are in the distro features, the Wayland backend is used. 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>