Commit graph

4 commits

Author SHA1 Message Date
Kyle Brenneman a7bb6f4d19 Remove extra paragraph from license text.
Remove the "If only executable code is distributed..." paragraph from
the license text. Everything now uses a normal MIT license.

The only code from Khronos that's included in libglvnd is the EGL/GL
header and XML files, which do not contain that paragraph.

Fixes https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/221
2021-09-30 09:21:34 -06:00
Kyle Brenneman 17f5566087 GLX: Some additional cleanup for the GLX dispatch table.
Added a license+copyright comment to winsys_dispatch.[ch].

Renamed __GLVNDwinsysDispatchIndexHash to __GLVNDwinsysDispatchIndexEntry,
since it's not a hashtable anymore.

In __glXLookupVendorByName, only call __glvndWinsysDispatchGetCount once
instead of on every loop iteration.

Removed the locks for the GLX dispatch index list and the generated GLX
dispatch stubs. Instead, the vendor hashtable's lock is used for all three.

There's enough overlap between when the three locks are taken that using
separte locks has very little benefit and increases the risk of deadlocks.
2016-05-17 10:32:41 -06:00
Kyle Brenneman edd36498c5 Add functions to keep track of a vendor library's GLX functions.
Added functions to create and manage a per-vendor dispatch table for
window-system functions.

These will replace the __GLXdispatchFuncHash hashtable in GLX.
2016-05-17 10:32:41 -06:00
Kyle Brenneman 4d20b1826b Add helper functions for keeping track of the window-system dispatch stubs.
Added a new file, winsys_dispatch.c, with functions for keeping track of the
indices, names, and dispatch stubs for window-system functions.

This will replace the __GLXdispatchIndexHash hashtable in GLX.

It's independant of the window system, so it should be usable for EGL as well.
2016-05-17 10:32:34 -06:00