summaryrefslogtreecommitdiff
path: root/src/egl
AgeCommit message (Collapse)Author
2010-01-30egl: Remove my_strdup.Chia-I Wu
There is already _eglstrdup for the main library's use.
2010-01-30egl: Remove unused VisibleRefCount.Chia-I Wu
2010-01-30egl: Rename Binding to CurrentContext in _EGLSurface.Chia-I Wu
A context can be bound to a surface just like it can be bound to a thread. CurrentContext is a more consistent name.
2010-01-30egl: Clean up header inclusions.Chia-I Wu
Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
2010-01-28egl: Remove unnecessary headers.Vinson Lee
2010-01-28egl: Migrate drivers to use _eglBindContext.Chia-I Wu
_eglMakeCurrent is a big hammer that is not easy to use. Migrate drivers to use _eglBindContext and un-export _eglMakeCurrent.
2010-01-28egl: Correctly unbind contexts in eglReleaseThread.Chia-I Wu
MakeCurrent unbinds the current context of the current API. Modify the current API to make sure all contexts are correctly unbound.
2010-01-28egl: eglMakeCurrent should accept an uninitialized display.Chia-I Wu
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.
2010-01-28egl: Add _eglBindContext.Chia-I Wu
It works similar to _eglMakeCurrent, except that the old context and surfaces are returned instead of destroyed. _eglMakeCurrent is now calling the new _eglBindContext.
2010-01-28egl: Use a boolean to indicate whether a display is initialized.Chia-I Wu
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.
2010-01-26egl: Remove _eglOpenDriver and _eglCloseDriver.Chia-I Wu
_eglCloseDriver is no-op and _eglOpenDriver does nothing but call _eglMatchDriver. Export _eglMatchDriver directly.
2010-01-26egl: Fix a segfault when a display is initialized again.Chia-I Wu
Reset dpy->MaxConfigs so that dpy->Configs is re-allocated.
2010-01-26egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.Chia-I Wu
They have little use in drivers since drivers need to work for multiple current contexts.
2010-01-26egl: Fix leaks in eglReleaseThread.Chia-I Wu
There may be multiple bound contexts that should be unbound.
2010-01-26egl: Refactor _eglMakeCurrent.Chia-I Wu
Refactor _eglMakeCurrent into _eglCheckMakeCurrent, _eglBindContextToSurface, and _eglBindContextToThread.
2010-01-26egl: Add _eglGetAPIContext.Chia-I Wu
It will return the currently bound context of the given API.
2010-01-26egl: Use a boolean to indicate whether a resource is linked.Chia-I Wu
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.
2010-01-26egl: Mark _eglCheckResource as PUBLIC.Chia-I Wu
To support extensions such as GL_OES_EGL_image, the drivers need a way to check if a given EGLImageKHR is valid.
2010-01-26egl/xdri: Update with glxclient.h change.Chia-I Wu
__glXFindDisplay is no longer static since 7a9329ba99fe1242c07fbf4fd04e7a4dbeba2e72.
2010-01-25egl: Native types are renamed in EGL 1.3.Chia-I Wu
Rename Native*Type to EGLNative*Type.
2010-01-25egl: Make resource void pointer in _eglCheckResource.Chia-I Wu
This emphasizes the fact that the resource to be checked could really be invalid and have an unknown type.
2010-01-25egl: Install EGL headers.Chia-I Wu
Install EGL (and KHR) headers along with the library.
2010-01-25egl: Add support for EGL_KHR_image.Chia-I Wu
Individual drivers still need to implement the API hooks.
2010-01-25egl: Update headers.Chia-I Wu
Update to the current versions found at http://www.khronos.org/registry/egl/. There is one modification in khrplatform.h for GCC visibility.
2010-01-24egl: Add and use make_library_path.Chia-I Wu
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.
2010-01-24egl: Remove _eglFindAPIs.Chia-I Wu
This function is not used and should have been removed by last commit. My mistake.
2010-01-24egl: Remove unused helper functions.Chia-I Wu
_eglFillInConfigs and _eglFindAPIs have no user in Mesa and are unlikely to find one soon. It should be fine to remove them.
2010-01-24egl: Remove unused casting functions.Chia-I Wu
_eglUIntToPointer and _eglPointerToUInt are no longer used.
2010-01-24egl: Make surfaces and contexts resources.Chia-I Wu
Turn _EGLSurface and _EGLContext into _EGLResource so that they can be managed uniformly.
2010-01-24egl: Add _EGLResource and _EGLResourceType.Chia-I Wu
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.
2010-01-24egl: Move surface functions in egldisplay.[ch] to eglsurface.[ch]Chia-I Wu
Move functions to where they should be. There should be no real change here.
2010-01-24egl: Move context functions in egldisplay.[ch] to eglcontext.[ch].Chia-I Wu
Move functions to where they should be. There should be no real change here.
2010-01-23egl: Install drivers to ${libdir}/egl.Chia-I Wu
Install EGL drivers to EGL_DRIVER_INSTALL_DIR, which is default to ${libdir}/egl.
2010-01-22egl: Remove egl_softpipe.Chia-I Wu
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.
2010-01-22egl: Remove the demo driver.Chia-I Wu
The demo driver has outdated. It is suggested to look at any of the drivers that is functioning.
2010-01-22egl_xdri: Add support for DRISW.Chia-I Wu
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.
2010-01-22egl_xdri: Flush commands on context switch and buffer swap.Chia-I Wu
The corresponding DRI functions does not flush for us.
2010-01-22egl_xdri: Report only OpenGL support.Chia-I Wu
It reported OpenGL ES support because some demos did not set EGL_RENDERABLE_TYPE correctly. The demos are fixed.
2010-01-22egl_xdri: Do not reinitialize in __glXInitialize.Chia-I Wu
__glXInitialize should return the same GLX display for the same X display. This issue is triggered by a35f6bb207efe3c959bbd16a37f2049e5aceeea9.
2010-01-22egl_glx: Report only OpenGL support.Chia-I Wu
It reported OpenGL ES support because some demos did not set EGL_RENDERABLE_TYPE correctly. The demos are fixed.
2010-01-22egl: Update driver Makefiles.Chia-I Wu
Update to use the new Makefile.template.
2010-01-22egl: Add Makefile.template for EGL drivers.Chia-I Wu
2010-01-20Copy __FUNCTION__ portability #defines from mesa/compiler.h to eglcompiler.hAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-20egl: Add a simple cache for driver probe.Chia-I Wu
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.
2010-01-20egl: Improve driver matching.Chia-I Wu
Make drv->Probe return a score so that the matching can be done by finding the driver with the highest score.
2010-01-20egl: Rename _EGL_PLATFORM_X to _EGL_PLATFORM_POSIX.Chia-I Wu
The macro is used to determine if dlfcn.h or dirent.h is available. POSIX is a better name than X in such case.
2010-01-20egl: Remove unused driver and display functions.Chia-I Wu
Remove _eglPreloadDriver, _eglLookupDriver, and _eglSplitDisplayString.
2010-01-20egl: Use _eglPreloadDrivers.Chia-I Wu
Replace the use of _eglPreloadDriver by _eglPreloadDrivers. The latter supports EGL_DISPLAY which have a better chance to "just work".
2010-01-20egl: Add _eglPreloadDrivers.Chia-I Wu
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.
2010-01-19Sun compilers now support some gcc __attribute__ valuesAlan Coopersmith
Sun cc 5.9 and later (__SUNPRO_C >= 0x590) support __attribute__ calls for aligned, always_inline, noinline, pure, const, and malloc. This commit includes updates to files that were regenerated by gl_XML.py after adding the __SUNPRO_C checks to it Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Signed-off-by: Brian Paul <brianp@vmware.com>