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. Many thanks, Le Minh Son
On Fri, Sep 24, 2021 at 2:01 PM Qu Wenruo <quwenruo.bt...@gmx.com> wrote: > > > On 2021/9/24 14:43, Dave Airlie wrote: > > On Fri, 24 Sept 2021 at 16:35, an0oo0nym0oo0us OoO > > <oooanoonymo...@gmail.com> wrote: > >> > >> Hello everyone, > >> > >> 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? > > > > src/mesa/main/mtypes.h > > > > irc.oftc.net:#dri-devel is also available for answering these sort of > > things faster. > > And you can also setup clangd to jump to definition. > > You will need to use bear to generate the ast though. > > This would be compiler level completion which can understand things like > config time macros. > > Thanks, > Qu > > > > > Dave. > > >