mesa/src/egl
Olivier Fourdan 55af17ffed wayland/egl: Resize EGL surface on update buffer for swrast
After commit a9fb331ea ("wayland/egl: update surface size on window
resize"), the surface size is updated as soon as the resize is done, and
`update_buffers()` would resize only if the surface size differs from
the attached size.

However, in the case of swrast, there is no resize callback and the
attached size is updated in `dri2_wl_swrast_commit_backbuffer()` prior
to the `swrast_update_buffers()` so the attached size is always up to
date when it reaches `swrast_update_buffers()` and the surface is never
resized.

This can be observed with "totem" using the GDK backend on Wayland (the
default) when running on software rendering:

  $ LIBGL_ALWAYS_SOFTWARE=true CLUTTER_BACKEND=gdk totem

Resizing the window would leave the EGL surface size unchanged.

To avoid the issue, partially revert the part of commit a9fb331ea for
`swrast_update_buffers()` and resize on the win size and not the
attached size.

Fixes: a9fb331ea - wayland/egl: update surface size on window resize
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
CC: Daniel Stone <daniel@fooishbar.org>
CC: Juan A. Suarez Romero <jasuarez@igalia.com>
CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
2018-11-06 13:59:38 +01:00
..
drivers wayland/egl: Resize EGL surface on update buffer for swrast 2018-11-06 13:59:38 +01:00
generate egl: add EGL_EXT_device_base entrypoints 2018-11-05 20:53:05 +00:00
main egl/glvnd: correctly report errors when vendor cannot be found 2018-11-05 20:53:05 +00:00
wayland autoconf: stop exporting internal wayland details 2018-08-07 17:23:17 +01:00
.gitignore egl: add gitignore 2017-04-22 00:42:38 +01:00
Android.mk egl: drop unused _EGL_BUILT_IN_DRIVER_DRI2 2018-08-23 14:47:59 +01: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 configure: allow building with python3 2018-10-31 19:15:50 +00:00
Makefile.sources egl: add base EGL_EXT_device_base implementation 2018-11-01 00:05:43 +00:00
meson.build meson: egl: group dri2 bits separately from haiku 2018-11-01 00:05:43 +00:00
SConscript egl: Use the canonical drm-uapi fourcc header to avoid local defines. 2018-07-18 10:37:54 -07:00