summaryrefslogtreecommitdiff
path: root/src/egl/wayland/wayland-drm/wayland-drm.h
AgeCommit message (Collapse)AuthorFilesLines
2013-10-11wayland: Don't rely on static variable for identifying wl_drm buffersKristian Høgsberg1-1/+1
Now that libEGL has been fixed to not leak all kinds of symbols, gbm links to its own copy of the libwayland-drm.a helper library. That means we can't rely on comparing the addresses of a static vtable symbol in that library to determine if a wl_buffer is a wl_drm_buffer. Instead, we move the vtable into the wl_drm struct and use that for comparing. https://bugs.freedesktop.org/show_bug.cgi?id=69437 Cc: 9.2 <mesa-stable@lists.freedesktop.org>
2013-08-07egl: Update to Wayland 1.2 server APIAnder Conselvan de Oliveira1-6/+7
Since Wayland 1.2, struct wl_buffer and a few functions are deprecated. References to wl_buffer are replaced with wl_resource and some getter functions and calls to deprecated functions are replaced with the proper new API. The latter changes are related to resource versioning. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
2013-03-18wayland: Add prime fd passing as a buffer sharing mechanismKristian Høgsberg1-2/+5
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
2012-07-17wayland: Include wl_drm format enum in wayland-drm.hKristian Høgsberg1-1/+64
This gets referenced before we get to generate the header files, so just include the enum that we need and don't include the generated header.
2012-07-16gbm: Add new gbm_bo_import entry pointKristian Høgsberg1-3/+0
This generalizes and replaces gbm_bo_create_for_egl_image. gbm_bo_import will create a gbm_bo from either an EGLImage or a struct wl_buffer.
2012-07-11egl: Add EGL_WAYLAND_PLANE_WL attributeKristian Høgsberg1-1/+1
This lets us specify the plane to create the image for for multiplanar wl_buffers. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2012-07-11wayland-drm: Add protocol to create planar buffersKristian Høgsberg1-3/+2
2012-07-11wayland-drm: Pass struct wl_drm_buffer to the driverKristian Høgsberg1-4/+14
We're going to extend this to support multi-plane buffers, so pass this to the driver so it can access the details.
2012-01-11egl_dri2/wayland: handle creating xrgb8888 imagesRobert Bragg1-0/+3
When creating an EGLImage from a struct wl_buffer * this ensures that we create an XRGB8888 image if the wayland buffer doesn't have an alpha channel. To determine if a wl_buffer has a valid alpha channel this patch adds an internal wayland_drm_buffer_has_alpha() function. It's important to get the internal format for an EGLImage right so that if a GL texture is later created from the image then the GL driver will know if it should sample the alpha from the texture or flatten it to a constant of 1.0. This avoids needing fragment program workarounds in wayland compositors to manually ignore the alpha component of textures created from wayland buffers. krh: Edited to use wl_buffer_get_format() instead of wl_buffer_has_alpha(). Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
2011-08-31wayland: Track changes to drop wl_visualKristian Høgsberg1-1/+2
2011-05-06egl/wayland-drm: Generalize interfaceBenjamin Franzke1-8/+16
Do not depend on _EGLDisplay and _EGLImage.
2011-03-01egl: Add EGL_WL_bind_wayland_displayBenjamin Franzke1-0/+26