History log of /external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f2da7e720f60e8df96bf2530f35e3e79897e0cb7 25-Dec-2012 Jonas Ådahl <jadahl@gmail.com> wayland: Don't cancel a roundtrip when any event is received

Since wl_display_dispatch_queue() returns the number of processed events
or -1 on error, only cancel the roundtrip if an -1 is returned.

This also fixes a potential memory corruption bug happening when the
roundtrip does an early return and the callback later writes to the then
out of scope stack allocated `done' parameter.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
2332bc26d435e465a6f6571ab267db2a33ce05d2 28-Oct-2012 Jonas Ådahl <jadahl@gmail.com> wayland: Destroy frame callback when destroying surface

If a frame callback is not destroyed when destroying a surface, its
handler function will be invoked if the surface was destroyed after the
callback was requested but before it was invoked, causing a write on
free:ed memory.

This can happen if eglDestroySurface() is called shortly after
eglSwapBuffers().

Note: This is a candidate for stable branches.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
(cherry picked from commit a3b6b2d3055070da9bf7054fecfd0b171c398eb7)
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
2a81037439afb04d4170f674646cdae59619707d 16-Oct-2012 Kristian Høgsberg <krh@bitplanet.net> wayland: Drop support for ill-defined, unused wl_egl_pixmap

It doesn't provide the cross-process buffer sharing that a window system
pixmap could otherwise support and we don't have anything left that uses
this type of surface.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
a5776ac0b8c015bf5d6a8513cefec5920895cc8e 11-Oct-2012 Kristian Høgsberg <krh@bitplanet.net> egl/wayland: Update to Wayland 0.99 API

The 0.99.0 Wayland release changes the event API to provide a thread-safe
mechanism for receiving events specific to a subsystem (such as EGL) and
we need to use it in the EGL platform.

The Wayland protocol now also requires a commit request to make changes
take effect, issue that from eglSwapBuffers.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
ad22e647e07d17ce51d267ac200d8a544a33c834 27-Mar-2012 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: Also remove wl_buffer_damage in wayland backend

As commit 03eca9d92d407c71a59ff8a43067759769da0ae4 does for egl_dri2.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.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/gallium/state_trackers/egl/wayland/native_wayland.c
7645c49e07b638de94f03d5f71fde397066a46ee 08-Sep-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: add premultiplied alpha support to wayland

Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with
alpha support premultiplied alpha.

(Based on Chia-I Wu's patch)

[olv: remove the use of param_premultiplied_alpha from the original
patch]
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
1191d203632e2954ce59163f87c9896b1c6ed40a 08-Sep-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: correctly return configs under wayland

Handle "format" events and return configs for the supported formats.

(Based on Chia-I Wu's patch)

[olv: update and explain why PIPE_FORMAT_B8G8R8A8_UNORM should not be
enabled without HAS_ARGB32]
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
ee0e6ae2bb25bfa02547ef9986bdff8afc792d49 08-Sep-2011 Chia-I Wu <olv@lunarg.com> Revert "st/egl: correctly return configs under wayland"

This reverts commit 95b445699d7f049116ee0927387a958a9933766b.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
93a96abe16068fa3ca8a1eb8d1c34195bffdc470 08-Sep-2011 Chia-I Wu <olv@lunarg.com> Revert "st/egl: add premultiplied alpha support to wayland"

This reverts commit 23aa978a9d76a48f4b93e9a8911ec50c0e5d94ab.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
23aa978a9d76a48f4b93e9a8911ec50c0e5d94ab 07-Sep-2011 Chia-I Wu <olv@lunarg.com> st/egl: add premultiplied alpha support to wayland

Return true for NATIVE_PARAM_PREMULTIPLIED_ALPHA when all formats with
alpha support premultiplied alpha. Currently, it means when argb32 and
argb32_pre are both supported.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
95b445699d7f049116ee0927387a958a9933766b 07-Sep-2011 Chia-I Wu <olv@lunarg.com> st/egl: correctly return configs under wayland

When wl_drm is avaiable and enabled, handle "format" events and return
configs for the supported formats. Otherwise, assume all formats of
wl_shm are supported.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
08e1076fd2d3f6fb879dd2529e7d035d6a399da2 02-Sep-2011 Chia-I Wu <olv@lunarg.com> st/egl: add native_present_control

Replace the parameters of native_surface::present by a struct,
native_present_control. Using a struct allows us to add more control
options without having to update each backend every time.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
287278352ea26947f8d304458c10bf0388beebb5 07-Sep-2011 Chia-I Wu <olv@lunarg.com> st/egl: use new wl_callback mechanism in wayland

Follow the changes in 6602bda23ba6c4351eb7f04d34803103a68ac2db.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
a0ad339915d8b5fdbebe82678fc81cbf1ec6682b 25-Jun-2011 Chia-I Wu <olv@lunarg.com> st/egl: add get_pixmap_format callback to native_display

And use it for EGL_MATCH_NATIVE_PIXMAP. Remove is_pixmap_supported
meanwhile.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
7c4e9dcdceec1112c91206619fe8b0885be99a79 25-Jun-2011 Chia-I Wu <olv@lunarg.com> st/egl: clean up eglCopyBuffers

Add copy_to_pixmap method to native_display and use it for
eglCopyBuffers.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
73df31eedd0f33c8a9907855cb247c8f87964c48 25-Jun-2011 Chia-I Wu <olv@lunarg.com> st/egl: reorganize backend initialization

Remove set_event_handler() and pass the event handler with
native_get_XXX_platform(). Add init_screen() so that the pipe screen is
created later. This way we don't need to pass user_data to
create_display().
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
87c3bb65bbd4fdf868d57c2c58f3330efa36b75b 23-Jun-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl/wayland: Take resize parameters only if size changes

This matches what we do in egl_dri2, and clients should
behave like this anyway.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
a23bf646bdeb72381e7f2bc784d47748cdd7d1ce 11-Jun-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/eglwayland: Add support for EGL_DEFAULT_DISPLAY
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
ca79036fe8170a87fe8118fb812320c2536b6d46 20-May-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl/wayland: Deal with wayland visual changes

Since wayland 4bde293ff8109d55eeaee8732f5a6ee0c8cd4bd9 we cant
lookup visuals, as we dont receive the visual token events.

The format for pixmap-images thus has to default to argb for now.
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
d72e7f0dd95fdf28cf64c0b5b6d42c16f087008a 23-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: Add wayland shm softpipe support
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
34fd282b270dbaf0ce87e342b3183eb3a4bf4a44 23-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: Generalize wayland backend a bit
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
b1a91722773152ea96de79d2b446ae488561bb0c 07-Mar-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland: Update to buffer.damage addition
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
400a99a679dfcf671d6d35cc4256d86cad7f9e93 21-Apr-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: Update to wayland protocol,egl changes
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
f05751aa2af1a8ec83c2d110385aab1b7e735238 16-Mar-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl/wayland: Update to per-surface frame events
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
6b369c4c7cd8a52f99bbff2a57fb316b33a87495 21-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> egl: Add EGL_WL_bind_wayland_display
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
d1e4117355f1db6ff87c837df6212bf6168e98a0 24-Feb-2011 Thomas Hellstrom <thellstrom@vmware.com> st/egl: Move the copy context to the native display structure

This makes it usable also for native helpers.
Also add inline functions to access the context and to
uninit the native display structure.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
9f213f6a4af9d6b3663bd2fbd371fbec9f869c75 11-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl wayland: Sync front buffer release
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
c79a5a706727c40a856e36c043da608c825390a2 09-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl wayland: Set color_format according to wl_visual
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c
381ea0d67a6d84a34d23571c49bbf4339ffda364 04-Feb-2011 Benjamin Franzke <benjaminfranzke@googlemail.com> st/egl: Add wayland platform
/external/mesa3d/src/gallium/state_trackers/egl/wayland/native_wayland.c