summaryrefslogtreecommitdiff
path: root/src/egl
AgeCommit message (Collapse)AuthorFilesLines
2010-05-12egl_dri2: Zero out driver structKristian Høgsberg1-0/+1
Otherwise testing ->Probe for non-NULL and calling it goes boom.
2010-05-08egl: Build drivers in $(TOP)/$(LIB_DIR)/egl.Chia-I Wu1-2/+3
There are enough EGL modules that they deserve a subdirectory, to avoid polluting $(TOP)/$(LIB_DIR).
2010-05-08egl: Add _eglSearchPathForEach.Chia-I Wu2-0/+20
The function can be used by a driver to check each search path of EGL.
2010-05-07glapi: Move to src/mapi/.Chia-I Wu2-2/+2
Move glapi to src/mapi/{glapi,es1api,es2api}.
2010-05-04Add egl.pc fileKristian Høgsberg2-1/+30
2010-05-02Merge branch 'gles2-2'Kristian Høgsberg1-10/+59
Conflicts: src/mesa/drivers/dri/common/dri_util.h
2010-04-28egl_dri2: Use new DRI API to create a GLES1/2 context when asked toKristian Høgsberg1-10/+59
2010-04-19Merge branch '7.8'Dan Nicholson2-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.
2010-04-19egl: Pass flags to locate Xlib headers and librariesDan Nicholson2-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 <dbn.lists@gmail.com>
2010-04-28Merge branch '7.8'Jakob Bornecrantz1-1/+2
2010-04-28egl: dri2 driver error outputMicah Fedke1-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 <brianp@vmware.com>
2010-04-14egl_dri2: Enable KHR_gl_texture_2D_imageKristian Høgsberg1-0/+1
Forgot to set the enabled bit when I implemented the extension.
2010-04-06egl_dri2: Flush before context switch and swap buffers.Chia-I Wu1-0/+18
DRI does not define any callback to flush the current context. GLX loader simply calls glFlush. Follow the GLX loader here.
2010-04-06egl: Unbind the old context in _eglBindContext.Chia-I Wu1-10/+9
The last commit incorrectly moved the code under an "else".
2010-04-06egl: Fix eglMakeCurrent with different surfaces.Chia-I Wu1-30/+45
0a82fadcdd0b6ebbc345c7c302da0e0efce40a98 seems to trigger a bug in _eglBindContext. Rework the logics yet again. It is simpler, and hopefully correct this time.
2010-03-28egl: Make _eglBindContextToSurfaces more readable.Chia-I Wu1-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.
2010-03-28egl: Always return the previously bound context.Chia-I Wu1-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.
2010-03-03Remove support for GCC older than 3.3.0Ian Romanick1-3/+2
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03egl_dri2: Factor out DRI2 protocol bits from initialize.Kristian Høgsberg1-86/+155
2010-02-26egl_dri2: Implement EGL_KHR_gl_renderbuffer_imageKristian Høgsberg1-63/+103
2010-02-24egl_dri2: Implement EGL_KHR_image and EGL_KHR_image_pixmapKristian Høgsberg1-4/+149
2010-02-23egl: Remove unused _EGL_SKIP_HANDLE_CHECK.Chia-I Wu4-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.
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg1-1/+1
2010-02-19egl: Silence warnings when compiled with -pedantic.Chia-I Wu4-4/+10
Just follow gcc's advices here.
2010-02-19egl: Silence warnings in check/return macros.Chia-I Wu1-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.
2010-02-17egl: Revisit global data locking.Chia-I Wu4-8/+23
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 Wu2-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.
2010-02-17egl: Make eglGetDisplay atomic.Chia-I Wu3-103/+22
Merge _eglNewDisplay and _eglLinkDisplay into _eglFindDisplay. Remove unused _eglUnlinkDisplay.
2010-02-17egl: Add a mutex to _EGLDisplay.Chia-I Wu2-0/+4
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 Wu1-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.
2010-02-17egl: Always record error code.Chia-I Wu1-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.
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.