<div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 30, 2024, 8:42 AM Manuel Dun <<a href="mailto:manueldun@gmail.com" target="_blank" rel="noreferrer">manueldun@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="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></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Wonderful!</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="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="auto"><br></div><div dir="auto">This page has some starting points for new Mesa developers: <a href="https://docs.mesa3d.org/helpwanted.html" target="_blank" rel="noreferrer">https://docs.mesa3d.org/helpwanted.html</a></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> You mention a loader, can you explain that to me?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-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="auto"><br></div><div dir="auto">Following up on list is generally preferred so others can learn from your questions and the communities answers.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Hope this helps!</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
El sáb, 30 mar 2024 a las 8:42, Jens Owen (<<a href="mailto:jens@jelo.com" rel="noreferrer noreferrer" target="_blank">jens@jelo.com</a>>) escribió:<br>
><br>
><br>
>> I want to link a vulkan app written by me to the mesa3d source code to<br>
>> be able to step in it with the debugger. The app has the mesa 3d as a<br>
>> subproject. My question is, what is the name of the vulkan dependency<br>
>> so i can add it to my executable in the meson.build? Is it possible 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 to<br>
>> compile mesa 3d version 23.3<br>
><br>
><br>
> My familiarity with exactly how Mesa integrates open source drivers like RADV, Mesa’s Vulkan driver for AMD, is minmal, but there is excellent documentation here:<br>
> <a href="https://docs.mesa3d.org/drivers/radv.html" rel="noreferrer noreferrer noreferrer" target="_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 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’s Vulkan SDK.<br>
><br>
> I wouldn’t recommend rebuilding the main Vulkan library, unless you want to get into the guts of the loader itself.<br>
><br>
</blockquote></div></div></div>