summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2016-02-29Add a threadAttach callback for entrypoint patching.Kyle Brenneman2-1/+22
The threadAttach callback is used so that a vendor library can go through any thread initialization it needs to in order to deal with any later OpenGL calls. This allows a vendor library to work around broken applications that try to call OpenGL functions without a current context.
2016-02-25Remove the GLVNDPthreadFuncs parameter from the lkdhash.h macros.Kyle Brenneman1-16/+25
The macros in lkdhash.h now just use the __glvndPthreadFuncs table, instead of taking a GLVNDPthreadFuncs parameter. Reviewed-by: Andy Ritger <aritger@nvidia.com>
2016-01-18Add glxmd.h back.Kyle Brenneman1-0/+54
glxmd.h was removed in a previous commit, but it's used from glxproto.h.
2016-01-14Remove a bunch of unused files.Kyle Brenneman9-5051/+0
Removed several header files that were copied from Mesa but aren't used in libglvnd. Removed everything under src/arch, also copied from Mesa but unused.
2016-01-13Install the public header files.Kyle Brenneman3-0/+488
Two header files (libglxabi.h and GLdispatchABI.h) are public -- intended to be used by vendor libraries, while the other headers are all internal to libglvnd. Move the public header files to a new directory, include/glvnd. Add a makefile so that the public headers are installed by make install.
2015-03-27Build fixes, mostly for old systems and compilers.Kyle Brenneman1-0/+54
- Add a config check for ((constructor)) and ((destructor)) funciton attributes. - Add missing GL/glxmd.h header. - For sufficiently old gcc versions, revert to inline asm implementations of Atomic{Increment,Swap,CompareAndSwap}() - Add a local implementation of asprintf. - entry_x86_tsd.h: Add missing cast to (char *) in entry_get_public - glvnd_pthread.[ch]: Only use pthread_rwlock_t if it's available, and fall back to pthread_mutex_t otherwise. - trace.c: Add missing _GNU_SOURCE define - uthash.h: Fix a -Wcast-qual warning - x11glvndclient.c: Fix a -Wcast-qual warning by using a writable array for storing the XGLV_EXTENSION_NAME Based on a patch by Brian Nguyen.
2014-10-28Add LKDHASH_TEARDOWN() macro to handle hash table cleanupBrian Nguyen1-0/+43
This macro frees all entries in a locked hash table, and either re-initializes the table's lock for fork recovery, or destroys the lock, in which case the hash table is fully torn down and must be re-initialized before it can be used. Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
2014-01-23[util] Add STATIC_ASSERT() and UNUSED macros to utils_misc.hBrian Nguyen1-12/+0
Also remove a duplicate STATIC_ASSERT() macro from include/compiler.h.
2013-11-25Remove redundant GLfixed typedefBrian Nguyen1-2/+1
This typedef is already defined in GL/glext.h and GLES/gl.h; including this redundant typedef may lead to build errors. Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
2013-08-26Add mesa headers from git commit fa7829c36b78b8ecc42238cbc0a02d1059320c77Brian Nguyen4-0/+787
2013-08-26Add lkdhash.hBrian Nguyen1-0/+43
This is a simple wrapper around uthash which simplifies read/write locking around hashtables used by libGLX.
2013-08-26Add glvnd_list.hBrian Nguyen1-0/+482
This is a copy of list.h from xserver commit 74469895e39fa38337f59edd64c4031ab9bb51d8, modified to prevent namespace clashes with list.h.
2013-08-26Add mesa GL headers from git commit fa7829c36b78b8ecc42238cbc0a02d1059320c77Brian Nguyen16-0/+24336