Commit graph

61 commits

Author SHA1 Message Date
Kyle Brenneman ebe1709ea2 Add glxmd.h back.
glxmd.h was removed in a previous commit, but it's used from glxproto.h.
2016-01-18 18:56:47 -07:00
Kyle Brenneman 59be159c9b Remove a bunch of unused files.
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-14 09:42:05 -07:00
Kyle Brenneman ec97db7746 Install the public header files.
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.
2016-01-13 16:04:40 -07:00
Kyle Brenneman 0d990b6143 Build fixes, mostly for old systems and compilers.
- 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.
2015-03-27 11:46:27 -06:00
Brian Nguyen b7b6e43b3a Add LKDHASH_TEARDOWN() macro to handle hash table cleanup
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-10-28 15:37:28 -07:00
Brian Nguyen c21e44e609 [util] Add STATIC_ASSERT() and UNUSED macros to utils_misc.h
Also remove a duplicate STATIC_ASSERT() macro from include/compiler.h.
2014-01-23 19:31:35 -08:00
Brian Nguyen 09300ed6b1 Remove redundant GLfixed typedef
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-11-25 15:32:11 -08:00
Brian Nguyen 535b1cb0ab Add mesa headers from git commit fa7829c36b78b8ecc42238cbc0a02d1059320c77 2013-08-26 11:03:42 -07:00
Brian Nguyen 4c68d3cc1b Add lkdhash.h
This is a simple wrapper around uthash which simplifies read/write
locking around hashtables used by libGLX.
2013-08-26 11:03:41 -07:00
Brian Nguyen 492fec0668 Add glvnd_list.h
This is a copy of list.h from xserver commit
74469895e39fa38337f59edd64c4031ab9bb51d8, modified to prevent namespace
clashes with list.h.
2013-08-26 10:29:08 -07:00
Brian Nguyen 3d045c28bc Add mesa GL headers from git commit fa7829c36b78b8ecc42238cbc0a02d1059320c77 2013-08-26 10:29:08 -07:00