From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC90CECAAD3 for ; Mon, 19 Sep 2022 15:33:31 +0000 (UTC) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by mx.groups.io with SMTP id smtpd.web09.475.1663601604914052959 for ; Mon, 19 Sep 2022 08:33:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iTYPIN1T; spf=pass (domain: gmail.com, ip: 209.85.208.179, mailfrom: alex.kanavin@gmail.com) Received: by mail-lj1-f179.google.com with SMTP id a10so1470548ljq.0 for ; Mon, 19 Sep 2022 08:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=d+0aaG8kRMJTnrkBaOVzxIvpZ+AyKx7m+OFoIizHlEQ=; b=iTYPIN1TLPHbU7AuQQmZwbm+Rra/gT5XX6yEdInyOnMqyRAlEn8AHKuM92dyTmDE8P wB4jRq/Skc010QoO9zYPNgla/bHGA4CKEPtO5OdwYt3zF4ydD1NhF9vwVozCLvpCqIIq 6daxHQ6JMwV5NmxPnYDZVhFOK0OyZsVhaM/BXPrM7PdWKgU1ELNosbfwLsQGYkn+1D/m 6SS9/64mrQZaR9uedh2QSMK+qAuToZ+nan8RFT/uR7cMcvP5m1KQt5mqjspgS6WFug2e C6wtUci/5AZL37dXhEnBpdi8RVgJz5OyVpY0t592nGcQPp0uTZ2dOPvHo3EL9cin91zl mNSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=d+0aaG8kRMJTnrkBaOVzxIvpZ+AyKx7m+OFoIizHlEQ=; b=qjqf9oaus/u5/QM2w0b1wrexjBdyzUgEolfsi4eEYVYJfeNmFckqXhIL+kqBeuKBS9 qfntySAozmYq44bDrhtAYxF5h14qzuVoU8WUh7pmczEhPlZ3PbEEHzHQhS+w5XoiUugF pmen9AxbOjUR42UrGCzyTvemo6/COQQU1RlIxOPxBD/kteROmfDPy3sunuWB2q5AGq/4 xJTKbKs6iAMguVPvDZYwCNRkR5O2V0luDPWuHboB6zELqqmmpGlOjvs/Po25emxIof0s EGDMdKPB++spRhyyeJqQG5OUG5/b0h64Uf1dwqKj3rhEAxJtIcJrtQ5vwdVpc46eLSfc DCcg== X-Gm-Message-State: ACrzQf2yrr40otErrzJP121FtXXtRTXYOja+jgck1J9JtK2b3i/A/lBW 0PNtfF2uPY1xo/hq/Mu/ZJsDLnT2jGfMolX7vgY= X-Google-Smtp-Source: AMsMyM7xKEIE/88bKkv2SwEgO+q9ueKAl2y1/FbZ1ApqqZTVBDAo63aYcOKxbQ/D8EH+3u5QpmvALrwDHDRq28MhxnA= X-Received: by 2002:a2e:6d02:0:b0:26a:cf02:40c4 with SMTP id i2-20020a2e6d02000000b0026acf0240c4mr5908925ljc.513.1663601602671; Mon, 19 Sep 2022 08:33:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Kanavin Date: Mon, 19 Sep 2022 16:33:11 +0100 Message-ID: Subject: Re: [yocto] Adding Vulkan to core-image-weston To: Edgar Mobile Cc: "yocto@lists.yoctoproject.org" Content-Type: multipart/alternative; boundary="000000000000933acb05e9096e0e" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Sep 2022 15:33:31 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58077 --000000000000933acb05e9096e0e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You need to check the Mesa recipe to see how the build options are defined, and add swrast to the list of vulkan drivers if necessary. Meson_options only defines available options in Mesa, not the actual set used in yocto. Alex On Mon 19. Sep 2022 at 15.40, Edgar Mobile wrote: > Is editing meson_options.txt the recommended way to customize Mesa in > Yocto? > > ------------------------------ > *From:* Alexander Kanavin > *Sent:* Monday, September 19, 2022 2:36 PM > > *To:* Edgar Mobile > *Cc:* yocto@lists.yoctoproject.org > *Subject:* Re: [yocto] Adding Vulkan to core-image-weston > > You do, yes. It=E2=80=99s not qemu, it=E2=80=99s in Mesa. You can see the= options here: > https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/meson_options.txt > > > Alex > > On Mon 19. Sep 2022 at 15.30, Edgar Mobile wrote: > > What are the qemu params to activate swrast vulkan driver? And do I still > need mesa vulkan package? meson logs show it wasnt't compiled with > vulkan-drivers. > > ------------------------------ > *From:* Alexander Kanavin > *Sent:* Monday, September 19, 2022 2:20 PM > > *To:* Edgar Mobile > *Cc:* yocto@lists.yoctoproject.org > *Subject:* Re: [yocto] Adding Vulkan to core-image-weston > > I think swrast Vulkan driver may be a better option to start with. At > least that is contained entirely in qemu guest so you won=E2=80=99t have = to wrestle > with pass through code paths to the host which are all experimental. It= =E2=80=99s > entirely uncharted waters for me as well. > > Alex > > On Mon 19. Sep 2022 at 14.52, Edgar Mobile wrote: > > For the time being I use vulkan-tools so I get vulkaninfo. It fails > apparently due to no appropriate driver available. > I think adding virtio-experimental to mesa may be necessary, right? Or is > there another core recipse that will add mesa vulkan drivers? > > Regards > > ------------------------------ > *From:* Alexander Kanavin > *Sent:* Monday, September 19, 2022 1:31 PM > > *To:* Edgar Mobile > *Cc:* yocto@lists.yoctoproject.org > *Subject:* Re: [yocto] Adding Vulkan to core-image-weston > > As I said you need to inspect the working directory of the recipe to find > out what goes where. > > > Alex > > On Mon 19. Sep 2022 at 13.28, Edgar Mobile wrote: > > I have the impression that the only binary vulkan-samples installs is > /usr/bin/spirv-cross . Are there other packages that install more samples= ? > > ------------------------------ > *From:* Alexander Kanavin > *Sent:* Monday, September 19, 2022 8:25 AM > > *To:* Edgar Mobile > *Cc:* yocto@lists.yoctoproject.org > *Subject:* Re: [yocto] Adding Vulkan to core-image-weston > > I suppose you need to look at compile and install logs for vulkan-samples= . > And how the installed items get split into packages. I=E2=80=99m short, i= nspect > ${WORKDIR} for it. > > Alex > > On Mon 19. Sep 2022 at 9.36, Edgar Mobile wrote: > > Greetings, > > I see the libvulkan.so.* libs now, but I don't see any sample binaries > that look like Vulkan. Is there a list somewhere for all the files in > vulkan-samples? > Regards > > ------------------------------ > *From:* Alexander Kanavin > *Sent:* Saturday, September 17, 2022 8:28 AM > > *To:* Edgar Mobile > *Cc:* yocto@lists.yoctoproject.org > *Subject:* Re: [yocto] Adding Vulkan to core-image-weston > > If the samples don't link with libvulkan directly, it won't get pulled > into the images. How are they loading that library, is it via dlopen() > somewhere? Invisible dlopen() dependencies typically need to be listed > explicitly in RDEPENDS. > > As a quick fix, you can add vulkan-loader to the same > CORE_IMAGE_EXTRA_INSTALL list. > > Alex > > On Fri, 16 Sept 2022 at 19:17, Edgar Mobile wrote: > > > > Ok, so I switched to Kirkstone and added vulkan-samples to > CORE_IMAGE_EXTRA_INSTALL. > > But no libvulkan.so in /usr/lib. > > > > Am I missing something? > > > > ________________________________ > > From: Alexander Kanavin > > Sent: Friday, September 16, 2022 12:14 PM > > To: Edgar Mobile > > Cc: yocto@lists.yoctoproject.org > > Subject: Re: [yocto] Adding Vulkan to core-image-weston > > > > You can start by adding vulkan-samples to the image - the recipe is in > > core. We do not test vulkan in qemu, because the software vulkan > > rendering is still under active development, and marked as > > experimental in virglrenderer. > > > > It may help if you use qemux86_64 and kvm for it, because software > > graphical paths are too slow without it generally. > > > > Alex > > > > On Fri, 16 Sept 2022 at 13:43, Edgar Mobile > wrote: > > > > > > Greetings, > > > > > > I'd like to test graphics rendering with Vulkan on an Aarch64 Yocto > honister (qemu, host is x64). Can you tell me which parameters I need to > add to local.conf to get all libs and headers installed (plus maybe some > useful tools and demo if present)? > > > > > > Regards > > > > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > > > Links: You receive all messages sent to this group. > > > View/Reply Online (#58059): > https://lists.yoctoproject.org/g/yocto/message/58059 > > > Mute This Topic: https://lists.yoctoproject.org/mt/93720286/1686489 > > > Group Owner: yocto+owner@lists.yoctoproject.org > > > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ > alex.kanavin@gmail.com] > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > > > > > --000000000000933acb05e9096e0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You need to check the Mesa recipe to see how the build op= tions are defined, and add swrast to the list of vulkan drivers if necessar= y. Meson_options only defines available options in Mesa, not the actual set= used in yocto.

Alex

On Mon 19. Sep 2022 at 15.40, Edgar Mobile <heideggm@hotmail.com> wrote:
Is editing meson_options.txt the recommended way to customize Mesa in Yocto= ?


From: Ale= xander Kanavin <alex.kanavin@gmail.com>=
Sent: Monday, September 19,= 2022 2:36 PM

To: Edgar Mobile <heideggm@hotmail.com>
Cc: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] Adding= Vulkan to core-image-weston
=C2=A0
You do, yes. It=E2=80=99s not qemu, it=E2=80=99s in Mesa.= You can see the options here:=C2=A0

Alex

On Mon 19. Sep 2022 at 15.30, Edgar Mobile <heideggm@hotmail.com>= wrote:
What are the qemu params to activate swrast vulkan driver? And do I still n= eed mesa vulkan package? meson logs show it wasnt't compiled with vulka= n-drivers.


From: Alexander Kanavin <alex.k= anavin@gmail.com>
Sent: Monday, September 19,= 2022 2:20 PM

To: Edgar Mobile <heideggm@hotmail.com>
Cc: yocto@lists.yoctoproject.org <yocto@= lists.yoctoproject.org>
Subject: Re: [yocto] Adding= Vulkan to core-image-weston
=C2=A0
I think swrast Vulkan driver may be a better option to st= art with. At least that is contained entirely in qemu guest so you won=E2= =80=99t have to wrestle with pass through code paths to the host which are = all experimental. It=E2=80=99s entirely uncharted waters for me as well.

Alex

On Mon 19. Sep 2022 at 14.52, Edgar Mobile <heideggm@hotmail.com>= wrote:
For the time being I use vulkan-tools so I get vulkaninfo. It fails apparen= tly due to no appropriate driver available.
I think adding virtio-experimental to mesa may be necessary, right? Or is t= here another core recipse that will add mesa vulkan drivers?

Regards


From: Alexander Kanavin <alex.kanavin@gm= ail.com>
Sent: Monday, September 19,= 2022 1:31 PM

To: Edgar Mobile <heideggm@hotmail.com>
Cc: yocto@lists.yoctoproject.org <yocto@= lists.yoctoproject.org>
Subject: Re: [yocto] Adding= Vulkan to core-image-weston
=C2=A0
As I said you need to inspect the working directory of th= e recipe to find out what goes where.=C2=A0


Alex

On Mon 19. Sep 2022 at 13.28, Edgar Mobile <heideggm@hotmail.com>= wrote:
I have the impression that the only binary vulkan-samples installs is /usr/= bin/spirv-cross . Are there other packages that install more samples?


From: Alexander Kanavin <alex.kanavin@gm= ail.com>
Sent: Monday, September 19,= 2022 8:25 AM

To: Edgar Mobile <heideggm@hotmail.com>
Cc: yocto@lists.yoctoproject.org <yocto@= lists.yoctoproject.org>
Subject: Re: [yocto] Adding= Vulkan to core-image-weston
=C2=A0
I suppose you need to look at compile and install logs fo= r vulkan-samples. And how the installed items get split into packages. I=E2= =80=99m short, inspect ${WORKDIR} for it.

Alex

On Mon 19. Sep 2022 at 9.36, Edgar Mobile <heideggm@hotmail.com> = wrote:
Greetings,

I see the libvulkan.so.* libs now, but I don't see any sample binaries = that look like Vulkan. Is there a list somewhere for all the files in vulka= n-samples?
Regards


From: Alexander Kanavin <alex.kanavin@gm= ail.com>
Sent: Saturday, September 1= 7, 2022 8:28 AM

To: Edgar Mobile <heideggm@hotmail.com>
Cc: yocto@lists.yoctoproject.org <yocto@= lists.yoctoproject.org>
Subject: Re: [yocto] Adding= Vulkan to core-image-weston
=C2=A0
If the samples don't link with libvulkan directly, it won't ge= t pulled
into the images. How are they loading that library, is it via dlopen()
somewhere? Invisible dlopen() dependencies typically need to be listed
explicitly in RDEPENDS.

As a quick fix, you can add vulkan-loader to the same
CORE_IMAGE_EXTRA_INSTALL list.

Alex

On Fri, 16 Sept 2022 at 19:17, Edgar Mobile <heideggm@hotmail.com> wrote:
>
> Ok, so I switched to Kirkstone and added vulkan-samples to CORE_IMAGE_= EXTRA_INSTALL.
> But no libvulkan.so in /usr/lib.
>
> Am I missing something?
>
> ________________________________
> From: Alexander Kanavin <alex.kanavin@gmail.com>
> Sent: Friday, September 16, 2022 12:14 PM
> To: Edgar Mobile <heideggm@hotmail.com>
> Cc: = yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org>
> Subject: Re: [yocto] Adding Vulkan to core-image-weston
>
> You can start by adding vulkan-samples to the image - the recipe is in=
> core. We do not test vulkan in qemu, because the software vulkan
> rendering is still under active development, and marked as
> experimental in virglrenderer.
>
> It may help if you use qemux86_64 and kvm for it, because software
> graphical paths are too slow without it generally.
>
> Alex
>
> On Fri, 16 Sept 2022 at 13:43, Edgar Mobile <heideggm@hotmail.com> wrote:
> >
> > Greetings,
> >
> > I'd like to test graphics rendering with Vulkan on an Aarch64= Yocto honister (qemu, host is x64). Can you tell me which parameters I nee= d to add to local.conf to get all libs and headers installed (plus maybe so= me useful tools and demo if present)?
> >
> > Regards
> >
> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#58059): https://lists.yoctoproject.org/g/yocto/message/58059
> > Mute This Topic: https://lists.yoctoproject.org/mt/93720286/1686489
> > Group Owner: yocto+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.kanavin@gmail.com]
> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
> >
--000000000000933acb05e9096e0e--