summaryrefslogtreecommitdiff
path: root/src/egl
AgeCommit message (Collapse)Author
2010-03-28egl: Make _eglBindContextToSurfaces more readable.Chia-I Wu
There is no effective changes given how the function is called. It is still not trivial, but it should be more readable and resemble _eglBindContextToThread a lot.
2010-03-28egl: Always return the previously bound context.Chia-I Wu
When a newly bound context is the same as the previously bound one, _eglBindContextToThread should still return the context instead of NULL. This gives the driver a chance to flush the context.
2010-03-03Remove support for GCC older than 3.3.0Ian Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03egl_dri2: Factor out DRI2 protocol bits from initialize.Kristian Høgsberg
2010-02-26egl_dri2: Implement EGL_KHR_gl_renderbuffer_imageKristian Høgsberg
2010-02-24egl_dri2: Implement EGL_KHR_image and EGL_KHR_image_pixmapKristian Høgsberg
2010-02-23egl: Remove unused _EGL_SKIP_HANDLE_CHECK.Chia-I Wu
It was added to skip checking EGLDisplay, EGLSurface, and etc. It is never defined and the spec does not allow the checks to be skipped. Remove it for good.
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg
2010-02-19egl: Silence warnings when compiled with -pedantic.Chia-I Wu
Just follow gcc's advices here.
2010-02-19egl: Silence warnings in check/return macros.Chia-I Wu
The macros give warnings when compiled with -pedantic. This commit is based on a patch by Brian Paul, with minor changes to add do {} while(0) and rename the check macros.
2010-02-17egl: Revisit global data locking.Chia-I Wu
Lock the global mutex in _eglPreloadDrivers and _eglAllocScreenHandle. Add comments to why certain pathes do not need locking.
2010-02-17egl: Always lock a display before using it.Chia-I Wu
This gives a simple access control to the display. It is potentially slow, but a finer grained mutex can always be used in the future. The benefit of this simple approach is that drivers need not to worry about thread-safety.
2010-02-17egl: Make eglGetDisplay atomic.Chia-I Wu
Merge _eglNewDisplay and _eglLinkDisplay into _eglFindDisplay. Remove unused _eglUnlinkDisplay.
2010-02-17egl: Add a mutex to _EGLDisplay.Chia-I Wu
A display may be shared by multiple threads. Add a mutex for access control.
2010-02-17egl: eglGetError should return the status of the last call.Chia-I Wu
Use macros to record the status of the function call before returning. This is the only way that eglGetError can return the status of the most recent function call.
2010-02-17egl: Always record error code.Chia-I Wu
The error code denotes the success or failure of the most recent function call. A call to _eglError should always update the error code.
2010-02-17egl: Use new error checking macros.Chia-I Wu
Replace all uses of _EGL_DECLARE_* and _eglCheck* by _EGL_CHECK_*.
2010-02-17egl: Add new error checking macros.Chia-I Wu
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øgsberg
Small optimization.
2010-02-09egl_dri2: Initialize config attributes with visual id and class from XKristian Høgsberg
2010-02-09egl_dri2: Allow pbuffer and pixmap surfaces for all configsKristian Høgsberg
2010-02-09egl_dri2: Implement eglBindTexImage()Kristian Høgsberg
2010-02-09egl_dri2: Use a helper function for looking up and binding extensionsKristian Høgsberg
2010-02-09egl_dri2: Fix initialization with EGL_DEFAULT_DISPLAYKristian Høgsberg
2010-02-05egl_dri2: Use pkg-config cflags and libs from configure outputKristian Høgsberg
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øgsberg
2010-02-05egl_dri2: Audit and fix errors pathsKristian Høgsberg
2010-02-05egl_dri2: Just cast the pointer difference to an intKristian Høgsberg
2010-02-05egl: Add debug messages to config validation and matching.Chia-I Wu
It might be desirable find out which attribute went wrong.
2010-02-05egl: Clean up eglconfig.h.Chia-I Wu
Update the comments to macros/functions. Remove unused _eglSetConfigAttrib.
2010-02-05egl: Remove egl_xdri.Chia-I Wu
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 Wu
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 Wu
It saves the driver from defining the boring typecasts itself.
2010-02-05egl: Clarify IsLinked and IsBound.Chia-I Wu
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 Wu
A linked resource is stil owned by the display.
2010-02-05egl_dri2: Fix a snprintf warning.Chia-I Wu
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 Wu
2010-02-04egl: Implement eglCopyBuffers for DRI2, make pixmap and pbuffers actually workKristian Høgsberg
2010-02-04egl: Add driver for EGL on X with DRI2Kristian Høgsberg
2010-02-04egl: Convert drivers to use typecast macros.Chia-I Wu
Use macros to define the standard typecasts. This saves lots of typings.
2010-02-04egl: Add macros to define typecast functions.Chia-I Wu
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 Oliveira
2010-02-03egl: Rename _eglPreloadForEach callbacks.Chia-I Wu
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 Wu
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 Wu
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 Wu
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 Wu
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 Lee
2010-01-31egl: Clean up surface attributes.Chia-I Wu
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 Wu
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.