History log of /external/mesa3d/src/egl/main/eglapi.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b50703aea55450e04bcd8154335774786e0f253b 18-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> egl: Replace KHR_surfaceless_* extensions with KHR_surfaceless_context

KHR extension name is reserved for Khronos ratified extensions, and there is
no such thing as EGL_KHR_surfaceless_{gles1,gles2,opengl}. Replace these
three extensions with EGL_KHR_surfaceless_context since that extension
actually exists.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
/external/mesa3d/src/egl/main/eglapi.c
e6a33570b73aa56c87818d7f67a122d4427b7841 05-Jul-2012 Kristian Høgsberg <krh@bitplanet.net> egl: Add EGL_WAYLAND_PLANE_WL attribute

This lets us specify the plane to create the image for for multiplanar
wl_buffers.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/src/egl/main/eglapi.c
7d46b45c5bd7d1ab3e32a2722ca65061ca80dc34 14-Dec-2011 Fredrik Höglund <fredrik@kde.org> egl: add EGL_NV_post_sub_buffer

v2: Handle EGL_POST_SUB_BUFFER_SUPPORTED_NV in
_eglParseSurfaceAttribList()

Signed-off-by: Fredrik Höglund <fredrik@kde.org>

[olv: remove #ifdef checks]
/external/mesa3d/src/egl/main/eglapi.c
f63e129d5fef73b0710d294ddc19440d9d388836 20-Dec-2011 Chia-I Wu <olv@lunarg.com> egl: KHR_reusable_sync entrypoints are missing from eglGetProcAddress
/external/mesa3d/src/egl/main/eglapi.c
f957cac772d34b3406be3236b81571e456ee40e8 20-Dec-2011 Chia-I Wu <olv@lunarg.com> egl: remove #ifdef's for official extensions

There is no point in having them when we distribute eglext.h.

As for unofficial extensions, there is a chance that we might remove some of
them evetually. Keeping the #ifdef's for now should make that easier.
/external/mesa3d/src/egl/main/eglapi.c
ed1ff2acec2cdfe3eace9f4caa6cfe5e0f175534 20-Dec-2011 Chia-I Wu <olv@lunarg.com> egl: remove EGL_ANDROID_swap_rectangle

We never support this unofficial extension, and it has been removed from
Android recently. There is no point in keeping it.
/external/mesa3d/src/egl/main/eglapi.c
00b365bc78c131bfd1c19bb22ac55e36f4e8f3c5 01-Oct-2010 Chia-I Wu <olvaffe@gmail.com> egl: add Android-specific extensions

Add EGL_ANDROID_image_native_buffer and EGL_ANDROID_swap_rectangle.
There is no spec for them though.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chad Versace <chad@chad-versace.us>
/external/mesa3d/src/egl/main/eglapi.c
85fe9484945cb57ffd49df248b0e5057eba6af04 09-Aug-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl: Native Display autodetection

EGL doesnt define howto manage different native platforms.
So mesa has a builtime configurable default platform,
whith non-standard envvar (EGL_PLATFORM) overwrites.
This caused unneeded bugreports, when EGL_PLATFORM was forgotten.

Detection is grouped into basic types of NativeDisplays (which itself
needs to be detected). The final decision is based on characteristcs
of these basic types:

File Desciptor based platforms (fbdev):
- fstat(2) to check for being a fd that belongs to a character device
- check kernel subsystem (todo)

Pointer to structuctures (x11, wayland, drm/gbm):
- mincore(2) to check whether its valid pointer to some memory.
- magic elements (e.g. pointers to exported symbols):
o wayland display stores interface type pointer (first elm.)
o gbm stores pointer to its constructor (first elm.)
o x11 as a fallback (FIXME?)

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/src/egl/main/eglapi.c
f2001df508fda599a18b3586d2775e970a3db13a 02-Jul-2011 Chia-I Wu <olv@lunarg.com> egl: add copyright notices

The list of copyright holders could be incomplete. Please update
directly or notify me if your name is missing.
/external/mesa3d/src/egl/main/eglapi.c
6a661895e946f38b21775bf9cb45ef6b22fab85a 12-May-2011 José Fonseca <jfonseca@vmware.com> egl: Fix int <-> ptr casts.

Based on zhigang gong <zhigang.gong@gmail.com>'s patch.
/external/mesa3d/src/egl/main/eglapi.c
f274dfaca4b53bae92dfe6a72c1890c381d84746 25-Apr-2011 Kristian Høgsberg <krh@bitplanet.net> egl: Use the right extension name in #ifdef
/external/mesa3d/src/egl/main/eglapi.c
6b369c4c7cd8a52f99bbff2a57fb316b33a87495 21-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl: Add EGL_WL_bind_wayland_display
/external/mesa3d/src/egl/main/eglapi.c
a4a38dcf61f141297a083ccac217200947d57b0d 13-Jan-2011 Chia-I Wu <olv@lunarg.com> egl: Cleanup _EGLDisplay initialization.

Reorder/rename and document the fields that should be set by the driver during
initialization. Drop the major/minor arguments from drv->API.Initialize.
/external/mesa3d/src/egl/main/eglapi.c
d19afc57fe49816f3f3290410e0124d326577be2 22-Oct-2010 Chia-I Wu <olv@lunarg.com> egl: Use reference counting to replace IsLinked or IsBound.

Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update
_eglBindContext and drivers to do reference counting.
/external/mesa3d/src/egl/main/eglapi.c
4ce33ec606292d92eff5afad6f50e1acc7109729 22-Oct-2010 Chia-I Wu <olv@lunarg.com> egl: Drop dpy argument from the link functions.

All display resources are already initialized with a display. Linking
simply links a resource to its display.
/external/mesa3d/src/egl/main/eglapi.c
6b2f1561ad66c358a5d6b7a5ed5eb8f550a3b098 23-Sep-2010 Chia-I Wu <olv@lunarg.com> egl: Check extensions.

Do not call into the driver if the extension for the called function is
not enabled.
/external/mesa3d/src/egl/main/eglapi.c
916c8ed2c8f916604166b22e6fcb9433b960a924 09-Sep-2010 Chia-I Wu <olv@lunarg.com> egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.

_EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext
on error.
/external/mesa3d/src/egl/main/eglapi.c
b7a8893a2413adfddf4dc836676a19463fb6ffd7 04-Jun-2010 Kristian Høgsberg <krh@bitplanet.net> egl: Add EGL_MESA_drm_image extension

Create EGLImages from DRM buffer handles.
/external/mesa3d/src/egl/main/eglapi.c
f508c0c09702a5ea53dcb58721f3674605594c6e 19-Aug-2010 Chia-I Wu <olv@lunarg.com> egl: Allow core functions to be queried.

When _EGL_GET_CORE_ADDRESSES is defined, eglGetProcAddress can be used to query
core functions. This is non-standard, but some apps expect it.
/external/mesa3d/src/egl/main/eglapi.c
4eebea74a81ec5fbacf2347ea88cac137ddd4d69 14-Aug-2010 Chia-I Wu <olv@lunarg.com> egl: Add support for EGL_KHR_reusable_sync.

Individual drivers still need to support and enable the extension.
/external/mesa3d/src/egl/main/eglapi.c
b90a3e7d8b1bcd412ddbf2a4803de2756dacd436 03-Jun-2010 Kristian Høgsberg <krh@bitplanet.net> egl: EGL_KHR_surfaceless_* extensions

These extensions allow an application to make a context current by
passing EGL_NO_SURFACE for the write and read surface in the call to
eglMakeCurrent. The motivation is that applications that only want to
render to client API targets (such as OpenGL framebuffer objects)
should not need to create a throw-away EGL surface just to get a
current context.
/external/mesa3d/src/egl/main/eglapi.c
ff318c45ec1fafd0d825a8da5556d2d1e69ff7da 07-Jul-2010 Vinson Lee <vlee@vmware.com> egl: Remove unnecessary headers.
/external/mesa3d/src/egl/main/eglapi.c
f2aa361f3b58a91780c9358b3f8716f6434074c7 04-Jul-2010 Chia-I Wu <olv@lunarg.com> egl: Rework driver loading.

Driver loading is now splitted into two stages. In the first stage, an
_EGLModule is created for each driver: user driver, default drivers, and
all files in the search directories that start with "egl_". Modules are
not loaded at this stage.

In the second stage, each module is loaded to initialize a display. The
process stops at the first module that can initialize the display.

If eglGetProcAddress is called before eglInitialize, the same code path
will be taken to find the first module that supports
EGL_DEFAULT_DISPLAY. Because we do not want to initialize the display,
drv->Probe is used instead in this case.
/external/mesa3d/src/egl/main/eglapi.c
c43ab4fe1fbb13bbfe70680c6c608ff0da73be9a 03-Jul-2010 nobled <nobled@dreamwidth.org> egl: Always use EGLAPIENTRY in api function prototypes

Fixes the build on Windows.
/external/mesa3d/src/egl/main/eglapi.c
78d70ddbbd41d73b7f6040f392eb87758c39dc37 17-Jun-2010 Chia-I Wu <olv@lunarg.com> egl: Add support for EGL_MESA_drm_display.

The extension defines eglGetDRMDisplay that creates an EGLDisplay from a
DRM fd. Calling eglCreateWindowSurace or eglCreatePixmapSurface with
such displays will generate EGL_BAD_NATIVE_WINDOW or
EGL_BAD_NATIVE_PIXMAP.
/external/mesa3d/src/egl/main/eglapi.c
f22665df95406567193dee0089f4830664ff4101 17-Jun-2010 Chia-I Wu <olv@lunarg.com> egl: Introduce platform displays internally.

This commit introduces type-safe platform displays internally. A
platform display consists of a generic pointer and an enum that
specifies the platform.

An EGLDisplay is created from a platform display. Native displays
become platform displays whose platform is determined by
_eglGetNativePlatform(). Platform windows and pixmaps may also be
introduced if needed.
/external/mesa3d/src/egl/main/eglapi.c
1e6c10f4be9e36cc052a6b47fb2cb1eae60caa00 31-May-2010 Chia-I Wu <olv@lunarg.com> egl: Use SConscript for Windows build.

Fix several portability issues and add SConscript for Windows build.
/external/mesa3d/src/egl/main/eglapi.c
12297f1f98c5daf177938b2598e6fb8ed97a9a66 14-May-2010 Vinson Lee <vlee@vmware.com> egl: Silence uninitialized variable warnings.
/external/mesa3d/src/egl/main/eglapi.c
52c554a79d3ed3104a9f7d112faa9129073b5a25 07-May-2010 Kristian Høgsberg <krh@bitplanet.net> egl: Implement EGL_NOK_swap_region

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.
/external/mesa3d/src/egl/main/eglapi.c
681fd73f1e95d43425b946a250b241bfdb0ce1c8 13-May-2010 Kristian Høgsberg <krh@bitplanet.net> egl: Allow a prioritized list of default drivers

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.
/external/mesa3d/src/egl/main/eglapi.c
bef4b476d729320599264483113d577ac5eeaff1 18-Feb-2010 Chia-I Wu <olv@lunarg.com> egl: Silence warnings in check/return macros.

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.
/external/mesa3d/src/egl/main/eglapi.c
655f4654675e601a9482e40d8e50156c965b8934 17-Feb-2010 Chia-I Wu <olv@lunarg.com> egl: Always lock a display before using it.

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.
/external/mesa3d/src/egl/main/eglapi.c
db5ce8b3843a03c6f83a02a79f033d7e74784dd5 17-Feb-2010 Chia-I Wu <olv@lunarg.com> egl: Make eglGetDisplay atomic.

Merge _eglNewDisplay and _eglLinkDisplay into _eglFindDisplay. Remove
unused _eglUnlinkDisplay.
/external/mesa3d/src/egl/main/eglapi.c
b3bb18062005d3c9ec0f942a5e096e7e38c6f3e1 17-Feb-2010 Chia-I Wu <olv@lunarg.com> egl: eglGetError should return the status of the last call.

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.
/external/mesa3d/src/egl/main/eglapi.c
aed7358e54fd143033d240c6e543d403da2d7336 17-Feb-2010 Chia-I Wu <olv@lunarg.com> egl: Use new error checking macros.

Replace all uses of _EGL_DECLARE_* and _eglCheck* by _EGL_CHECK_*.
/external/mesa3d/src/egl/main/eglapi.c
f3e03e1277839cddc35e0cc3427a7972bc17a10a 17-Feb-2010 Chia-I Wu <olv@lunarg.com> egl: Add new error checking macros.

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.
/external/mesa3d/src/egl/main/eglapi.c
94cb321b5d246185abf71d89968d472a626f1a23 29-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Clean up header inclusions.

Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
/external/mesa3d/src/egl/main/eglapi.c
45ba53324341234144ca02122bf2c0b5ef58c361 28-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Correctly unbind contexts in eglReleaseThread.

MakeCurrent unbinds the current context of the current API. Modify the
current API to make sure all contexts are correctly unbound.
/external/mesa3d/src/egl/main/eglapi.c
17330479b39409a63a06ec9e6b0f8e28b585db12 27-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: eglMakeCurrent should accept an uninitialized display.

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.
/external/mesa3d/src/egl/main/eglapi.c
a933259daa98615ad7473c53623a96f612e9a311 27-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Use a boolean to indicate whether a display is initialized.

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.
/external/mesa3d/src/egl/main/eglapi.c
092b1ca989ba3bdc3f4d421b83b3943af260b7db 26-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Remove _eglOpenDriver and _eglCloseDriver.

_eglCloseDriver is no-op and _eglOpenDriver does nothing but call
_eglMatchDriver. Export _eglMatchDriver directly.
/external/mesa3d/src/egl/main/eglapi.c
a1717970e78d897f527273278bf1346cc86a5741 26-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.

They have little use in drivers since drivers need to work for multiple
current contexts.
/external/mesa3d/src/egl/main/eglapi.c
11cf3cb2c463cf8af8a7e63eb9521979bfd303f8 26-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Fix leaks in eglReleaseThread.

There may be multiple bound contexts that should be unbound.
/external/mesa3d/src/egl/main/eglapi.c
4aed0944f4b8b8d14d210cf6bc87ccddfa9a77ec 25-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Native types are renamed in EGL 1.3.

Rename Native*Type to EGLNative*Type.
/external/mesa3d/src/egl/main/eglapi.c
a1c4a8a3c855d52fbfef10023b9a8f116e163a97 15-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Add support for EGL_KHR_image.

Individual drivers still need to implement the API hooks.
/external/mesa3d/src/egl/main/eglapi.c
95f8f75ad8bdb1d8e1cc16ea91fed8c407c36abd 15-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Update headers.

Update to the current versions found at
http://www.khronos.org/registry/egl/. There is one modification in
khrplatform.h for GCC visibility.
/external/mesa3d/src/egl/main/eglapi.c
ecb3b3102a3022e31cf9d75ae099eddbe298517f 24-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Make surfaces and contexts resources.

Turn _EGLSurface and _EGLContext into _EGLResource so that they can be
managed uniformly.
/external/mesa3d/src/egl/main/eglapi.c
57929eda3e876dc60be7060237a669f042be2376 19-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Use _eglPreloadDrivers.

Replace the use of _eglPreloadDriver by _eglPreloadDrivers. The latter
supports EGL_DISPLAY which have a better chance to "just work".
/external/mesa3d/src/egl/main/eglapi.c
3e6139d158a054a0dfe8def28bf60201cdb9f385 12-Jan-2010 Chia-I Wu <olvaffe@gmail.com> egl: Add _EGLDriver as the first argument to GetProcAddress.

The rest of the driver API has it as the first argument. It should be
there so that a driver has access to itself.
/external/mesa3d/src/egl/main/eglapi.c
6c21c8862bc6edc9cddf3b6eb6f276961099a7a8 28-Sep-2009 Chia-I Wu <olvaffe@gmail.com> egl: Rework the synchronization primitives.

This adds error checking to the synchronization primitives. And
eglWaitGL is now implemented by eglWaitClient.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
57da499d7ba074128e8c97b8076805e403a2b9c4 15-Oct-2009 Chia-I Wu <olvaffe@gmail.com> egl: Rework eglSwapInterval.

This adds error checking to eglSwapInterval and clamps the swap
interval.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
bbfd0e26151bef567c152c8018ecc15f04c70914 15-Oct-2009 Chia-I Wu <olvaffe@gmail.com> egl: Rework error checking in eglSwapBuffers.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
aaa1253b09a6a38e7fcd695aa36e89b9d4bd8dfe 30-Sep-2009 Chia-I Wu <olvaffe@gmail.com> egl: Update comments about eglapi.c.

Mention that opaque handles are looked up and checked.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
61906631202af855d0742586956ff9f34522a525 30-Sep-2009 Chia-I Wu <olvaffe@gmail.com> egl: Rework error checking in eglGetCurrentSurface.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
310c76812e5a2013dad36fc9d1686f57e7b1e626 17-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Allow binding to any client API.

As a result, EGL_NONE is no longer a valid client API. And it is
possible that no config supports the current bound API.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
e787ffcd02cac9085ac69f631cce235d1cad59c9 28-Sep-2009 Chia-I Wu <olvaffe@gmail.com> egl: Preload a driver if eglGetProcAddress is called early.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
9061d733d3f31293c145cf3b7a0f71c1bfd31989 15-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Remove core functions from eglGetProcAddress.

eglGetProcAddress may not be used to query core (non-extension)
functions.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
ccc2b0bc65b02d4582d52d133290c8cb046bce8f 13-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: _eglCloseDriver should be no-op.

Move drv->API.Terminate call to eglTerminate. Remove
_eglReleaseDisplayResource as drivers are doing it.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
5a2c9372a0d9fa1efd924f9386a4e3df47c17d0e 13-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Some per-driver data should be per-display.

Move some fields of _EGLDriver to _EGLDisplay. It also becomes
unnecessary to pass _EGLDisplay to drivers when _eglMain is called.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
0eaa02c836821556c1e8d0141f49f57e23f2548d 13-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Change the way drivers are loaded.

Driver is chosen and preloaded when eglGetDisplay is called. Later when
eglInitialize is called, the same driver is matched to initialize the
display. Also, add new, but unused, hooks to EGLDriver to allow a
driver to probe a display or unload itself.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
2f2cf461c57974abd89e4917945cc8ae6a67a72e 11-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Overhaul driver API.

The motivation is so that drivers do not need to look up and check for
bad display, context, and etc. It also becomes unnecessary for drivers
to call the link functions.

This commit makes eglapi.[ch] do the lookup and check. As a result, the
driver API is overhauled, and almost all sources and drivers need
update. The updates are mainly find and replace with human brains.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
0e3687e33dd482115c1a0e39c50b424936cb05a6 10-Aug-2009 Chia-I Wu <olvaffe@gmail.com> egl: Make _eglGlobal initialize statically.

Now that display and surface hash tables are moved out, _eglGlobal can
be initialized statically.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
be9d1ab171b1b29108c781af84dd500707a12925 17-Jul-2009 Chia-I Wu <olvaffe@gmail.com> egl: Return the same EGL Display for the same native display.

The latest revision of the spec explicitly requires the same handle to
be returned for the same native display.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
18457cb263e3e062e12314e7b3d5c81a7f2ba048 17-Jul-2009 Chia-I Wu <olvaffe@gmail.com> egl: Add funtions to link contexts and surfaces to displays.

EGL contexts and surfaces are resources of displays. They should be
managed by displays. This commit adds a bunch of functions to
egldisplay.c to help establish the links between contexts/surfaces and
displays. How links are established is considered opaque outside
display. Functions like _eglGetSurfaceHandle or _eglLookupSurface are
therefore moved to egldisplay.c, with some small modifications.

The idea is also extended to display. That is, displays need to link to
themselves to be looked up.

This commit only adds the functions. A commit to use them should
follow.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
21b635ffa8b59049a95d50d4c7b7a8ff6413b730 17-Jul-2009 Chia-I Wu <olvaffe@gmail.com> egl: Extend per-thread info for multiple current contexts.

EGL allows multiple current contexts, as long as they are bound to
different client APIs.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
75da80b29556e6dbbba21e5297ca440e475f65cb 17-Jul-2009 Chia-I Wu <olvaffe@gmail.com> egl: Support per-thread info.

This commit introduces a "current" system to manage per-thread info. It
uses TLS, if GLX_USE_TLS is defined, or pthread, if PTHREADS is defined.
If none of them are defined, it uses a dummy implementation that is just
like before.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/egl/main/eglapi.c
7e2458c7b55b2662067d8cce8a962d8c2bbd3a43 06-Aug-2008 Jonathan White <jwhite@tungstengraphics.com> egl: fix version handling
/external/mesa3d/src/egl/main/eglapi.c
e3805cad0d15ed25ce8f6c5a1f1ea913e5d0986a 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: new eglGetProcAddress() code

The idea is to pass the call down to the device driver where an API-specific
query can be made. Untested.
/external/mesa3d/src/egl/main/eglapi.c
d5078b94323241a6482f54797756116b1c864327 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: clean-up re-org of the client API state
/external/mesa3d/src/egl/main/eglapi.c
1c73b4ba86b424ba66a16c4006a57db505bd3ca3 30-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added Name field to _EGLDriver so a driver name string can propogate up through EGL_VERSION string
/external/mesa3d/src/egl/main/eglapi.c
c56e15b093c367e7e17ebd2e153baab8cafd213a 28-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: make sure EGL_VERSION_STRING query returns same version as eglInitialize()
/external/mesa3d/src/egl/main/eglapi.c
0c8908c411c434eda318b41b4f2a370a1e794831 28-May-2008 Brian Paul <brian.paul@tungstengraphics.com> egl: added args string to _eglMain()
/external/mesa3d/src/egl/main/eglapi.c
6052af172f0241e6678cd16efac0a0f14f40146c 28-May-2008 Brian Paul <brian.paul@tungstengraphics.com> minor overhaul/re-org of driver selection/loading code
/external/mesa3d/src/egl/main/eglapi.c
721ba15bf4596b2e9589e7656005b387724875c3 27-May-2008 Brian Paul <brian.paul@tungstengraphics.com> added _eglGet*Handle() functions

These are the inverse of the _eglLookup*() functions.
Returns the public handle for a private surface/config/display/etc.
Removes glapi.c's direct access of private fields.
/external/mesa3d/src/egl/main/eglapi.c
5f8a4f3e5e8fe78f1abe9ca6dd1131ad53d3d943 27-May-2008 Brian Paul <brian.paul@tungstengraphics.com> added EGL_OPENGL_API case
/external/mesa3d/src/egl/main/eglapi.c
5e7dba541298a29f175f9d077bf6f63030465d94 27-May-2008 Brian Paul <brian.paul@tungstengraphics.com> eliminate the context hash table

In EGL 1.4 the opaque EGLContext type is a pointer so we can just cast
between public EGLContext handles and private _EGLContext pointers.
/external/mesa3d/src/egl/main/eglapi.c
1ed1027e886980b9b0f48fa6bfcf3d6e209c7787 27-May-2008 Brian Paul <brian.paul@tungstengraphics.com> assorted changes to compile with new EGL 1.4 headers (untested)
/external/mesa3d/src/egl/main/eglapi.c
b2006a40eb22899d38cd31691640555228e36975 30-Jan-2006 Brian Paul <brian.paul@tungstengraphics.com> some initial EGL 1.2 work
/external/mesa3d/src/egl/main/eglapi.c
48822796339cb4a55714dc3f1abbe379562ec538 10-Dec-2005 Brian Paul <brian.paul@tungstengraphics.com> Some initial per-thread support.
Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.
/external/mesa3d/src/egl/main/eglapi.c
daf585d0f00df1d4d2e8dc5b465dad60a4bf0122 24-Nov-2005 Brian Paul <brian.paul@tungstengraphics.com> Move all the EGL API function pointers into a new _egl_api struct.
/external/mesa3d/src/egl/main/eglapi.c
198d6d05b033ece21d094c46390ec0faa7612939 17-May-2005 Brian Paul <brian.paul@tungstengraphics.com> remove eglQueryDisplayMESA()
/external/mesa3d/src/egl/main/eglapi.c
f9bad3dfea43d792876c3a7221b9cfcd107085eb 16-May-2005 Brian Paul <brian.paul@tungstengraphics.com> use EGLint instead of unsigned long for eglCopyContextMESA, added comments
/external/mesa3d/src/egl/main/eglapi.c
1c606a9aa1d1fa79fe5c92f42651385917322d5f 14-May-2005 Jon Smirl <jonsmirl@gmail.com> Add empty placeholder for eglCopyContextMESA
/external/mesa3d/src/egl/main/eglapi.c
7012d01d888d482f2c6ad1180231a482026d213a 13-May-2005 Jon Smirl <jonsmirl@gmail.com> First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.
/external/mesa3d/src/egl/main/eglapi.c
c22990c29a5cdff89e6e3914aa565acc88a6a407 04-May-2005 Brian Paul <brian.paul@tungstengraphics.com> sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)
/external/mesa3d/src/egl/main/eglapi.c
adbff7e977c7c768e752a24fb643d68bdf961bfe 22-Apr-2005 Brian Paul <brian.paul@tungstengraphics.com> initial EGL code
/external/mesa3d/src/egl/main/eglapi.c