summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcurrent.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Use AX_PTHREAD's HAVE_PTHREAD preprocessor definitionMatt Turner2012-10-031-3/+3
| | | | | | | | | (cherry picked from commit 814345f54b74eee2597cf84f3c34817488f07522) Conflicts: src/mapi/glapi/gen/gl_x86-64_asm.py src/mapi/glapi/gen/gl_x86_asm.py
* egl: add copyright noticesChia-I Wu2011-07-021-0/+28
| | | | | The list of copyright holders could be incomplete. Please update directly or notify me if your name is missing.
* egl: add missing case in _eglError()Brian Paul2010-12-311-1/+4
|
* egl: Set up the pthread key even TLS is used.Chia-I Wu2010-11-031-27/+13
| | | | | We have to rely on the pthread key destructor to free the current thread info when a thread exits.
* egl: Fix '_eglAddAtExitCall' implicit declaration warning.Vinson Lee2010-07-311-0/+1
|
* egl: Add checks for EGL_MESA_screen_surface.Chia-I Wu2010-07-311-1/+2
| | | | | This allows Mesa EGL to be compiled with eglext.h that does not define EGL_MESA_screen_surface.
* egl: Always record error code.Chia-I Wu2010-02-171-4/+5
| | | | | The error code denotes the success or failure of the most recent function call. A call to _eglError should always update the error code.
* egl: Remove unnecessary headers.Vinson Lee2010-01-311-1/+0
|
* egl: Clean up header inclusions.Chia-I Wu2010-01-301-2/+2
| | | | Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
* egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.Chia-I Wu2010-01-261-37/+0
| | | | | They have little use in drivers since drivers need to work for multiple current contexts.
* egl: Add _eglGetAPIContext.Chia-I Wu2010-01-261-1/+12
| | | | It will return the currently bound context of the given API.
* egl: Make surfaces and contexts resources.Chia-I Wu2010-01-241-1/+1
| | | | | Turn _EGLSurface and _EGLContext into _EGLResource so that they can be managed uniformly.
* egl: Fix GLX_USE_TLS build.Chia-I Wu2009-10-151-1/+1
| | | | | | Remove an extraneous semicolon. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Allow binding to any client API.Chia-I Wu2009-10-131-1/+1
| | | | | | | As a result, EGL_NONE is no longer a valid client API. And it is possible that no config supports the current bound API. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Use _eglAddAtExitCall to free thread infos and displays.Chia-I Wu2009-08-111-2/+3
| | | | | | | Thread infos and displays are usually not freed by applications. This commit add atexit calls to free them. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Initialize current thread management on demand.Chia-I Wu2009-08-111-18/+19
| | | | | | | | | | Current thread management was initialized in _eglInitGlobals, which is called only in eglGetDisplay. Since EGL does not require eglGetDisplay to be called first, the initialization is better to be done on demand. _eglFiniCurrent is removed, as it is not called at all. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Destroy eglThreadInfo on thread exit.Chia-I Wu2009-08-111-16/+73
| | | | | | | | | | This is done through pthread TSD destructor. It destroys all thread infos except for main thread's. The thread info of the main thread is destroyed by _eglFiniCurrent. TLS case is not supported yet. Signed-off-by: Chia-I Wu <[email protected]>
* egl: commit missing eglcurrent.[ch] filesBrian Paul2009-07-171-0/+283
Not sure how these got left out from earlier commit.