Re: Making Composite better for interactive apps

2018-02-07 Thread Keith Packard
Giuseppe Bilotta writes: > Still it would make more sense to have the CM tell the server “I'm > going to prepare the next frame, so stop the world” than having the > server tel the CM “I stopped the world to give you some time to > prepare the next frame”. Maybe it

[RFC 3/3] xwayland: Add glamor egl_backend for EGLStreams

2018-02-07 Thread Lyude Paul
This adds initial support for displaying Xwayland applications through the use of EGLStreams and nvidia's custom wayland protocol by adding another egl_backend driver. This also adds some additional egl_backend hooks that are required to make things work properly. EGLStreams work a lot

[RFC 2/3] xwayland: Add xwayland-config.h

2018-02-07 Thread Lyude Paul
Just a small autogenerated header that will soon contain more then just one macro. Signed-off-by: Lyude Paul --- configure.ac | 7 +++ hw/xwayland/xwayland.c | 10 ++ hw/xwayland/xwayland.h | 2 +- include/meson.build

[RFC 1/3] xwayland: Decouple GBM from glamor

2018-02-07 Thread Lyude Paul
This takes all of the gbm related code in wayland-glamor.c and moves it into it's own EGL backend for Xwayland, xwayland-glamor-gbm.c. Additionally, we add the egl_backend struct into xwl_screen in order to provide hooks for alternative EGL backends such as nvidia's EGLStreams. Signed-off-by:

[RFC 0/3] xwayland: Add support for eglstreams

2018-02-07 Thread Lyude Paul
The day has finally come. "Yay". As many of you are aware, nvidia currently only has makeshift support for Wayland using the EGLStream protocol. Unfortunately, nvidia makes up a huge amount of consumer machine's GPUs so until they get proper wayland support, we have to support this in X. This

Re: Making Composite better for interactive apps

2018-02-07 Thread Giuseppe Bilotta
On Tue, Feb 6, 2018 at 11:03 PM, Keith Packard wrote: >> Why would there be a need for the server to send an event to the CM? > > My thinking is that the X server would lock the window system from > changes and then deliver an event to the Compositing Manager. Otherwise, > the

Re: [PATCH 14/19] present: Add window flip mode

2018-02-07 Thread Keith Packard
Michel Dänzer writes: > Keith agrees that no unflip is necessary at all for per-window flips. > Just set the flip pixmap as the window pixmap when flipping, and be done > with it. Yup. Make sure it's set for the whole tree and things should 'just work'. -- -keith

Re: [PATCH xserver] glx: Only assign 8 bpc fbconfigs for composite visuals.

2018-02-07 Thread Mario Kleiner
On 02/06/2018 08:04 PM, Adam Jackson wrote: On Mon, 2018-02-05 at 11:25 +0100, Thomas Hellstrom wrote: On 02/05/2018 11:20 AM, Mario Kleiner wrote: Commit 91c42093b248 ("glx: Duplicate relevant fbconfigs for compositing visuals") adds many new depth 32 fbconfigs as composite visuals. On a

[PATCH xserver] Xephyr: Require xcb-shm version 1.9.3 or newer

2018-02-07 Thread Alexander Volkov
It's needed for FD-passing. Signed-off-by: Alexander Volkov --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 98b8ea2ed..9e498e662 100644 --- a/configure.ac +++ b/configure.ac @@ -2305,7 +2305,7 @@

Re: [PATCH 14/19] present: Add window flip mode

2018-02-07 Thread Michel Dänzer
On 2018-02-07 12:35 AM, Roman Gilg wrote: > On Fri, Feb 2, 2018 at 5:11 PM, Michel Dänzer wrote: >> Taking a step back, do we even need to keep around the original pixmap >> and unflip to it at all? I had a chat on IRC about this with Keith a >> while ago, see the attached log