History log of /external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2f3154f464ba0942da3e3509ff4e42928e7b60f7 04-Aug-2016 Frank Binns <frank.binns@imgtec.com> wayland-drm: add missing NULL check

Although malloc is unlikely to fail check its return value nevertheless.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
8fafb0a67faa548cb16e122e214912a17835e369 19-Aug-2015 Ian Romanick <ian.d.romanick@intel.com> mesa: Fix warning about static being in the wrong place

Because the compiler already has enough things to complain about.

grep -rl 'const static' src/ | while read f
do
sed --in-place -e 's/const static/static const/g' $f
done

brw_eu_emit.c: In function 'brw_reg_type_to_hw_type':
brw_eu_emit.c:98:7: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
const static int imm_hw_types[] = {
^
brw_eu_emit.c:120:7: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
const static int hw_types[] = {
^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
103824dc24e27d933f84490391d38e5c02676210 30-Oct-2013 Fabio Pedretti <fabio.ped@libero.it> wayland: silence unused var warning

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
98b359bd1b469af3b025a8fab5446aac8ce4c727 16-Oct-2013 Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> wayland: Don't leak wl_drm global when unbinding display
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
2efc97d51300849636b4b64ef8dfb5645e3b4e5b 16-Oct-2013 Singh, Satyeshwar <satyeshwar.singh@intel.com> egl-wayland: Add support for RGB565 pixel format for Wayland clients

With this patch Wayland clients can now ask EGL for RGB 565 format buffers
and attach them to a Wayland compositor.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
360a141f24a9d00891665b7fedb77ffb116944ca 26-Sep-2013 Kristian Høgsberg <krh@bitplanet.net> wayland: Don't rely on static variable for identifying wl_drm buffers

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>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
8d29b5271a2e66fc78436be31ed6748ff006f0cb 18-Jul-2013 Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> egl: Update to Wayland 1.2 server API

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>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
de315f76a266ce51ca0638b9ea2ec3ccfd31f03b 02-Feb-2013 Kristian Høgsberg <krh@bitplanet.net> wayland: Add prime fd passing as a buffer sharing mechanism

Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
2b8e90a33826dcd30b0cbbf464fbd191bf299d38 16-Oct-2012 Kristian Høgsberg <krh@bitplanet.net> wayland: Remove 0.85 compatibility #ifdefs
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
1aaec8c60985ffe03af265bf8f659ee0319926ca 05-Jul-2012 Kristian Høgsberg <krh@bitplanet.net> wayland-drm: Add protocol to create planar buffers
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
379eb47ea61c87c9ac071fa6d93e49ae3f02ac2c 05-Jul-2012 Kristian Høgsberg <krh@bitplanet.net> wayland-drm: Pass struct wl_drm_buffer to the driver

We're going to extend this to support multi-plane buffers, so pass this
to the driver so it can access the details.
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
4f2eafe4dcea26d7275b121360c4f4e0b28455f5 11-Apr-2012 Neil Roberts <neil@linux.intel.com> wayland-drm: Implement wl_buffer.damage in old versions of Wayland

Commit 272bc48976 removed the damage implementation for the
wl_buffer_interface because that has been removed from git master of
Wayland. However this breaks building with the 0.85 branch of Wayland
because it would end up initialising the struct incorrectly.

For the time being it's quite convenient for some compositors to track
the 0.85 branch of Wayland because the protocol is stable but they
will also want to track the master branch of Mesa so that they can use
the gbm surface changes.

This patch adds a compile-time check for the version of Wayland so
that it can work with either Wayland master or the 0.85 branch.

krh: Edited to also account for API changes in 6802eaa68, which
removes the timestamp argument from wl_resource_destroy().
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
272bc489762c6946e3c0314e9e035b281c567310 10-Apr-2012 Pekka Paalanen <ppaalanen@gmail.com> wayland-drm: remove wl_buffer.damage

This is a related fix for the Wayland change:

commit 83685c506e76212ae4e5cb722205d98d3b0603b9
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Mar 26 16:33:24 2012 -0400

Remove wl_buffer.damage and simplify shm implementation

Apparently, this should also fix a memory leak. When wl_buffer.damage
was removed from Wayland and Mesa was not fixed, wl_buffer.destroy ended
up in the (empty) damage function instead of calling
wl_resource_destroy().

Spotted during build as:
CC wayland-drm-protocol.lo
wayland-drm.c:80:2: warning: initialization from incompatible pointer type
wayland-drm.c:82:1: warning: excess elements in struct initializer
wayland-drm.c:82:1: warning: (near initialization for 'drm_buffer_interface')

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
58dc1b28d1ef4d1931c52b079d304f2e1546329d 11-Jan-2012 Kristian Høgsberg <krh@bitplanet.net> wayland-drm: Drop the non-premul formats, use format codes from drm_fourcc.h
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
670f182a1f0401f34b1fb7ead50644589737f0d2 10-Jan-2012 Robert Bragg <robert@linux.intel.com> egl_dri2/wayland: handle creating xrgb8888 images

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>
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
64332917c972a075c9e7792d77d8ef5ac2fd5a90 01-Sep-2011 Kristian Høgsberg <krh@bitplanet.net> wayland: Use wl_resource_* error functions
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
59884b9b5922ceb87e5d24acc36ffc70570a873d 01-Sep-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> wayland-drm: Fix compilation with wayland master

c661ecce introduced some not-yet-upstream stuff.
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
7b1d94e5d1f53ac5f59000176aea1d02fc9a1181 31-Aug-2011 Kristian Høgsberg <krh@bitplanet.net> wayland: Track changes to drop wl_visual
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
c661ecce1089000c3fca9a543713f8264221be50 22-Aug-2011 Kristian Høgsberg <krh@bitplanet.net> wayland: Track server side wayland changes
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
f747d03b1d3aa4e63417bd8486909f63b4a33be4 06-Jul-2011 Völgyes Dávid <david.volgyes@gmail.com> Fixes for leaks reported by cppcheck.
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
0cb356dd5c93f745bb1b17987d206a24ab708f31 06-May-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl_dri2/wayland: Hook up new buffer.release event
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
089aa313b40b495e9d9a9d209fe3851d43807f6e 31-May-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> wayland-drm: Check visual for being NULL
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
339544f4bbef9be1b4b3465f28482b9699a99692 11-May-2011 Kristian Høgsberg <krh@bitplanet.net> wayland-drm: Use new generic error event
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
6bb230970cb2da5e3fe9bc63991b4b5f92445e92 06-May-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland: Follow wl_resource_destroy changes
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
834b84149d99526e4e7a3cfa6ba9fe81e5fb9eda 30-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland-drm: Generalize interface

Do not depend on _EGLDisplay and _EGLImage.
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
01b036adea7c6534e0c3122c02c289f6fa2804e8 07-Mar-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland: Follow buffer.attach removal
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
b1a91722773152ea96de79d2b446ae488561bb0c 07-Mar-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland: Update to buffer.damage addition
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
1617b268ef79bd7dc527f6dc65f3ef0d3c51a77d 21-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland: Add new version parameter for post_drm
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c
6b369c4c7cd8a52f99bbff2a57fb316b33a87495 21-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl: Add EGL_WL_bind_wayland_display
/external/mesa3d/src/egl/wayland/wayland-drm/wayland-drm.c