summaryrefslogtreecommitdiff
path: root/src/egl
AgeCommit message (Collapse)AuthorFilesLines
2011-12-20egl_dri2/x11: Add support for EGL_NV_post_sub_bufferFredrik Höglund1-0/+17
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
2011-12-20egl: add EGL_NV_post_sub_bufferFredrik Höglund6-0/+48
v2: Handle EGL_POST_SUB_BUFFER_SUPPORTED_NV in _eglParseSurfaceAttribList() Signed-off-by: Fredrik Höglund <fredrik@kde.org> [olv: remove #ifdef checks]
2011-12-20egl: KHR_reusable_sync entrypoints are missing from eglGetProcAddressChia-I Wu1-0/+5
2011-12-20egl: remove #ifdef's for official extensionsChia-I Wu7-70/+0
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.
2011-12-20egl: remove EGL_ANDROID_swap_rectangleChia-I Wu4-35/+0
We never support this unofficial extension, and it has been removed from Android recently. There is no point in keeping it.
2011-12-13egl_dri2: Fix some valgrind reported leaksBenjamin Franzke4-8/+10
Free the device_name, reported by Pekka Paalanen. Destroy wayland display and drm resources, if created by dri2_initialize_wayland.
2011-12-03egl_glx: fix eglDestroyContextChia-I Wu1-1/+2
Wrong pointers are passed to glXDestroyContext. Spotted by Brian Paul.
2011-11-27egl_glx: Try first a default lookup for glXGetProcAddress before loading ↵Beren Minor1-9/+14
dynamic lib. GLX functions are sometimes directly available in the current binary. In such cases, we do not need any alternate library loaded using dlopen. Otherwise, dlopen may find the wrong libGL library and get functions that conflicts with the current loaded ones. For example, on Debian Sid with nvidia binary drivers, using mesa's libEGL with GLX driver leads to wrong glXGetFBConfigs symbol loaded (or loaded twice?), which leads to "GLX: failed to create any config" error message as the glXGetFBConfigs symbol seems to return garbage. If the binary is linked with nvidia's libGL, the GLX symbols are already available. Without this patch, convert_fbconfig (src/egl/drivers/glx/egl_glx.c:233) fails for every config found, after glXGetFBConfigAttrib(... GLX_RENDER_TYPE, ...) call, as the value returned has GLX_COLOR_INDEX_BIT and not GLX_RGBA_BIT. [olv: initialize handle, prepend egl_glx to the commit log]
2011-11-26android: bring in i915_dri and i965_dri automaticallyChia-I Wu1-0/+4
Add i915_dri and i965_dri to libGLES_mesa's LOCAL_REQUIRED_MODULES when enabled.
2011-11-26android: move libGLES_mesa build rules to src/egl/main/.Chia-I Wu1-3/+83
Keep the top-level Android.mk away from building modules.
2011-11-25android: add support for ICSChia-I Wu2-9/+18
With ICS (Android 4.0), several headers and structs are renamed. Define ANDROID_VERSION so that we can choose a different path depending on the platform version. I've tested only softpipe and llvmpipe. r600g is also reported to work.
2011-11-10egl: silence unused var warningBrian Paul1-0/+2
2011-10-04configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.Stéphane Marchesin1-2/+2
Us poor souls who cross compile mesa want to be able to specify which pkg-config to pick, or at least just change one place. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-20egl: add null platformChia-I Wu3-0/+8
The null platform has no window or pixmap surface (but pbuffer surface). And the only valid display is EGL_DEFAULT_DISPLAY. It is useful for offscreen rendering. It works everywhere becase no window system is required.
2011-09-19egl_glx.c: use unsigned instead of uintMatt Turner1-3/+3
We've had a hack to fix this in Gentoo on Solaris for a while. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-09-15wayland: Flush before blocking in swapbuffers.Jørgen Lind1-2/+5
Make sure that we've sent the frame request that we're going to block on.
2011-09-09egl_dri2: add support for RGBA_8888 android native bufferChia-I Wu1-0/+2
HAL_PIXEL_FORMAT_RGBA_8888 maps to __DRI_IMAGE_FORMAT_ABGR8888.
2011-09-08Define INLINE macro in terms of inline.José Fonseca1-19/+22
2011-09-01wayland: Use wl_resource_* error functionsKristian Høgsberg1-10/+10
2011-09-01egl_dri2: Destroy callback in release_pending_bufferBenjamin Franzke1-0/+2
2011-09-01wayland-drm: Fix compilation with wayland masterBenjamin Franzke1-9/+9
c661ecce introduced some not-yet-upstream stuff.
2011-08-31wayland: Track changes to drop wl_visualKristian Høgsberg8-39/+108
2011-08-31egl_dri2: Only clear EGL_PIXMAP_BIT if DRI config is double bufferedKristian Høgsberg1-2/+4
We don't want to set the pixmap bit in the EGL config if the DRI config we're adding is a double buffered config. However, don't clear any other bits the platform might pass in in the surface_type argument.
2011-08-31wayland: Track server side wayland changesKristian Høgsberg2-35/+37
2011-08-31wayland: Use new wl_callback mechanismKristian Høgsberg1-31/+24
2011-08-31egl_dri2: Drop dri2_surface_type enumBenjamin Franzke2-18/+9
Was only used in platform_wayland, and the remaining egl stack uses _EGLSurface::Type with one of EGL_{WINDOW,PIXMAP,PBUFFER}_BIT.
2011-08-31egl_dri2: add pbuffer support to platform_androidChia-I Wu1-5/+16
This is a simple change thanks to allocateBuffer. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31egl_dri2: check the surface type in platform_androidChia-I Wu1-45/+56
Check the surface type is EGL_WINDOW_BIT before doing anything, in preparation for pbuffer support. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31egl_dri2: refactor droid_get_buffers_with_formatChia-I Wu1-27/+39
Move the loop to parse attachments to its own function. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-31egl_dri2: set ctx->WindowRenderBufferChia-I Wu1-0/+6
Set ctx->WindowRenderBuffer to EGL_BACK_BUFFER. As EGL_WINDOW_BIT of a config is set only when there is dri_double_buffer, that makes sure window surfaces are always double-buffered and contexts will render to the back buffer. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-29egl: Use gbm/wayland flags regardless of egl_dri2Benjamin Franzke1-10/+10
Since they are needed for display autodetection. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40443
2011-08-28android: add support for egl_dri2Chia-I Wu2-0/+53
Add rules to build egl_dri2 and make it a built-in EGL driver of libGLES_mesa. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-28egl_dri2: add support for AndroidChia-I Wu3-0/+749
Add platform_android.c that supports _EGL_PLAFORM_ANDROID. It works with drm_gralloc, where back buffers of windows are backed by GEM objects. In Android a native window has a queue of back buffers allocated by the server, through drm_gralloc. For each frame, EGL needs to dequeue the next back buffer render to the buffer enqueue the buffer After enqueuing, the buffer is no longer valid to EGL. A window has no depth buffer or other aux buffers. They need to be allocated locally by EGL. Reviewed-by: Benjamin Franzke <benjaminfranzke@googlemail.com> Reviewed-by: Chad Versace <chad@chad-versace.us> [olv: with assorted minor changes, mostly suggested during the review]
2011-08-28egl_dri2: allow RGBA masks to be specified for matchingChia-I Wu5-5/+27
Add rgba_masks to dri2_add_config. When it is non-NULL, the DRI config is accepted only when the offsets and sizes of the its channels match rgba_mask. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-21android: build core EGLChia-I Wu1-0/+64
This builds the static library libmesa_egl from core EGL. Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-21egl: add Android-specific extensionsChia-I Wu4-0/+39
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>
2011-08-21egl: add _EGL_PLATFORM_ANDROIDChia-I Wu2-1/+3
This is Android Gingerbread platform. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chad Versace <chad@chad-versace.us>
2011-08-16egl: Add include paths for platform autodetectionBenjamin Franzke1-0/+2
Needed since commit 85fe9484. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40145
2011-08-16dri2: Add __DRI_BUFFER_COUNT tokenBenjamin Franzke1-2/+0
Remove definition from egl_dri2. Defining this is egl_dri2.h breaks as soon as a new dri2 buffer token is added like with commit 4501a5d6e8d00fd0d87625352ed5ba1a8861f72e.
2011-08-15egl: Log (debug) native platform typeBenjamin Franzke1-12/+25
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
2011-08-15egl: Native Display autodetectionBenjamin Franzke4-8/+115
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>
2011-08-14Destroy context in dri2/glx driver when apps call eglDestroyContextCooper Yuan2-2/+38
2011-08-04egl/gbm: Fix EGL_DEFAULT_DISPLAYBenjamin Franzke3-2/+31
2011-07-29egl: EGL_MATCH_NATIVE_NATIVE_PIXMAP cannot be EGL_DONT_CAREChia-I Wu1-2/+3
2011-07-29egl: make pixmaps and pbuffers EGL_BUFFER_PRESERVEDChia-I Wu1-1/+3
eglSwapBuffers is no-op to these surface types anyway.
2011-07-27wayland-drm: Add copyright notice to protocolBenjamin Franzke1-0/+27
Fixes build since wayland 986703ac7365bc87a5501714adb9fc73157c62b7.
2011-07-14Rename swrastg_dri to swrast_driMarek Olšák1-5/+0
I prefer it this way and it has been suggested earlier by others too. Opinions?
2011-07-06Fixes for leaks reported by cppcheck.Völgyes Dávid3-2/+8
2011-07-02egl_dri2: Fix compilation if udev devel files are not installedBenjamin Franzke1-0/+4
NOTE: This is a candidate for the 7.11 branch.
2011-07-02egl: add copyright noticesChia-I Wu38-49/+1054
The list of copyright holders could be incomplete. Please update directly or notify me if your name is missing.