ARB_shader_subroutine functions - no static linking?

Yury Voronov <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CAHa87GFpu5-6O6XEw6fDr9N0v3X0vqjd+Jxr7oYqDczft=9czw@mail.gmail.com>
Hello,

I wonder, how to make functions like glGetSubroutineIndex() and
glUniformSubroutinesuiv() statically linkable with libGL.so ?

My working machine is 18.04, and I work with Mesa 19.1.4 witg gcc-7 and llvm-7.

The matter is, when I compile Mesa myself, there are no those
functions exported from libGL.so, though _mesa_GetSubroutineIndex()
and _mesa_UniformSubroutinesuiv() are there. However, when I install
mesa form Ubuntu repositories, those functions are there.

Deep investigation reveals that there is a file
src/mapi/glapi/gen/static_data.py with two lists - 'offsets' and
'functions'; and the second 'functions' list contains all functions to
be statically exported; and those functions are not in this list.

The question is - why? What is the proper way to include them in the
'functions' list? Or shouls I make a patch?

Thanks,
Yury
_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.