mesa/src/egl
Carlos Garnacho 30a01cd923 wayland/egl: Ensure EGL surface is resized on DRI update_buffers()
Fullscreening and unfullscreening a totem window while playing a video
sometimes results in the video subsurface not changing size along. This
is also reproducible with epiphany.

If a surface gets resized while we have an active back buffer for it, the
resized dimensions won't get neither immediately applied on the resize
callback, nor correctly synchronized on update_buffers(), as the
(now stale) surface size and currently attached buffer size still do match.

There's actually 2 things to synchronize here, first the surface query
size might not be updated yet to the wl_egl_window's (i.e. resize_callback
happened while there is a back buffer), and second the wayland buffers
would need dropping if new surface size differs with the currently attached
buffer. These are done in separate steps now.

https://bugzilla.redhat.com/show_bug.cgi?id=1650929
https://bugs.freedesktop.org/show_bug.cgi?id=109594

Fixes: a9fb331ea7 ("wayland/egl: update surface size on window resize")
Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Tested-by: Bastien Nocera <hadess@hadess.net>
Tested-by: Denys Kostin <denys.kostin@globallogic.com>
2019-02-20 12:04:33 +01:00
..
drivers wayland/egl: Ensure EGL surface is resized on DRI update_buffers() 2019-02-20 12:04:33 +01:00
generate mapi: move genCommon.py to src/mapi/new 2019-01-24 18:13:25 +00:00
main egl: fix KHR_partial_update without EXT_buffer_age 2019-02-12 19:14:34 +00:00
wayland egl/wayland-drm: Only announce formats via wl_drm which the driver supports. 2019-01-29 20:03:20 +00:00
.gitignore egl: add gitignore 2017-04-22 00:42:38 +01:00
Android.mk drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00
egl-entrypoint-check egl: use the LC_ALL hammer instead of LANG 2018-11-01 17:25:08 +00:00
egl-symbols-check egl: Use correct shared libraries suffix on macOS. 2018-10-11 11:30:00 -07:00
Makefile.am drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00
Makefile.sources egl: add base EGL_EXT_device_base implementation 2018-11-01 00:05:43 +00:00
meson.build drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00
SConscript drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00