summaryrefslogtreecommitdiffstats
path: root/src/egl
Commit message (Collapse)AuthorAgeFilesLines
* egl_dri2: Only allocate config if we're going to keep itKristian Høgsberg2010-02-091-36/+31
| | | | Small optimization.
* egl_dri2: Initialize config attributes with visual id and class from XKristian Høgsberg2010-02-091-16/+58
|
* egl_dri2: Allow pbuffer and pixmap surfaces for all configsKristian Høgsberg2010-02-091-8/+7
|
* egl_dri2: Implement eglBindTexImage()Kristian Høgsberg2010-02-091-9/+76
|
* egl_dri2: Use a helper function for looking up and binding extensionsKristian Høgsberg2010-02-091-27/+52
|
* egl_dri2: Fix initialization with EGL_DEFAULT_DISPLAYKristian Høgsberg2010-02-091-6/+6
|
* egl_dri2: Use pkg-config cflags and libs from configure outputKristian Høgsberg2010-02-051-3/+2
| | | | | Running pkg-config in Makefiles is bad form, since it doesn't respect the PKG_CONFIG_PATH value set at ./configure time.
* egl_dri2: Log both driver and core extensionsKristian Høgsberg2010-02-051-1/+4
|
* egl_dri2: Audit and fix errors pathsKristian Høgsberg2010-02-051-49/+72
|
* egl_dri2: Just cast the pointer difference to an intKristian Høgsberg2010-02-051-4/+1
|
* egl: Add debug messages to config validation and matching.Chia-I Wu2010-02-051-2/+23
| | | | It might be desirable find out which attribute went wrong.
* egl: Clean up eglconfig.h.Chia-I Wu2010-02-051-14/+7
| | | | | Update the comments to macros/functions. Remove unused _eglSetConfigAttrib.
* egl: Remove egl_xdri.Chia-I Wu2010-02-056-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.
* egl: Update the comments to typecast macros.Chia-I Wu2010-02-051-0/+6
| | | | | Put a note that the macros define functions and should not be ended with a semicolon when used.
* egl_dri2: Use _EGL_DRIVER_STANDARD_TYPECASTS.Chia-I Wu2010-02-051-29/+2
| | | | It saves the driver from defining the boring typecasts itself.
* egl: Clarify IsLinked and IsBound.Chia-I Wu2010-02-052-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.
* egl_dri2: Do not destroy linked resources.Chia-I Wu2010-02-051-3/+3
| | | | A linked resource is stil owned by the display.
* egl_dri2: Fix a snprintf warning.Chia-I Wu2010-02-051-1/+4
| | | | | The subtraction between two pointers has type unsigned int (only on x86-64?), while the format string expects an int.
* egl_dri2: Add a debug print for DRI2 extensions.Chia-I Wu2010-02-051-0/+1
|
* egl: Implement eglCopyBuffers for DRI2, make pixmap and pbuffers actually workKristian Høgsberg2010-02-041-22/+65
|
* egl: Add driver for EGL on X with DRI2Kristian Høgsberg2010-02-042-0/+950
|
* egl: Convert drivers to use typecast macros.Chia-I Wu2010-02-042-61/+10
| | | | | Use macros to define the standard typecasts. This saves lots of typings.
* egl: Add macros to define typecast functions.Chia-I Wu2010-02-041-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.
* egl: fix wrong argument. Use loader_data instead of loaderIgor Oliveira2010-02-041-1/+1
|
* egl: Rename _eglPreloadForEach callbacks.Chia-I Wu2010-02-031-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.
* egl: Fix a potential segfault in driver suffix matching.Chia-I Wu2010-02-031-3/+5
| | | | | The driver suffix might be NULL on some platforms. Perform the matching only when there is a suffix.
* egl: Remove unnecessary #ifdef's.Chia-I Wu2010-02-031-8/+0
| | | | | There were some refactorings with the addition of EGL_DRIVERS_PATH. They made some platform #ifdef's unnecessary.
* egl: Ignore certain environment variables when setuid/setgid.Chia-I Wu2010-02-031-2/+16
| | | | | Specifically, ignore EGL_DRIVERS_PATH when an application is setuid/setgid. And ignore EGL_DRIVER when there is a slash in it.
* egl: Add EGL_DRIVERS_PATH environment variable.Chia-I Wu2010-02-031-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.
* 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.