xserver/hw/xwayland
Olivier Fourdan c641d10ef0 xwayland: simplify xwl_glamor_pixmap_get_wl_buffer()
When retrieving the Wayland buffer from a pixmap, if the buffer already
exists, the GBM backend will return that existing buffer.

However, as seen with the Present issues, if the call had previously
passed a wrong size, that buffer will remain at the wrong size for as
long as the buffer exists, which is error prone.

Considering that the width/height passed to get_wl_buffer() is always the
actual pixmap  drawable size, and considering that the EGLStream backend
makes no use of the size either, there is really no point in passing the
width/height around.

Simplify the xwl_glamor_pixmap_get_wl_buffer() and EGL backends API by
removing the pixmap size, and use the drawable size instead.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
(cherry picked from commit 792359057b)
2018-08-01 11:01:37 -04: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: Fix non-argb cursor conversion 2017-12-06 10:15:57 -05:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-08 12:32:16 -05:00
xwayland-glamor-eglstream.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-08-01 11:01:37 -04:00
xwayland-glamor-gbm.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-08-01 11:01:37 -04:00
xwayland-glamor-xv.c xwayland: use the lowercase xnf.*alloc API 2017-09-06 08:56:39 +10:00
xwayland-glamor.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-08-01 11:01:37 -04:00
xwayland-input.c xwayland: avoid using freed xwl_window on unrealize 2018-04-18 10:47:15 -04:00
xwayland-output.c xwayland: make xwl_output_get_xdg_output() static 2018-08-01 11:01:37 -04:00
xwayland-present.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-08-01 11:01:37 -04: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: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-08-01 11:01:37 -04:00
xwayland.h xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-08-01 11:01:37 -04:00