<div dir="ltr">Wow, I saw it in src/mesa/main/mtypes.h. I only read the declaration in the beginning of the file, so I didn't see the struct definition. <div>Many thanks,</div><div>Le Minh Son</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 24, 2021 at 2:01 PM Qu Wenruo <<a href="mailto:quwenruo.btrfs@gmx.com">quwenruo.btrfs@gmx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 2021/9/24 14:43, Dave Airlie wrote:<br>
> On Fri, 24 Sept 2021 at 16:35, an0oo0nym0oo0us OoO<br>
> <<a href="mailto:oooanoonymoous@gmail.com" target="_blank">oooanoonymoous@gmail.com</a>> wrote:<br>
>><br>
>> Hello everyone,<br>
>><br>
>> I'm new to Mesa3D, and have read its source code for a last few days. I cannot find where "struct gl_context" definition. Can you help me find it out?<br>
><br>
> src/mesa/main/mtypes.h<br>
><br>
> irc.oftc.net:#dri-devel is also available for answering these sort of<br>
> things faster.<br>
<br>
And you can also setup clangd to jump to definition.<br>
<br>
You will need to use bear to generate the ast though.<br>
<br>
This would be compiler level completion which can understand things like<br>
config time macros.<br>
<br>
Thanks,<br>
Qu<br>
<br>
><br>
> Dave.<br>
><br>
</blockquote></div>