summaryrefslogtreecommitdiff
path: root/src/egl
AgeCommit message (Collapse)AuthorFilesLines
2010-02-17egl: Use new error checking macros.Chia-I Wu1-115/+110
Replace all uses of _EGL_DECLARE_* and _eglCheck* by _EGL_CHECK_*.
2010-02-17egl: Add new error checking macros.Chia-I Wu1-94/+134
Add _EGL_CHECK_* which will replace _EGL_DECLARE_* for error checking. Move _eglCheck* earlier in the file so that the macros and the functions are grouped together.
2010-02-09egl_dri2: Only allocate config if we're going to keep itKristian Høgsberg1-36/+31
Small optimization.
2010-02-09egl_dri2: Initialize config attributes with visual id and class from XKristian Høgsberg1-16/+58
2010-02-09egl_dri2: Allow pbuffer and pixmap surfaces for all configsKristian Høgsberg1-8/+7
2010-02-09egl_dri2: Implement eglBindTexImage()Kristian Høgsberg1-9/+76
2010-02-09egl_dri2: Use a helper function for looking up and binding extensionsKristian Høgsberg1-27/+52
2010-02-09egl_dri2: Fix initialization with EGL_DEFAULT_DISPLAYKristian Høgsberg1-6/+6
2010-02-05egl_dri2: Use pkg-config cflags and libs from configure outputKristian Høgsberg1-3/+2
Running pkg-config in Makefiles is bad form, since it doesn't respect the PKG_CONFIG_PATH value set at ./configure time.
2010-02-05egl_dri2: Log both driver and core extensionsKristian Høgsberg1-1/+4
2010-02-05egl_dri2: Audit and fix errors pathsKristian Høgsberg1-49/+72
2010-02-05egl_dri2: Just cast the pointer difference to an intKristian Høgsberg1-4/+1
2010-02-05egl: Add debug messages to config validation and matching.Chia-I Wu1-2/+23
It might be desirable find out which attribute went wrong.
2010-02-05egl: Clean up eglconfig.h.Chia-I Wu1-14/+7
Update the comments to macros/functions. Remove unused _eglSetConfigAttrib.
2010-02-05egl: Remove egl_xdri.Chia-I Wu6-1440/+0
egl_xdri steals code from src/glx/x11/. This makes it broken from time to time when there is a bigger change to the GLX code. As egl_dri2 has been merged, which also functions as a DRI2 driver loader, remove egl_xdri for good.
2010-02-05egl: Update the comments to typecast macros.Chia-I Wu1-0/+6
Put a note that the macros define functions and should not be ended with a semicolon when used.
2010-02-05egl_dri2: Use _EGL_DRIVER_STANDARD_TYPECASTS.Chia-I Wu1-29/+2
It saves the driver from defining the boring typecasts itself.
2010-02-05egl: Clarify IsLinked and IsBound.Chia-I Wu2-0/+12
Both a link and a binding creates a reference to the resource. Drivers should not destroy the resource when there is a reference. The difference is better described in doc/egl.html.
2010-02-05egl_dri2: Do not destroy linked resources.Chia-I Wu1-3/+3
A linked resource is stil owned by the display.
2010-02-05egl_dri2: Fix a snprintf warning.Chia-I Wu1-1/+4
The subtraction between two pointers has type unsigned int (only on x86-64?), while the format string expects an int.
2010-02-05egl_dri2: Add a debug print for DRI2 extensions.Chia-I Wu1-0/+1
2010-02-04egl: Implement eglCopyBuffers for DRI2, make pixmap and pbuffers actually workKristian Høgsberg1-22/+65
2010-02-04egl: Add driver for EGL on X with DRI2Kristian Høgsberg2-0/+950
2010-02-04egl: Convert drivers to use typecast macros.Chia-I Wu2-61/+10
Use macros to define the standard typecasts. This saves lots of typings.
2010-02-04egl: Add macros to define typecast functions.Chia-I Wu1-0/+21
There are standard typecast functions that are common to most drivers. They are used to typecast, for example, an _EGLSurface to a driver-defined type. This commits define _EGL_DRIVER_STANDARD_TYPECASTS and _EGL_DRIVER_TYPECAST that should hopefully save some typings for driver writers.
2010-02-04egl: fix wrong argument. Use loader_data instead of loaderIgor Oliveira1-1/+1
2010-02-03egl: Rename _eglPreloadForEach callbacks.Chia-I Wu1-12/+12
Rename _eglPreloadFile to _eglLoaderFile, and _eglPreloadFile to _eglLoaderFile. There are several _eglPreload* functions. The callbacks do not belong to them and it should be better to give them a different prefix.
2010-02-03egl: Fix a potential segfault in driver suffix matching.Chia-I Wu1-3/+5
The driver suffix might be NULL on some platforms. Perform the matching only when there is a suffix.
2010-02-03egl: Remove unnecessary #ifdef's.Chia-I Wu1-8/+0
There were some refactorings with the addition of EGL_DRIVERS_PATH. They made some platform #ifdef's unnecessary.
2010-02-03egl: Ignore certain environment variables when setuid/setgid.Chia-I Wu1-2/+16
Specifically, ignore EGL_DRIVERS_PATH when an application is setuid/setgid. And ignore EGL_DRIVER when there is a slash in it.
2010-02-03egl: Add EGL_DRIVERS_PATH environment variable.Chia-I Wu1-99/+191
EGL_DRIVERS_PATH gives a list of colon-separated directories. The given directories will be searched when preloading drivers. This is based on Mike Stroyan's patch, which honors the variable in _eglPreloadDisplayDrivers. It is extended to honor the variable also in _eglPreloadUserDriver and _eglPreloadDefaultDriver in this version.
2010-01-31egl: Remove unnecessary headers.Vinson Lee3-3/+0
2010-01-31egl: Clean up surface attributes.Chia-I Wu3-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.
2010-01-31egl: Add support for more EGLImage extensions to EGL core.Chia-I Wu4-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.
2010-01-31egl: Surface type validaction should depend on extensions supported.Chia-I Wu1-1/+2
EGL_SCREEN_BIT_MESA is a valid bit only when EGL_MESA_screen_surface is supported.
2010-01-31egl: Initialize display configs with the display.Chia-I Wu4-5/+7
This changes _eglInitConfig to take the display as its argument.
2010-01-31egl: Initialize display resources with their display.Chia-I Wu8-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.
2010-01-31egl: Refactor _eglInitImage.Chia-I Wu1-10/+40
Refactor attribute list parsing code to _eglParseImageAttribList.
2010-01-31egl: Refactor _eglInitContext.Chia-I Wu1-19/+95
Refactor attribute list parsing code to _eglParseContextAttribList. Add a check to make sure the config supports the client API.
2010-01-31egl: Refactor _eglInitSurface.Chia-I Wu1-141/+146
Refactor attribute list parsing code to _eglParseSurfaceAttribList.
2010-01-31egl: Remove code blocks that are commented out.Chia-I Wu4-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.
2010-01-30egl: Remove my_strdup.Chia-I Wu1-17/+2
There is already _eglstrdup for the main library's use.
2010-01-30egl: Remove unused VisibleRefCount.Chia-I Wu1-3/+0
2010-01-30egl: Rename Binding to CurrentContext in _EGLSurface.Chia-I Wu3-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.
2010-01-30egl: Clean up header inclusions.Chia-I Wu24-21/+28
Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
2010-01-28egl: Remove unnecessary headers.Vinson Lee5-5/+0
2010-01-28egl: Migrate drivers to use _eglBindContext.Chia-I Wu4-35/+31
_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 Wu1-0/+4
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 Wu5-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.
2010-01-28egl: Add _eglBindContext.Chia-I Wu2-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.