Re: [PATCH xserver 1/3] xwayland: Add hook to check wl interface for glamor

2018-05-30 Thread Lyude Paul
On Wed, 2018-05-30 at 11:30 +0200, Olivier Fourdan wrote: > Add an optional egl_backend callback to check that the required Wayland > interfaces are available. > > Signed-off-by: Olivier Fourdan > --- > hw/xwayland/xwayland-glamor.c | 9 + > hw/xwayland/xwayland.c| 4 > hw/x

Re: [PATCH v2 xserver] Xwayland: Enable EGL backend automatically

2018-05-30 Thread Lyude Paul
Reviewed-by: Lyude Paul On Wed, 2018-05-30 at 11:19 +0200, Olivier Fourdan wrote: > Check for "EGL_MESA_platform_gbm" in the avaiable EGL extensions, and > try automatically EGL stream if not present. > > The command line options “-eglstream” is kept for compatibility to force > the use of the E

[PATCH xserver 3/3] xwayland: Check required interfaces for EGLstreams

2018-05-30 Thread Olivier Fourdan
Use the newly added “has_wl_interface” hook to check availability of “wl_eglstream_display” and “wl_eglstream_controller” interfaces prior to enable glamor with EGL Streams backend. Signed-off-by: Olivier Fourdan --- hw/xwayland/xwayland-glamor-eglstream.c | 21 + 1 file chan

[PATCH xserver 1/3] xwayland: Add hook to check wl interface for glamor

2018-05-30 Thread Olivier Fourdan
Add an optional egl_backend callback to check that the required Wayland interfaces are available. Signed-off-by: Olivier Fourdan --- hw/xwayland/xwayland-glamor.c | 9 + hw/xwayland/xwayland.c| 4 hw/xwayland/xwayland.h| 7 +++ 3 files changed, 20 insertions(+)

[PATCH xserver 2/3] xwayland: Check required interfaces for GBM backend

2018-05-30 Thread Olivier Fourdan
Use the newly added “has_wl_interface” hook to check availability of “wl_drm” interface prior to enable glamor with GBM backend. Signed-off-by: Olivier Fourdan --- hw/xwayland/xwayland-glamor-gbm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/hw/xwayland/xwayland-glamor-gb

Re: [PATCH xserver] Xwayland: Enable EGL backend automatically

2018-05-30 Thread Olivier Fourdan
Hi Lyude, On Tue, May 29, 2018 at 7:54 PM, Lyude Paul wrote: > On Mon, 2018-05-28 at 09:11 +0200, Olivier Fourdan wrote: > > [...] > I agree that we need to check for the protocol availability of course, yet > it doesn't mean we should ditch this patch. > > Imagine (I say imagine, I do not know

[PATCH v2 xserver] Xwayland: Enable EGL backend automatically

2018-05-30 Thread Olivier Fourdan
Check for "EGL_MESA_platform_gbm" in the avaiable EGL extensions, and try automatically EGL stream if not present. The command line options “-eglstream” is kept for compatibility to force the use of the EGL streams backend. Suggested-by: Ray Strode Signed-off-by: Olivier Fourdan --- v2: Use ep