Re: Virtio-GPU Venus how to install in chrome os crostini?

Reggie Wong <[email protected]> Thu, 3 Feb 2022 06:48:38 +0000 (UTC)
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <[email protected]>
------=_Part_4277381_1902517551.1643870918959
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

 Is "ninja -C build install" ok?

Is "export VK_ICD_FILENAMES=3D/usr/share/vulkan/icd.d/virtio_icd.i686.json:=
/usr/share/vulkan/icd.d/virtio_icd.x86_64.json"

ok?

I got this:

"vulkaninfo

ERROR: [Loader Message] Code 0 : loader_get_json: Failed to open JSON file =
/usr/share/vulkan/icd.d/virtio_icd.i686.json
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to Cre=
ateInstance in ICD 0. Skipping ICD.
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver =
or attempting to use a GPU that does not support Vulkan.
ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo=
/vulkaninfo.h:666:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER"

and this:

"vulkaninfo | grep driverName
ERROR: [Loader Message] Code 0 : loader_get_json: Failed to open JSON file =
/usr/share/vulkan/icd.d/virtio_icd.i686.json
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to Cre=
ateInstance in ICD 0. Skipping ICD.
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver =
or attempting to use a GPU that does not support Vulkan.
ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo=
/vulkaninfo.h:666:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER"


Is it because radeon r5 graphics are not compatible or something else?


     On Wednesday, February 2, 2022, 02:07:32 PM PST, Chia-I Wu <olvaffe@gm=
ail.com> wrote: =20
=20
 On Wed, Feb 2, 2022 at 2:02 PM Reggie Wong <[email protected]> wr=
ote:
>
> Did you happen to know what exact path i need to set for crostini?
It's just debian with a standard vulkan loader

=C2=A0 https://github.com/KhronosGroup/Vulkan-Loader/blob/master/docs/Loade=
rDriverInterface.md#example-linux-driver-search-path

Since you said you've built the latest mesa driver, "ninja install"
should be enough unless I misunderstood.

>
>
> On Tuesday, February 1, 2022, 12:57:42 PM PST, Reggie Wong <zerosportsleg=
[email protected]> wrote:
>
>
> "You can set VK_ICD_FILENAMES=3D<path-to-virtio_icd.x86_64.json>. That
> instructs libvulkan.so to use the ICD you build."
>
>
> Ok, do you know the default path for crostini? I think that part is where=
 i didn't know what path it was.
>
>
> On Tuesday, February 1, 2022, 12:10:26 PM PST, Chia-I Wu <[email protected]=
om> wrote:
>
>
> On Tue, Feb 1, 2022 at 12:04 PM Reggie Wong <[email protected]> =
wrote:
> >
> > Yes, i would like to build the latest mesa driver in debian 11 containe=
r in crostini.
> >
> > I built and installed it from the mesa site and from this as well.
> >
> > https://www.collabora.com/news-and-blog/blog/2021/11/26/venus-on-qemu-e=
nabling-new-virtual-vulkan-driver
> >
> > Do you know how to enable it to be recognized by the debian 11 containe=
r?
> You can set VK_ICD_FILENAMES=3D<path-to-virtio_icd.x86_64.json>.=C2=A0 Th=
at
> instructs libvulkan.so to use the ICD you build.
>
>
>
> >
> >
> > On Tuesday, February 1, 2022, 11:58:07 AM PST, Chia-I Wu <olvaffe@gmail=
.com> wrote:
> >
> >
> > On Tue, Feb 1, 2022 at 11:39 AM Reggie Wong <[email protected]=
> wrote:
> > >
> > > Hi, i do know about enabling it by installing arch linux/container.
> > >
> > > I wanted to see if it is possible to install the driver in the defaul=
t debian container though, I haven't found any info on that yet.
> > >
> > > Just wanted to see how it works out.
> > >
> > > Is it possible to get it to work with default debian container? Thank=
s for any good help.
> > Different containers only differ in Mesa drivers.=C2=A0 It sounds like =
you
> > want to build and use the latest Mesa driver in the debian container.
> >
> >
> > >
> > > I don't know if this matters, but I have a hp chromebook 11a g8 ee wi=
th amd a6 processor
 =20
------=_Part_4277381_1902517551.1643870918959
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>                Is &quot;ninja -C build install&quot; ok?<br><br>Is &q=
uot;export VK_ICD_FILENAMES=3D/usr/share/vulkan/icd.d/virtio_icd.i686.json:=
/usr/share/vulkan/icd.d/virtio_icd.x86_64.json&quot;<br><br>ok?<br><br>I go=
t this:<br><br>&quot;vulkaninfo<br><br>ERROR: [Loader Message] Code 0 : loa=
der_get_json: Failed to open JSON file /usr/share/vulkan/icd.d/virtio_icd.i=
686.json<br>WARNING: [Loader Message] Code 0 : terminator_CreateInstance: F=
ailed to CreateInstance in ICD 0.  Skipping ICD.<br>Cannot create Vulkan in=
stance.<br>This problem is often caused by a faulty installation of the Vul=
kan driver or attempting to use a GPU that does not support Vulkan.<br>ERRO=
R at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162.0+dfsg1/vulkaninfo/vul=
kaninfo.h:666:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER&quot;<=
br><br>and this:<br><br>&quot;vulkaninfo | grep driverName<br>ERROR: [Loade=
r Message] Code 0 : loader_get_json: Failed to open JSON file /usr/share/vu=
lkan/icd.d/virtio_icd.i686.json<br>WARNING: [Loader Message] Code 0 : termi=
nator_CreateInstance: Failed to CreateInstance in ICD 0.  Skipping ICD.<br>=
Cannot create Vulkan instance.<br>This problem is often caused by a faulty =
installation of the Vulkan driver or attempting to use a GPU that does not =
support Vulkan.<br>ERROR at /build/vulkan-tools-oFB8Ns/vulkan-tools-1.2.162=
.0+dfsg1/vulkaninfo/vulkaninfo.h:666:vkCreateInstance failed with ERROR_INC=
OMPATIBLE_DRIVER&quot;<br><br><br>Is it because radeon r5 graphics are not =
compatible or something else?<br><br><br>            </div>            <div=
 class=3D"yahoo_quoted" style=3D"margin:10px 0px 0px 0.8ex;border-left:1px =
solid #ccc;padding-left:1ex;">                        <div style=3D"font-fa=
mily:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#2=
6282a;">                                <div>                    On Wednesd=
ay, February 2, 2022, 02:07:32 PM PST, Chia-I Wu &lt;[email protected]&gt; =
wrote:                </div>                <div><br></div>                =
<div><br></div>                <div><div dir=3D"ltr">On Wed, Feb 2, 2022 at=
 2:02 PM Reggie Wong &lt;<a shape=3D"rect" ymailto=3D"mailto:zerosportslega=
[email protected]" href=3D"mailto:[email protected]">zerosportslegacy@y=
ahoo.com</a>&gt; wrote:<br clear=3D"none">&gt;<br clear=3D"none">&gt; Did y=
ou happen to know what exact path i need to set for crostini?<br clear=3D"n=
one">It's just debian with a standard vulkan loader<br clear=3D"none"><br c=
lear=3D"none">&nbsp; <a shape=3D"rect" href=3D"https://github.com/KhronosGr=
oup/Vulkan-Loader/blob/master/docs/LoaderDriverInterface.md#example-linux-d=
river-search-path" target=3D"_blank">https://github.com/KhronosGroup/Vulkan=
-Loader/blob/master/docs/LoaderDriverInterface.md#example-linux-driver-sear=
ch-path</a><br clear=3D"none"><br clear=3D"none">Since you said you've buil=
t the latest mesa driver, "ninja install"<br clear=3D"none">should be enoug=
h unless I misunderstood.<div class=3D"yqt6317141587" id=3D"yqtfd06530"><br=
 clear=3D"none"><br clear=3D"none">&gt;<br clear=3D"none">&gt;<br clear=3D"=
none">&gt; On Tuesday, February 1, 2022, 12:57:42 PM PST, Reggie Wong &lt;<=
a shape=3D"rect" ymailto=3D"mailto:[email protected]" href=3D"mail=
to:[email protected]">[email protected]</a>&gt; wrote:<br=
 clear=3D"none">&gt;<br clear=3D"none">&gt;<br clear=3D"none">&gt; "You can=
 set VK_ICD_FILENAMES=3D&lt;path-to-virtio_icd.x86_64.json&gt;. That<br cle=
ar=3D"none">&gt; instructs libvulkan.so to use the ICD you build."<br clear=
=3D"none">&gt;<br clear=3D"none">&gt;<br clear=3D"none">&gt; Ok, do you kno=
w the default path for crostini? I think that part is where i didn't know w=
hat path it was.<br clear=3D"none">&gt;<br clear=3D"none">&gt;<br clear=3D"=
none">&gt; On Tuesday, February 1, 2022, 12:10:26 PM PST, Chia-I Wu &lt;<a =
shape=3D"rect" ymailto=3D"mailto:[email protected]" href=3D"mailto:olvaffe@=
gmail.com">[email protected]</a>&gt; wrote:<br clear=3D"none">&gt;<br clear=
=3D"none">&gt;<br clear=3D"none">&gt; On Tue, Feb 1, 2022 at 12:04 PM Reggi=
e Wong &lt;<a shape=3D"rect" ymailto=3D"mailto:[email protected]" =
href=3D"mailto:[email protected]">[email protected]</a>&g=
t; wrote:<br clear=3D"none">&gt; &gt;<br clear=3D"none">&gt; &gt; Yes, i wo=
uld like to build the latest mesa driver in debian 11 container in crostini=
.<br clear=3D"none">&gt; &gt;<br clear=3D"none">&gt; &gt; I built and insta=
lled it from the mesa site and from this as well.<br clear=3D"none">&gt; &g=
t;<br clear=3D"none">&gt; &gt; <a shape=3D"rect" href=3D"https://www.collab=
ora.com/news-and-blog/blog/2021/11/26/venus-on-qemu-enabling-new-virtual-vu=
lkan-driver" target=3D"_blank">https://www.collabora.com/news-and-blog/blog=
/2021/11/26/venus-on-qemu-enabling-new-virtual-vulkan-driver</a><br clear=
=3D"none">&gt; &gt;<br clear=3D"none">&gt; &gt; Do you know how to enable i=
t to be recognized by the debian 11 container?<br clear=3D"none">&gt; You c=
an set VK_ICD_FILENAMES=3D&lt;path-to-virtio_icd.x86_64.json&gt;.&nbsp; Tha=
t<br clear=3D"none">&gt; instructs libvulkan.so to use the ICD you build.<b=
r clear=3D"none">&gt;<br clear=3D"none">&gt;<br clear=3D"none">&gt;<br clea=
r=3D"none">&gt; &gt;<br clear=3D"none">&gt; &gt;<br clear=3D"none">&gt; &gt=
; On Tuesday, February 1, 2022, 11:58:07 AM PST, Chia-I Wu &lt;<a shape=3D"=
rect" ymailto=3D"mailto:[email protected]" href=3D"mailto:[email protected]=
">[email protected]</a>&gt; wrote:<br clear=3D"none">&gt; &gt;<br clear=3D"=
none">&gt; &gt;<br clear=3D"none">&gt; &gt; On Tue, Feb 1, 2022 at 11:39 AM=
 Reggie Wong &lt;<a shape=3D"rect" ymailto=3D"mailto:zerosportslegacy@yahoo=
.com" href=3D"mailto:[email protected]">[email protected]=
</a>&gt; wrote:<br clear=3D"none">&gt; &gt; &gt;<br clear=3D"none">&gt; &gt=
; &gt; Hi, i do know about enabling it by installing arch linux/container.<=
br clear=3D"none">&gt; &gt; &gt;<br clear=3D"none">&gt; &gt; &gt; I wanted =
to see if it is possible to install the driver in the default debian contai=
ner though, I haven't found any info on that yet.<br clear=3D"none">&gt; &g=
t; &gt;<br clear=3D"none">&gt; &gt; &gt; Just wanted to see how it works ou=
t.<br clear=3D"none">&gt; &gt; &gt;<br clear=3D"none">&gt; &gt; &gt; Is it =
possible to get it to work with default debian container? Thanks for any go=
od help.<br clear=3D"none">&gt; &gt; Different containers only differ in Me=
sa drivers.&nbsp; It sounds like you<br clear=3D"none">&gt; &gt; want to bu=
ild and use the latest Mesa driver in the debian container.<br clear=3D"non=
e">&gt; &gt;<br clear=3D"none">&gt; &gt;<br clear=3D"none">&gt; &gt; &gt;<b=
r clear=3D"none">&gt; &gt; &gt; I don't know if this matters, but I have a =
hp chromebook 11a g8 ee with amd a6 processor<br clear=3D"none"></div></div=
></div>            </div>                </div>
------=_Part_4277381_1902517551.1643870918959--