All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Coolidge <ian@boundarydevices.com>
To: Gary Bisson <gary.bisson@boundarydevices.com>
Cc: meta-freescale Mailing List <meta-freescale@yoctoproject.org>,
	Otavio Salvador <otavio@ossystems.com.br>
Subject: Re: [PATCH v2 04/19] imx-gpu-viv: Add i.MX 8 support
Date: Wed, 27 Jun 2018 16:48:07 -0700	[thread overview]
Message-ID: <CADseiPmRzLqjS9=gFpQEAC092UOrZGTpAzNm3+EQ1dzc=zTrzg@mail.gmail.com> (raw)
In-Reply-To: <20180627085146.GA13775@g751.home>

[-- Attachment #1: Type: text/plain, Size: 5942 bytes --]

Just as a follow up...

core-image-weston is unbuildable due to some libdrm issue it looks like:

| ../git/libweston/compositor-drm.c: In function 'drm_fb_addfb':
| ../git/libweston/compositor-drm.c:907:23: error:
'DRM_FORMAT_MOD_AMPHION_TILED' undeclared (first use in this function); did
you mean 'DRM_FORMAT_MOD_VIVANTE_TILED'?
|    if (fb->modifier == DRM_FORMAT_MOD_AMPHION_TILED) {
|                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                        DRM_FORMAT_MOD_VIVANTE_TILED
| ../git/libweston/compositor-drm.c:907:23: note: each undeclared
identifier is reported only once for each function it appears in
| ../git/libweston/compositor-drm.c: In function 'drm_assign_planes':
| ../git/libweston/compositor-drm.c:3383:37: error: 'DRM_FORMAT_P010'
undeclared (first use in this function); did you mean 'DRM_FORMAT_R16'?
|      || dmabuf->attributes.format == DRM_FORMAT_P010)
|                                      ^~~~~~~~~~~~~~~
|                                      DRM_FORMAT_R16

Which I'm guessing can't be a coincidence.

On Wed, Jun 27, 2018 at 1:51 AM, Gary Bisson <
gary.bisson@boundarydevices.com> wrote:

> Hi Tom, Otavio,
>
> Sorry to insist but my previous comments have not been taken into
> account in this series.
>
> On Tue, Jun 26, 2018 at 02:37:13PM -0300, Otavio Salvador wrote:
> > From: Tom Hochstein <tom.hochstein@nxp.com>
> >
> > Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
> > Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> > ---
> >
> >  .../imx-gpu-viv/imx-gpu-viv-6.inc             | 37 ++++++++++++++++---
> >  .../imx-gpu-viv_6.2.4.p1.2-aarch64.bb         |  6 +++
> >  2 files changed, 37 insertions(+), 6 deletions(-)
> >  create mode 100644 recipes-graphics/imx-gpu-viv/i
> mx-gpu-viv_6.2.4.p1.2-aarch64.bb
> >
> > diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
> b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
> > index 6cc8cbb1..d5023bdf 100644
> > --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
> > +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
> > @@ -12,11 +12,11 @@ DEPENDS += " \
> >         bb.utils.contains('DISTRO_FEATURES',     'x11', 'virtual/libx11
> libxdamage libxext libxfixes', \
> >                                                         '', d), d)} \
> >  "
> > -DEPENDS += "libdrm"
> >  DEPENDS += " \
> >      ${@bb.utils.contains('DISTRO_FEATURES',     'x11', 'libxcb
> libxshmfence libxxf86vm', \
> >                                                         '', d)} \
> >  "
> > +DEPENDS_append_mx8 = " libdrm wayland"
> >
> >  # imx-gpu-viv does not provide everything it needs to for virtual/libgl
> >  # on x11 backend or on Wayland backend with XWayland support.
> > @@ -29,6 +29,8 @@ EXTRA_PROVIDES_append_imxgpu3d = " \
> >      virtual/libgles1 \
> >      virtual/libgles2 \
> >  "
> > +EXTRA_PROVIDES_append_mx8 = " \
> > +    virtual/libopenvx \
>
> This is wrong, only available for mx8qm.
>
> >  "
> >  PROVIDES += " \
> >      imx-gpu-viv \
> > @@ -51,6 +53,8 @@ inherit fsl-eula-unpack
> >  SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
> >
> >  # Note : If you add a package here, to prevent a naming conflict see
> the python_anonymous() futher below
> > +IMX_PACKAGES_GBM     = ""
> > +IMX_PACKAGES_GBM_mx8 = "libgbm-imx libgbm-imx-dev"
> >  PACKAGES =+ "libclc-imx libclc-imx-dev \
> >       libgl-imx libgl-imx-dev \
> >       libgles-imx libgles-imx-dev \
> > @@ -64,7 +68,7 @@ PACKAGES =+ "libclc-imx libclc-imx-dev \
> >       libgal-imx libgal-imx-dev \
> >       libvivante-dri-imx \
> >       libvsc-imx \
> > -     libgbm-imx libgbm-imx-dev \
> > +     ${IMX_PACKAGES_GBM} \
> >       libwayland-viv-imx libwayland-viv-imx-dev \
> >       libgc-wayland-protocol-imx libgc-wayland-protocol-imx-dev \
> >       libwayland-egl-imx-dev \
> > @@ -122,9 +126,19 @@ python __anonymous() {
> >  IS_MX6SL = "0"
> >  IS_MX6SL_mx6sl = "1"
> >
> > +IS_MX8 = "0"
> > +IS_MX8_mx8 = "1"
> > +
> >  PACKAGE_FP_TYPE = "hardfp"
> >
> > +HAS_GBM     = "false"
> > +HAS_GBM_mx8 = "true"
> > +
> > +# GLES 3.1 is supported for all i.MX 8
>
> Not true, i.MX 8M Mini is GLES 2.0 only according to NXP website.
>
> > +# GLES 3.2 is supported for i.MX 8QM only
> >  GLES3_HEADER_REMOVALS = "gl31.h gl32.h"
> > +GLES3_HEADER_REMOVALS_remove_mx8   = "gl31.h"
> > +GLES3_HEADER_REMOVALS_remove_mx8qm = "gl32.h"
> >
> >  do_install () {
> >      install -d ${D}${libdir}
> > @@ -140,6 +154,9 @@ do_install () {
> >      rm -rf ${D}${includedir}/vulkan/vulkan.h
> >
> >      install -d ${D}${libdir}/pkgconfig
> > +    if ${HAS_GBM}; then
> > +        install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/gbm.pc
> ${D}${libdir}/pkgconfig/gbm.pc
> > +    fi
> >
> >      # The preference order, based in DISTRO_FEATURES, is Wayland (with
> or without X11), X11 and fb
> >      if [ "${USE_WL}" = "yes" ]; then
> > @@ -212,6 +229,14 @@ do_install () {
> >      ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
> >      ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
> >
> > +    if [ "${IS_MX8}" = "1" ]; then
> > +        # Install the vulkan driver in a sub-folder. When installed in
> the same
> > +        # folder as the vulkan loader layer library, an incorrect
> linkage is
> > +        # created from libvulkan.so.1 to our library instead of the
> loader
> > +        # layer library.
> > +        install -d ${D}${libdir}/vulkan
> > +        mv ${D}${libdir}/libvulkan-${backend}.so ${D}${libdir}/vulkan/
> libvulkan_VSI.so
> > +    fi
>
> Therefore i.MX 8M Mini cannot support Vulkan.
>
> Let me know if I should offer follow-up patches.
>
> Regards,
> Gary
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 8321 bytes --]

  reply	other threads:[~2018-06-27 23:48 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-26 17:37 [PATCH v2 01/19] imx-base.inc: Improve formatting Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 02/19] imx-dpu-g2d: Add new G2D implementation based on DPU Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 03/19] imx-gpu-viv: Rename package for libgal Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 04/19] imx-gpu-viv: Add i.MX 8 support Otavio Salvador
2018-06-27  8:51   ` Gary Bisson
2018-06-27 23:48     ` Ian Coolidge [this message]
2018-06-28  6:14       ` Gary Bisson
2018-06-26 17:37 ` [PATCH v2 05/19] xf86-video-imx-vivante: " Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 06/19] imx-base.inc: Add i.MX8M and i.MX8M Mini support Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 07/19] imx-base.inc: Add imxdpu and imxdpublit to MACHINEOVERRIDES_EXTENDER Otavio Salvador
2018-06-27  9:07   ` Gary Bisson
2018-06-27 12:24     ` Otavio Salvador
2018-06-27 12:44       ` Tom Hochstein
2018-06-27 12:54         ` Gary Bisson
2018-06-26 17:37 ` [PATCH v2 08/19] imx-base.inc: Add imxgpu " Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 09/19] weston: Set package arch for all i.MX Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 10/19] weston: Remove 2.0 recipe Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 11/19] weston: Copy upstream 4.0 recipe Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 12/19] weston: Use a fork for i.MX Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 13/19] weston: Set configuration for non-DRM parts Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 14/19] weston: Add G2D rendering support Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 15/19] weston: Use cairo for parts with 3D GPU Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 16/19] weston: Remove OpenGL requirement for i.MX 6SL Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 17/19] weston-init: " Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 18/19] weston-init: Fix inoperable Weston desktop Otavio Salvador
2018-06-26 17:37 ` [PATCH v2 19/19] imx-base.inc: Add imxfbdev and imxdrm to MACHINEOVERRIDES_EXTENDER Otavio Salvador

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADseiPmRzLqjS9=gFpQEAC092UOrZGTpAzNm3+EQ1dzc=zTrzg@mail.gmail.com' \
    --to=ian@boundarydevices.com \
    --cc=gary.bisson@boundarydevices.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.