summaryrefslogtreecommitdiffstats
path: root/src/egl
Commit message (Collapse)AuthorAgeFilesLines
* egl: Remove unnecessary headers.Vinson Lee2010-01-313-3/+0
|
* egl: Clean up surface attributes.Chia-I Wu2010-01-313-57/+127
| | | | | | Add missing attributes and use correct types in _EGLSurface. Remove ifdef tests that serve no purpose. Update _eglQuerySurface and _eglSurfaceAttrib for missing queries and checks.
* egl: Add support for more EGLImage extensions to EGL core.Chia-I Wu2010-01-314-11/+60
| | | | | | Add support EGL_KHR_vg_parent_image and EGL_KHR_gl_*. This is as simple as adding some flags that can be enabled. Individual drivers need to implement the extensions before enbaling the flags.
* egl: Surface type validaction should depend on extensions supported.Chia-I Wu2010-01-311-1/+2
| | | | | EGL_SCREEN_BIT_MESA is a valid bit only when EGL_MESA_screen_surface is supported.
* egl: Initialize display configs with the display.Chia-I Wu2010-01-314-5/+7
| | | | This changes _eglInitConfig to take the display as its argument.
* egl: Initialize display resources with their display.Chia-I Wu2010-01-318-13/+16
| | | | | | | Change _eglInitSurface, _eglInitContext, and _eglInitImage to take an _EGLDisplay instead of an _EGLDriver. This is a more natural form, and plus, the display encodes information such as the extensions supported that might be required for attribute list parsing.
* egl: Refactor _eglInitImage.Chia-I Wu2010-01-311-10/+40
| | | | Refactor attribute list parsing code to _eglParseImageAttribList.
* egl: Refactor _eglInitContext.Chia-I Wu2010-01-311-19/+95
| | | | | Refactor attribute list parsing code to _eglParseContextAttribList. Add a check to make sure the config supports the client API.
* egl: Refactor _eglInitSurface.Chia-I Wu2010-01-311-141/+146
| | | | Refactor attribute list parsing code to _eglParseSurfaceAttribList.
* egl: Remove code blocks that are commented out.Chia-I Wu2010-01-314-113/+4
| | | | | | They are either unit tests or to demonstrate how functions are supposed to be used. The unit test is outdated and it should be better to take a look at any of the working drivers to see how a function is used.
* egl: Remove my_strdup.Chia-I Wu2010-01-301-17/+2
| | | | There is already _eglstrdup for the main library's use.
* egl: Remove unused VisibleRefCount.Chia-I Wu2010-01-301-3/+0
|
* egl: Rename Binding to CurrentContext in _EGLSurface.Chia-I Wu2010-01-303-16/+16
| | | | | A context can be bound to a surface just like it can be bound to a thread. CurrentContext is a more consistent name.
* egl: Clean up header inclusions.Chia-I Wu2010-01-3024-21/+28
| | | | Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
* egl: Remove unnecessary headers.Vinson Lee2010-01-285-5/+0
|
* egl: Migrate drivers to use _eglBindContext.Chia-I Wu2010-01-284-35/+31
| | | | | _eglMakeCurrent is a big hammer that is not easy to use. Migrate drivers to use _eglBindContext and un-export _eglMakeCurrent.
* egl: Correctly unbind contexts in eglReleaseThread.Chia-I Wu2010-01-281-0/+4
| | | | | MakeCurrent unbinds the current context of the current API. Modify the current API to make sure all contexts are correctly unbound.
* egl: eglMakeCurrent should accept an uninitialized display.Chia-I Wu2010-01-285-65/+94
| | | | | | When no context or surface are given, the display is allowed to be uninitialized. Most drivers cannot handle an uninitialized display. But they are updated to at least throw a fatal message.
* egl: Add _eglBindContext.Chia-I Wu2010-01-282-53/+74
| | | | | | It works similar to _eglMakeCurrent, except that the old context and surfaces are returned instead of destroyed. _eglMakeCurrent is now calling the new _eglBindContext.
* egl: Use a boolean to indicate whether a display is initialized.Chia-I Wu2010-01-282-16/+20
| | | | | | The driver pointer of the display was used to decide whether a display is initialized. Use a boolean for that purpose allows accessing the driver of an uninitialized display.
* egl: Remove _eglOpenDriver and _eglCloseDriver.Chia-I Wu2010-01-263-32/+4
| | | | | _eglCloseDriver is no-op and _eglOpenDriver does nothing but call _eglMatchDriver. Export _eglMatchDriver directly.
* egl: Fix a segfault when a display is initialized again.Chia-I Wu2010-01-261-0/+1
| | | | Reset dpy->MaxConfigs so that dpy->Configs is re-allocated.
* egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.Chia-I Wu2010-01-264-49/+3
| | | | | They have little use in drivers since drivers need to work for multiple current contexts.
* egl: Fix leaks in eglReleaseThread.Chia-I Wu2010-01-261-6/+13
| | | | There may be multiple bound contexts that should be unbound.
* egl: Refactor _eglMakeCurrent.Chia-I Wu2010-01-261-78/+158
| | | | | Refactor _eglMakeCurrent into _eglCheckMakeCurrent, _eglBindContextToSurface, and _eglBindContextToThread.
* egl: Add _eglGetAPIContext.Chia-I Wu2010-01-262-1/+16
| | | | It will return the currently bound context of the given API.
* egl: Use a boolean to indicate whether a resource is linked.Chia-I Wu2010-01-262-2/+10
| | | | | | An unlinked resource may still be a current resource such as current surfaces. There might still be a need to know which display the unlinked resource belongs to.
* egl: Mark _eglCheckResource as PUBLIC.Chia-I Wu2010-01-261-1/+1
| | | | | To support extensions such as GL_OES_EGL_image, the drivers need a way to check if a given EGLImageKHR is valid.
* egl/xdri: Update with glxclient.h change.Chia-I Wu2010-01-261-1/+0
| | | | | __glXFindDisplay is no longer static since 7a9329ba99fe1242c07fbf4fd04e7a4dbeba2e72.
* egl: Native types are renamed in EGL 1.3.Chia-I Wu2010-01-258-22/+25
| | | | Rename Native*Type to EGLNative*Type.
* egl: Make resource void pointer in _eglCheckResource.Chia-I Wu2010-01-255-11/+11
| | | | | This emphasizes the fact that the resource to be checked could really be invalid and have an unknown type.
* egl: Install EGL headers.Chia-I Wu2010-01-251-1/+9
| | | | Install EGL (and KHR) headers along with the library.
* egl: Add support for EGL_KHR_image.Chia-I Wu2010-01-259-1/+233
| | | | Individual drivers still need to implement the API hooks.
* egl: Update headers.Chia-I Wu2010-01-252-3/+5
| | | | | | Update to the current versions found at http://www.khronos.org/registry/egl/. There is one modification in khrplatform.h for GCC visibility.
* 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-242-56/+0
| | | | | This function is not used and should have been removed by last commit. My mistake.
* egl: Remove unused helper functions.Chia-I Wu2010-01-242-217/+0
| | | | | _eglFillInConfigs and _eglFindAPIs have no user in Mesa and are unlikely to find one soon. It should be fine to remove them.
* egl: Remove unused casting functions.Chia-I Wu2010-01-241-21/+0
| | | | _eglUIntToPointer and _eglPointerToUInt are no longer used.
* egl: Make surfaces and contexts resources.Chia-I Wu2010-01-248-220/+78
| | | | | Turn _EGLSurface and _EGLContext into _EGLResource so that they can be managed uniformly.
* egl: Add _EGLResource and _EGLResourceType.Chia-I Wu2010-01-243-0/+113
| | | | | | Resources are objects managed by a display. They can be linked to or unlinked from a display. It is also possible to check if a resource is valid.
* egl: Move surface functions in egldisplay.[ch] to eglsurface.[ch]Chia-I Wu2010-01-244-119/+133
| | | | | Move functions to where they should be. There should be no real change here.
* egl: Move context functions in egldisplay.[ch] to eglcontext.[ch].Chia-I Wu2010-01-244-118/+132
| | | | | Move functions to where they should be. There should be no real change here.
* egl: Install drivers to ${libdir}/egl.Chia-I Wu2010-01-232-3/+3
| | | | | Install EGL drivers to EGL_DRIVER_INSTALL_DIR, which is default to ${libdir}/egl.
* 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: Remove the demo driver.Chia-I Wu2010-01-222-321/+0
| | | | | The demo driver has outdated. It is suggested to look at any of the drivers that is functioning.
* egl_xdri: Add support for DRISW.Chia-I Wu2010-01-223-15/+42
| | | | | Try DRISW if both DRI2 and DRI fail. It can also be forced by setting EGL_SOFTWARE. When DRISW is used, single-buffered modes are ignored.
* egl_xdri: Flush commands on context switch and buffer swap.Chia-I Wu2010-01-221-6/+24
| | | | The corresponding DRI functions does not flush for us.
* egl_xdri: Report only OpenGL support.Chia-I Wu2010-01-221-9/+2
| | | | | It reported OpenGL ES support because some demos did not set EGL_RENDERABLE_TYPE correctly. The demos are fixed.
* egl_xdri: Do not reinitialize in __glXInitialize.Chia-I Wu2010-01-223-25/+78
| | | | | | __glXInitialize should return the same GLX display for the same X display. This issue is triggered by a35f6bb207efe3c959bbd16a37f2049e5aceeea9.
* egl_glx: Report only OpenGL support.Chia-I Wu2010-01-221-10/+3
| | | | | It reported OpenGL ES support because some demos did not set EGL_RENDERABLE_TYPE correctly. The demos are fixed.