Re: Noob question
Jens Owen <[email protected]> Sat, 30 Mar 2024 11:02:01 -0600
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <CAJ5TNtbLBJaKBXC69CSe7580u-tLVGyN+-EbqE7KfJxD2A9c6A@mail.gmail.com> |
--000000000000c3d53d0614e3b7f9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 30, 2024, 8:42=E2=80=AFAM Manuel Dun <[email protected]> wrot= e: > What I hopefully want to do is to contribute to the mesa 3d project. > Wonderful! Since mesa has so many moving parts it seems overwhelming, I know the > documentation is there but I want to debug the source code with gdb to > compare and strengthen my knowledge. A good-first-task would be ideal > to start working. What is the correct way to, for example, test that > my patch is working? This page has some starting points for new Mesa developers: https://docs.mesa3d.org/helpwanted.html You mention a loader, can you explain that to me? > Our 3D APIs are often thin veneers over hardware drivers. When you link against the Vulcan library, that library figures out which hardware driver matches your GPU and then loads it and tries to get it if the way as much as possible. By the way, I am not used to using a mailing list, if this email is > not correctly sent please let me know. > Following up on list is generally preferred so others can learn from your questions and the communities answers. We also suggest you look for the appropriate list based on topic. This one is shifting to development, do best to start looking at the various Mesa developer's lists for follow up. Hope this helps! > El s=C3=A1b, 30 mar 2024 a las 8:42, Jens Owen (<[email protected]>) escribi= =C3=B3: > > > > > >> I want to link a vulkan app written by me to the mesa3d source code to > >> be able to step in it with the debugger. The app has the mesa 3d as a > >> subproject. My question is, what is the name of the vulkan dependency > >> so i can add it to my executable in the meson.build? Is it possible to > >> do it this way? What would be the correct way to do this? > >> > >> My current setup is linux mint os with an amd gpu and I was able to > >> compile mesa 3d version 23.3 > > > > > > My familiarity with exactly how Mesa integrates open source drivers lik= e > RADV, Mesa=E2=80=99s Vulkan driver for AMD, is minmal, but there is excel= lent > documentation here: > > https://docs.mesa3d.org/drivers/radv.html > > > > Depending on what you need to do, you might not need to build a > debuggable version of that driver and can instead rely on either logging > from the RADV driver by setting environment variables, or using the > validation layers from LunarG=E2=80=99s Vulkan SDK. > > > > I wouldn=E2=80=99t recommend rebuilding the main Vulkan library, unless= you want > to get into the guts of the loader itself. > > > --000000000000c3d53d0614e3b7f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas= s=3D"gmail_attr">On Sat, Mar 30, 2024, 8:42=E2=80=AFAM Manuel Dun <<a hr= ef=3D"mailto:[email protected]" target=3D"_blank" rel=3D"noreferrer">manu= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What= I hopefully want to do is to contribute to the mesa 3d project.<br></block= quote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Wonderful!<= /div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quot= e"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left= :1px #ccc solid;padding-left:1ex"> Since mesa has so many moving parts it seems overwhelming, I know the<br> documentation is there but I want to debug the source code with gdb to<br> compare and strengthen my knowledge. A good-first-task would be ideal<br> to start working. What is the correct way to, for example, test that<br> my patch is working?</blockquote></div></div><div dir=3D"auto"><br></div><d= iv dir=3D"auto">This page has some starting points for new Mesa developers:= =C2=A0<a href=3D"https://docs.mesa3d.org/helpwanted.html" target=3D"_blank"= rel=3D"noreferrer">https://docs.mesa3d.org/helpwanted.html</a></div><div d= ir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockqu= ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s= olid;padding-left:1ex"> You mention a loader, can you explain that to me?<b= r></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Ou= r 3D APIs are often thin veneers over hardware drivers. When you link again= st the Vulcan library, that library figures out which hardware driver match= es your GPU and then loads it and tries to get it if the way as much as pos= sible.</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gma= il_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord= er-left:1px #ccc solid;padding-left:1ex"> By the way, I am not used to using a mailing list, if this email is<br> not correctly sent please let me know.<br></blockquote></div></div><div dir= =3D"auto"><br></div><div dir=3D"auto">Following up on list is generally pre= ferred so others can learn from your questions and the communities answers.= </div><div dir=3D"auto"><br></div><div dir=3D"auto">We also suggest you loo= k for the appropriate list based on topic. This one is shifting to developm= ent, do best to start looking at the various Mesa developer's lists for= follow up.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Hope this he= lps!</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail= _quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border= -left:1px #ccc solid;padding-left:1ex"><br> El s=C3=A1b, 30 mar 2024 a las 8:42, Jens Owen (<<a href=3D"mailto:jens@= jelo.com" rel=3D"noreferrer noreferrer" target=3D"_blank">[email protected]</a>= >) escribi=C3=B3:<br> ><br> ><br> >> I want to link a vulkan app written by me to the mesa3d source cod= e to<br> >> be able to step in it with the debugger. The app has the mesa 3d a= s a<br> >> subproject. My question is, what is the name of the vulkan depende= ncy<br> >> so i can add it to my executable in the meson.build? Is it possibl= e to<br> >> do it this way? What would be the correct way to do this?<br> >><br> >> My current setup is linux mint os with an amd gpu and I was able t= o<br> >> compile mesa 3d version 23.3<br> ><br> ><br> > My familiarity with exactly how Mesa integrates open source drivers li= ke RADV, Mesa=E2=80=99s Vulkan driver for AMD, is minmal, but there is exce= llent documentation here:<br> > <a href=3D"https://docs.mesa3d.org/drivers/radv.html" rel=3D"noreferre= r noreferrer noreferrer" target=3D"_blank">https://docs.mesa3d.org/drivers/= radv.html</a><br> ><br> > Depending on what you need to do, you might not need to build a debugg= able version of that driver and can instead rely on either logging from the= RADV driver by setting environment variables, or using the validation laye= rs from LunarG=E2=80=99s Vulkan SDK.<br> ><br> > I wouldn=E2=80=99t recommend rebuilding the main Vulkan library, unles= s you want to get into the guts of the loader itself.<br> ><br> </blockquote></div></div></div> --000000000000c3d53d0614e3b7f9--