summaryrefslogtreecommitdiffstats
path: root/src/egl
Commit message (Collapse)AuthorAgeFilesLines
* Make TLS EGL dri2 driver search path behavior match TLS GLX dri2 behavior.Eric Anholt2010-05-201-9/+12
|
* egl: Link drivers back to libEGL.Chia-I Wu2010-05-191-1/+1
| | | | | Drivers need symbols from libEGL. Without back-linking, the build fails on Cygwin.
* egl: Implement EGL_NOK_texture_from_pixmapKristian Høgsberg2010-05-147-29/+54
| | | | | | | This extension allows a color buffer to be used for both rendering and texturing. EGL allows the use of color buffers of pbuffer drawables for texturing, this extension extends this to allow the use of color buffers of pixmaps too.
* egl: Only allow valid config attributes in _eglParseConfigAttribList()Kristian Høgsberg2010-05-141-28/+24
| | | | Passing 0x3030, 0 in the chooser list didn't get caught.
* egl: remove duplicate ARRAY_SIZE() macro declarationBrian Paul2010-05-141-1/+1
|
* egl: Silence uninitialized variable warnings.Vinson Lee2010-05-141-1/+1
|
* egl: Implement EGL_NOK_swap_regionKristian Høgsberg2010-05-135-2/+86
| | | | | | | | | This extension adds a new function which provides an alternative to eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in addition to those in eglSwapBuffers. The new parameters consist of a pointer to a list of 4-integer blocks defining rectangles (x, y, width, height) and an integer specifying the number of rectangles in the list.
* egl: Allow a prioritized list of default driversKristian Høgsberg2010-05-136-26/+45
| | | | | | | | | | | | | | When there is no user driver or any matching display drivers we fall back to the default driver. This patch lets us have a list of default drivers instead of just one. The drivers are loaded in turn and we attempt to initialize the display. If it fails we unload the driver and move on to the next one. Compared to the display driver mechanism, this avoids loading a number of drivers and then only using one. Also, we call Initialize to see if the driver will work instead of relying on Probe. To know for sure that a driver will work, Probe really have to do a full Initialize, so we will just use Initialize directly.
* egl_dri2: Downgrade initialization errors to warningsKristian Høgsberg2010-05-131-4/+4
| | | | Don't want to shutdown everything if egl_dri2 fails to initialize.
* egl: Drop broken _EGL_PLATFORM_NO_OS codeKristian Høgsberg2010-05-131-32/+0
| | | | | It would do strlen(library_suffix()) in _eglLoaderFile(), with library_suffix() returning NULL. So obviuosly not used or tested.
* egl: Don't try to load driver basename if the platform needs a suffixKristian Høgsberg2010-05-131-3/+5
| | | | That is, don't dlopen(egl_glx) when we know we need to append .so.
* egl_dri2: Zero out driver structKristian Høgsberg2010-05-121-0/+1
| | | | Otherwise testing ->Probe for non-NULL and calling it goes boom.
* egl: Build drivers in $(TOP)/$(LIB_DIR)/egl.Chia-I Wu2010-05-081-2/+3
| | | | | There are enough EGL modules that they deserve a subdirectory, to avoid polluting $(TOP)/$(LIB_DIR).
* egl: Add _eglSearchPathForEach.Chia-I Wu2010-05-082-0/+20
| | | | The function can be used by a driver to check each search path of EGL.
* glapi: Move to src/mapi/.Chia-I Wu2010-05-072-2/+2
| | | | Move glapi to src/mapi/{glapi,es1api,es2api}.
* Add egl.pc fileKristian Høgsberg2010-05-042-1/+30
|
* Merge branch 'gles2-2'Kristian Høgsberg2010-05-021-10/+59
|\ | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.h
| * egl_dri2: Use new DRI API to create a GLES1/2 context when asked toKristian Høgsberg2010-04-281-10/+59
| |
* | Merge branch '7.8'Jakob Bornecrantz2010-04-281-1/+2
|\ \ | |/ |/|
| * egl: dri2 driver error outputMicah Fedke2010-04-281-1/+2
| | | | | | | | | | | | | | This patch amends the error output string for the case where the dri2 egl driver could not open the dri dev node. Signed-off-by: Brian Paul <[email protected]>
* | Merge branch '7.8'Dan Nicholson2010-04-192-3/+3
|\| | | | | | | | | | | | | | | Conflicts: progs/egl/Makefile progs/egl/Makefile is gone on master with the egl demos split into subdirectories. Will require an additional commit.
| * egl: Pass flags to locate Xlib headers and librariesDan Nicholson2010-04-192-3/+3
| | | | | | | | | | | | | | | | eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx driver and egl programs needs to link to libX11. Make sure we use the locations the user told us about. Signed-off-by: Dan Nicholson <[email protected]>
* | egl_dri2: Enable KHR_gl_texture_2D_imageKristian Høgsberg2010-04-141-0/+1
| | | | | | | | Forgot to set the enabled bit when I implemented the extension.
* | egl_dri2: Flush before context switch and swap buffers.Chia-I Wu2010-04-061-0/+18
| | | | | | | | | | DRI does not define any callback to flush the current context. GLX loader simply calls glFlush. Follow the GLX loader here.
* | egl: Unbind the old context in _eglBindContext.Chia-I Wu2010-04-061-10/+9
| | | | | | | | The last commit incorrectly moved the code under an "else".
* | egl: Fix eglMakeCurrent with different surfaces.Chia-I Wu2010-04-061-30/+45
| | | | | | | | | | | | 0a82fadcdd0b6ebbc345c7c302da0e0efce40a98 seems to trigger a bug in _eglBindContext. Rework the logics yet again. It is simpler, and hopefully correct this time.
* | egl: Make _eglBindContextToSurfaces more readable.Chia-I Wu2010-03-281-11/+25
| | | | | | | | | | | | 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.
* | egl: Always return the previously bound context.Chia-I Wu2010-03-281-9/+8
|/ | | | | | 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.
* Remove support for GCC older than 3.3.0Ian Romanick2010-03-031-3/+2
| | | | Signed-off-by: Ian Romanick <[email protected]>
* egl_dri2: Factor out DRI2 protocol bits from initialize.Kristian Høgsberg2010-03-031-86/+155
|
* egl_dri2: Implement EGL_KHR_gl_renderbuffer_imageKristian Høgsberg2010-02-261-63/+103
|
* egl_dri2: Implement EGL_KHR_image and EGL_KHR_image_pixmapKristian Høgsberg2010-02-241-4/+149
|
* egl: Remove unused _EGL_SKIP_HANDLE_CHECK.Chia-I Wu2010-02-234-53/+0
| | | | | | 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.
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-1/+1
|
* egl: Silence warnings when compiled with -pedantic.Chia-I Wu2010-02-194-4/+10
| | | | Just follow gcc's advices here.
* egl: Silence warnings in check/return macros.Chia-I Wu2010-02-191-139/+147
| | | | | | 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.
* egl: Revisit global data locking.Chia-I Wu2010-02-174-8/+23
| | | | | Lock the global mutex in _eglPreloadDrivers and _eglAllocScreenHandle. Add comments to why certain pathes do not need locking.
* egl: Always lock a display before using it.Chia-I Wu2010-02-172-45/+81
| | | | | | | 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.
* egl: Make eglGetDisplay atomic.Chia-I Wu2010-02-173-103/+22
| | | | | Merge _eglNewDisplay and _eglLinkDisplay into _eglFindDisplay. Remove unused _eglUnlinkDisplay.
* egl: Add a mutex to _EGLDisplay.Chia-I Wu2010-02-172-0/+4
| | | | | A display may be shared by multiple threads. Add a mutex for access control.
* egl: eglGetError should return the status of the last call.Chia-I Wu2010-02-171-123/+226
| | | | | | 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.
* egl: Always record error code.Chia-I Wu2010-02-171-4/+5
| | | | | The error code denotes the success or failure of the most recent function call. A call to _eglError should always update the error code.
* egl: Use new error checking macros.Chia-I Wu2010-02-171-115/+110
| | | | Replace all uses of _EGL_DECLARE_* and _eglCheck* by _EGL_CHECK_*.
* egl: Add new error checking macros.Chia-I Wu2010-02-171-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.
* 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
|