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 75919C54EE9 for ; Mon, 19 Sep 2022 14:20:38 +0000 (UTC) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mx.groups.io with SMTP id smtpd.web12.20365.1663597234402212961 for ; Mon, 19 Sep 2022 07:20:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pW90Yq35; spf=pass (domain: gmail.com, ip: 209.85.167.46, mailfrom: alex.kanavin@gmail.com) Received: by mail-lf1-f46.google.com with SMTP id u18so47185818lfo.8 for ; Mon, 19 Sep 2022 07:20:34 -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=sXj+Pyy2BOt27PC+sUfysmU6qaFTRZnSygyrXau4S6c=; b=pW90Yq35G5xRv/Zo0NnDYshH4WvbyicFxium/3jIWiBVd2rPqrT5KeKiZxPHSojKlV 5F6+2w8j9jFoRJgtfVuwf/P+HKGgvK+pqUhjO8HHLLkpAQWqxJw2N/u/BUeHPyVPnp8I 6e8/bWUID1hNOZADgSzToPUQ0PLtfRudH2rF8yNmCjd3PQKkldR3BsLZzh3kgpdCIQwe AFZG/kb1JyeLdx6LmGW3OGQmuOIlCkTqXK45ZXMMmBcUp4p6F+p2s5ydRF53IZcFK3nU nfhC4808TGxx28B/ExY8BC0F7VLAxMd8HsaPjViH0nGJ4/KMJ/yXhtpQwjilnDzmTxDc oyqw== 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=sXj+Pyy2BOt27PC+sUfysmU6qaFTRZnSygyrXau4S6c=; b=IA4/p/uOI2RikAdKuA/RJ6IZwxzhNowzdmYdLqZQ1qiNrqLjgG0t3U6D6TKnu3FcZ2 s+BI6amicYLFOqXxFhGHeSTVYUfoj27a+IBeM7II2OpeoPoLzFzqNMpiwg6lnV+Jvr6B nd38h2QnThkW0pHVqnc6L+5r06T28aBjgnxycQWYF5wgJCbnMIt47Ve/dyVP96WoyWw2 XNDDgH8eq7saD3Ye9unQv3aUpxWUoSmbpGGJI9AD1dvmi3pWFPAK5ANmtbCaJ7j241Lk 33oFYG5005kaHmoudxIjulmDdg0z2Qu1TBpfPeuYUzKLcCrmjyn6iUL3tpQ2UsV17bBU 2fMg== X-Gm-Message-State: ACrzQf1ecucHRPC7Gz2WzEGhj80UZ13XsKai+Eh7eKcDYXNwbJ57IS1z tL5SXywjtACX6siCIb6fdmYo4tsBQDYUa8RMGS0= X-Google-Smtp-Source: AMsMyM5E540DjFDFaZFxBVcS2rWfB6X7a8fzT/gQ5Wz0eomPLiZGV3ncVPiPiwvIvLNUztz0zar5re7KUi9wz0hbsDY= X-Received: by 2002:ac2:5d26:0:b0:494:6d31:4c5b with SMTP id i6-20020ac25d26000000b004946d314c5bmr6520030lfb.358.1663597232568; Mon, 19 Sep 2022 07:20:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Kanavin Date: Mon, 19 Sep 2022 15:20:20 +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="00000000000018bccc05e9086ad6" 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 14:20:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58073 --00000000000018bccc05e9086ad6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrest= le with pass through code paths to the host which are all experimental. It=E2=80=99= s 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- > > > > > --00000000000018bccc05e9086ad6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 20= 22 at 14.52, Edgar Mobile <heide= ggm@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: Ale= xander Kanavin <alex.kanavin@gmail.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.k= anavin@gmail.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-
> >
--00000000000018bccc05e9086ad6--