xserver/hw/xwayland
Michel Dänzer 87ca1bdf69 xwayland: Do flush GPU work in xwl_present_flush
The Present code sends the idle notification event to the client after
xwl_present_flush returns. If we don't flush our GPU work here, the
client may race to draw another frame to the same buffer, so we may end
up copying (parts of) that new frame instead of the one we meant to.

Fixes https://gitlab.freedesktop.org/xorg/xserver/issues/835

Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
(Cherry picked from commit 2a2234ad1a)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2019-12-18 12:24:11 -08:00
..
.gitignore glamor: Implement PixmapFromBuffers and BuffersFromPixmap 2018-03-05 13:27:49 -05:00
Makefile.am xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
drm.xml wayland: Sync drm.xml with Mesa 2017-07-05 10:13:04 -04:00
meson.build xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
xwayland-cursor.c xwayland: Reset scheduled frames after hiding tablet cursor 2019-06-06 11:48:13 +02:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-08 12:32:16 -05:00
xwayland-glamor-eglstream.c glamor/xwayland: Define EGL_NO_X11 2019-11-05 08:12:03 -08:00
xwayland-glamor-gbm.c glamor/xwayland: Define EGL_NO_X11 2019-11-05 08:12:03 -08:00
xwayland-glamor-xv.c xwayland: use the lowercase xnf.*alloc API 2017-09-06 08:56:39 +10:00
xwayland-glamor.c glamor/xwayland: Define EGL_NO_X11 2019-11-05 08:12:03 -08:00
xwayland-input.c xwayland: Avoid a crash on pointer enter with a grab 2019-06-05 15:12:31 +02:00
xwayland-output.c xwayland: Expand the RANDR screen size limits 2019-07-26 19:44:03 +00:00
xwayland-present.c xwayland: Do flush GPU work in xwl_present_flush 2019-12-18 12:24:11 -08:00
xwayland-shm.c xserver: Check the right HAVE_*_CONFIG_H. 2017-03-23 13:17:39 -04:00
xwayland-vidmode.c xwayland: Pretend we support viewport in vidmode 2016-03-28 14:10:59 -04:00
xwayland.c xwayland: Handle the case of windows being realized before redirection 2019-09-10 14:51:00 +02:00
xwayland.h xwayland: Handle the case of windows being realized before redirection 2019-09-10 14:51:00 +02:00