summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.c
Commit message (Collapse)AuthorAgeFilesLines
* egl: Clean up header inclusions.Chia-I Wu2010-01-301-0/+1
| | | | Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
* egl: Remove _eglOpenDriver and _eglCloseDriver.Chia-I Wu2010-01-261-22/+1
| | | | | _eglCloseDriver is no-op and _eglOpenDriver does nothing but call _eglMatchDriver. Export _eglMatchDriver directly.
* egl: Add support for EGL_KHR_image.Chia-I Wu2010-01-251-0/+6
| | | | Individual drivers still need to implement the API hooks.
* egl: Add and use make_library_path.Chia-I Wu2010-01-241-27/+49
| | | | | | Add a platform specific function to turn a library name to a library path. It is used to convert EGL_DRIVER or the default driver to a library path that can be loaded.
* egl: Remove _eglFindAPIs.Chia-I Wu2010-01-241-52/+0
| | | | | This function is not used and should have been removed by last commit. My mistake.
* egl: Remove egl_softpipe.Chia-I Wu2010-01-221-1/+1
| | | | | | With the addition egl_x11_swrast, egl_softpipe is sort of deprecated. The new driver serves the same purpose as egl_softpipe does. It is based on egl_g3d and provides more features.
* egl: Add a simple cache for driver probe.Chia-I Wu2010-01-201-0/+48
| | | | | | In current design, multiple drivers will probe the same display and the best driver is determined. The cache can be used by the drivers to store and share the probed data.
* egl: Improve driver matching.Chia-I Wu2010-01-201-16/+19
| | | | | Make drv->Probe return a score so that the matching can be done by finding the driver with the highest score.
* egl: Rename _EGL_PLATFORM_X to _EGL_PLATFORM_POSIX.Chia-I Wu2010-01-201-8/+8
| | | | | The macro is used to determine if dlfcn.h or dirent.h is available. POSIX is a better name than X in such case.
* egl: Remove unused driver and display functions.Chia-I Wu2010-01-201-114/+0
| | | | Remove _eglPreloadDriver, _eglLookupDriver, and _eglSplitDisplayString.
* egl: Add _eglPreloadDrivers.Chia-I Wu2010-01-201-6/+205
| | | | | | It can be used to load the user driver specified by EGL_DRIVER, or a set of drivers specified by EGL_DISPLAY, or the default driver, and in that order.
* egl: Rework the synchronization primitives.Chia-I Wu2009-10-151-1/+1
| | | | | | | This adds error checking to the synchronization primitives. And eglWaitGL is now implemented by eglWaitClient. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Add support for driver built-in.Chia-I Wu2009-10-131-64/+93
| | | | | | | | This allows an EGL driver to be compiled together with libEGL.so. It eliminates the need to specify a driver, or support module loading on new platforms. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Make _eglChooseDriver return the filename of the driver.Chia-I Wu2009-08-211-13/+33
| | | | | | | | The real difference is that the driver suffix is now appended. This also fixes an annoying bug that EGL_DRIVER could not specify the path to a driver because a suffix was always appended. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Remove dependency on libX11.Chia-I Wu2009-08-211-84/+7
| | | | | | | | | | | | libX11 is used to determine the screen number, which is in turned used to determine the DRI driver. However, the sysfs interface for determining the DRI driver is gone, and no working driver depends on this mechanism. Display string parsing is moved to a new function, _eglSplitDisplayString. Signed-off-by: Chia-I Wu <[email protected]>
* egl: _eglCloseDriver should be no-op.Chia-I Wu2009-08-181-2/+0
| | | | | | | Move drv->API.Terminate call to eglTerminate. Remove _eglReleaseDisplayResource as drivers are doing it. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Some per-driver data should be per-display.Chia-I Wu2009-08-181-6/+3
| | | | | | | 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-88/+181
| | | | | | | | | 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: Overhaul driver API.Chia-I Wu2009-08-181-1/+1
| | | | | | | | | | | | The motivation is so that drivers do not need to look up and check for bad display, context, and etc. It also becomes unnecessary for drivers to call the link functions. This commit makes eglapi.[ch] do the lookup and check. As a result, the driver API is overhauled, and almost all sources and drivers need update. The updates are mainly find and replace with human brains. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Destroy display's resources upon termination.Chia-I Wu2009-07-171-3/+1
| | | | | | eglTerminate should destroy the contexts and surfaces of the display. Signed-off-by: Chia-I Wu <[email protected]>
* egl: fixes for WindowsJonathan White2008-08-061-1/+4
|
* egl: changes for WindowsJonathan White2008-08-051-26/+39
|
* egl: clean up prototype code, new _eglFindAPIs() function.Brian Paul2008-06-191-27/+91
|
* egl: use RTLD_LAZYBrian Paul2008-06-181-1/+1
|
* egl: some prototype Windows code (eq for dlopen,dlsym)Brian Paul2008-06-111-4/+41
|
* egl: make _eglChooseDRMDriver() non-staticBrian Paul2008-06-061-2/+2
|
* egl: new eglGetProcAddress() codeBrian Paul2008-05-301-2/+21
| | | | | The idea is to pass the call down to the device driver where an API-specific query can be made. Untested.
* egl: clean-up re-org of the client API stateBrian Paul2008-05-301-2/+5
|
* egl: check for EGL_DRIVER env var to override normal driver selection processBrian Paul2008-05-301-2/+9
|
* egl: remove unused Display fieldBrian Paul2008-05-281-1/+0
|
* egl: move a few small functions into new eglmisc.[ch] filesBrian Paul2008-05-281-72/+2
|
* egl: make sure EGL_VERSION_STRING query returns same version as eglInitialize()Brian Paul2008-05-281-1/+1
|
* egl: include egldefines.hBrian Paul2008-05-281-3/+5
|
* egl: bring card->driver lookup code into egldriver.cBrian Paul2008-05-281-7/+53
|
* egl: added args string to _eglMain()Brian Paul2008-05-281-10/+25
|
* egl: Temporarily disable eglx.[c|h] buildingJakob Bornecrantz2008-05-281-1/+7
|
* minor overhaul/re-org of driver selection/loading codeBrian Paul2008-05-271-26/+35
|
* some initial EGL 1.2 workBrian Paul2006-01-301-2/+19
|
* Some initial per-thread support.Brian Paul2005-12-101-1/+1
| | | | Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.
* Put extension flags, string into separate struct.Brian Paul2005-11-291-9/+9
|
* Move all the EGL API function pointers into a new _egl_api struct.Brian Paul2005-11-241-39/+39
|
* use _eglLog()Brian Paul2005-11-231-6/+10
|
* More EGL prep. No impact on anything outside of EGLJon Smirl2005-08-051-28/+24
|
* remove eglQueryDisplayMESA()Brian Paul2005-05-171-1/+0
|
* separate ext strings with a spaceBrian Paul2005-05-161-2/+2
|
* added boolean extension flags to _EGLDriverBrian Paul2005-05-161-1/+20
|
* First attempt at getting egl support up on dumb framebuffer.Jon Smirl2005-05-131-2/+4
| | | | Seems to be mostly working. Not all of egl API is implemented.
* sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)Brian Paul2005-05-041-0/+9
|
* initial EGL codeBrian Paul2005-04-221-0/+226