summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglglobals.c
Commit message (Collapse)AuthorAgeFilesLines
* egl: Remove hash table for displays.Chia-I Wu2009-08-181-1/+3
| | | | | | | The hash table was used to map a display to a handle. It is simpler to cast directly. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Some per-driver data should be per-display.Chia-I Wu2009-08-181-1/+0
| | | | | | | Move some fields of _EGLDriver to _EGLDisplay. It also becomes unnecessary to pass _EGLDisplay to drivers when _eglMain is called. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Change the way drivers are loaded.Chia-I Wu2009-08-181-3/+5
| | | | | | | | | Driver is chosen and preloaded when eglGetDisplay is called. Later when eglInitialize is called, the same driver is matched to initialize the display. Also, add new, but unused, hooks to EGLDriver to allow a driver to probe a display or unload itself. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Add _eglAddAtExitCall.Chia-I Wu2009-08-111-0/+40
| | | | | | | Add a convenient wrapper to register atexit calls. Add mutex to _eglGlobal along the way. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Make _eglGlobal initialize statically.Chia-I Wu2009-08-111-26/+6
| | | | | | | Now that display and surface hash tables are moved out, _eglGlobal can be initialized statically. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Make display and surface hash tables local.Chia-I Wu2009-08-111-5/+1
| | | | | | | Move display and surface hash tables to egldisplay.c, and have them initialized on demand. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Initialize current thread management on demand.Chia-I Wu2009-08-111-4/+0
| | | | | | | | | | 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: Support per-thread info.Chia-I Wu2009-07-171-109/+4
| | | | | | | | | This commit introduces a "current" system to manage per-thread info. It uses TLS, if GLX_USE_TLS is defined, or pthread, if PTHREADS is defined. If none of them are defined, it uses a dummy implementation that is just like before. Signed-off-by: Chia-I Wu <[email protected]>
* egl: fix _eglGlobal initialization for WindowsJonathan White2008-08-041-3/+4
|
* egl: default API should be ESBrian Paul2008-06-201-1/+1
|
* egl: clean-up re-org of the client API stateBrian Paul2008-05-301-2/+1
|
* eliminate the context hash tableBrian Paul2008-05-271-2/+0
| | | | | In EGL 1.4 the opaque EGLContext type is a pointer so we can just cast between public EGLContext handles and private _EGLContext pointers.
* some initial EGL 1.2 workBrian Paul2006-01-301-3/+36
|
* minor code movementBrian Paul2005-12-171-14/+0
|
* Some initial per-thread support.Brian Paul2005-12-101-5/+19
| | | | Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.
* report error token in message printed in _eglError()Brian Paul2005-11-241-1/+50
|
* change error messageBrian Paul2005-11-231-1/+2
|
* sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)Brian Paul2005-05-041-0/+14
|
* initial EGL codeBrian Paul2005-04-221-0/+51