Re: [PATCH xserver] dri3: Fix DRI3.2 support for drivers other than modesetting-ddx.

2018-04-24 Thread Mike Lothian
On Tue, 24 Apr 2018 at 09:17 Mario Kleiner wrote: > Both xf86-video-intel and xf86-video-nouveau cause OpenGL > clients to fail when used with DRI3 on server 1.20 with Mesa 18.1. > > Reason is that the servers DRI3 version is now unconditionally > reported as DRI3 1.2

Re: [PATCH xserver] dri3: Clamp to 1.0 if not all screens support 1.2

2018-04-24 Thread Adam Jackson
On Tue, 2018-04-24 at 21:24 +0100, Daniel Stone wrote: > Hi Adam, > > On 24 April 2018 at 21:08, Adam Jackson wrote: > > +for (int i = 0; i < screenInfo.numScreens; i++) { > > +if (!dri3_screen_can_one_point_two(screenInfo.screens[i])) { > > +

Re: [PATCH xserver] dri3: Don't call vfuncs on old DRI3 screens

2018-04-24 Thread Adam Jackson
On Tue, 2018-04-24 at 21:27 +0100, Daniel Stone wrote: > Only call the get_supported_modifiers vfunc if the DRI3 screen struct is > sufficiently new. > > Signed-off-by: Daniel Stone Merged, thanks: remote: I: patch #218627 updated using rev

Re: [PATCH xserver 4/3] fixup! xwayland streams buglets

2018-04-24 Thread Adam Jackson
On Tue, 2018-04-24 at 15:22 -0400, Adam Jackson wrote: > - Properly disable glamor if streams setup fails > - Disable window-mode present if streams is in use > > Signed-off-by: Adam Jackson Fixed up the bits Daniel pointed out in 1/3, squashed this and 5/3 into 3/3, and

[PATCH xserver] dri3: Don't call vfuncs on old DRI3 screens

2018-04-24 Thread Daniel Stone
Only call the get_supported_modifiers vfunc if the DRI3 screen struct is sufficiently new. Signed-off-by: Daniel Stone --- dri3/dri3_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri3/dri3_screen.c b/dri3/dri3_screen.c index

Re: [PATCH xserver] dri3: Clamp to 1.0 if not all screens support 1.2

2018-04-24 Thread Daniel Stone
Hi Adam, On 24 April 2018 at 21:08, Adam Jackson wrote: > +for (int i = 0; i < screenInfo.numScreens; i++) { > +if (!dri3_screen_can_one_point_two(screenInfo.screens[i])) { > +rep.minorVersion = 0; > +break; > +} > +} > + > +

Re: [PATCH xserver] dri3: Fix DRI3.2 support for drivers other than modesetting-ddx.

2018-04-24 Thread Daniel Stone
Hi Adam, On 24 April 2018 at 20:52, Adam Jackson wrote: > On Tue, 2018-04-24 at 11:42 +0100, Daniel Stone wrote: >> On 24 April 2018 at 09:17, Mario Kleiner wrote: >> > Both xf86-video-intel and xf86-video-nouveau cause OpenGL >> > clients to fail when

[PATCH xserver] dri3: Clamp to 1.0 if not all screens support 1.2

2018-04-24 Thread Adam Jackson
Signed-off-by: Adam Jackson --- dri3/dri3_request.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c index 452b08a876..8b35036110 100644 --- a/dri3/dri3_request.c +++ b/dri3/dri3_request.c @@ -32,6 +32,17

[PATCH xserver 5/3] fixup! build fix for autotools

2018-04-24 Thread Adam Jackson
Have to do AM_CONDITIONAL at global scope because autoconf is stupid and terrible. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a18170b2fc..3f9752572e 100644 --- a/configure.ac +++ b/configure.ac @@ -2407,7 +2407,6 @@ if

Re: [PATCH xserver] dri3: Fix DRI3.2 support for drivers other than modesetting-ddx.

2018-04-24 Thread Adam Jackson
On Tue, 2018-04-24 at 11:42 +0100, Daniel Stone wrote: > Hi Mario, > > On 24 April 2018 at 09:17, Mario Kleiner wrote: > > Both xf86-video-intel and xf86-video-nouveau cause OpenGL > > clients to fail when used with DRI3 on server 1.20 with Mesa 18.1. > > > > Reason

[PATCH xserver 4/3] fixup! xwayland streams buglets

2018-04-24 Thread Adam Jackson
- Properly disable glamor if streams setup fails - Disable window-mode present if streams is in use Signed-off-by: Adam Jackson --- hw/xwayland/xwayland-present.c | 9 + hw/xwayland/xwayland.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git

Re: [PATCH xserver] vfb: Fix man page in re depth

2018-04-24 Thread Adam Jackson
On Mon, 2018-04-23 at 15:08 -0700, Alan Coopersmith wrote: > > .TP 8 > > Xvfb :1 -screen 1 1600x1200x16 > > The server will listen for connections as server number 1, will have the > > Should that say "screen 0 will have..." Yes it should. Fixed and merged, thanks: remote: E: failed to find

Re: [PATCH xserver 1/3] xwayland: Decouple GBM from glamor

2018-04-24 Thread Lyude Paul
On Tue, 2018-04-24 at 10:35 +0100, Daniel Stone wrote: > Hi, > > On 20 April 2018 at 19:38, Adam Jackson wrote: > > 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

Re: [PATCH xserver] dri3: Fix DRI3.2 support for drivers other than modesetting-ddx.

2018-04-24 Thread Daniel Stone
Hi Mario, On 24 April 2018 at 09:17, Mario Kleiner wrote: > Both xf86-video-intel and xf86-video-nouveau cause OpenGL > clients to fail when used with DRI3 on server 1.20 with Mesa 18.1. > > Reason is that the servers DRI3 version is now unconditionally > reported as

Re: [PATCH xserver 3/3] xwayland: Add glamor egl_backend for EGLStreams

2018-04-24 Thread Daniel Stone
Hi, On 20 April 2018 at 19:38, Adam Jackson wrote: > 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

Re: [PATCH xserver 2/3] xwayland: Add xwayland-config.h

2018-04-24 Thread Daniel Stone
On 20 April 2018 at 19:38, Adam Jackson wrote: > Just a small autogenerated header that will soon contain more then just > one macro. > > Signed-off-by: Lyude Paul Reviewed-by: Daniel Stone

Re: [PATCH xserver 1/3] xwayland: Decouple GBM from glamor

2018-04-24 Thread Daniel Stone
Hi, On 20 April 2018 at 19:38, Adam Jackson wrote: > 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

[PATCH xrandr] xrandr: Consider transform when placing monitors relatively to each other.

2018-04-24 Thread Michal Srb
For example: xrandr --output HDMI-1 --scale 0.5 --left-of HDMI-2 Will no create any gap between HDMI-1 and HDMI-2. --- xrandr.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/xrandr.c b/xrandr.c index 7f1e867..21e121a 100644 --- a/xrandr.c +++ b/xrandr.c @@

[PATCH xserver] dri3: Fix DRI3.2 support for drivers other than modesetting-ddx.

2018-04-24 Thread Mario Kleiner
Both xf86-video-intel and xf86-video-nouveau cause OpenGL clients to fail when used with DRI3 on server 1.20 with Mesa 18.1. Reason is that the servers DRI3 version is now unconditionally reported as DRI3 1.2 to 1.2 capable clients. This causes clients using Mesa 18.1 to use the new DRI 3.2

Re: [PATCH] Xwayland: Don't notify RR of an unchanged size

2018-04-24 Thread Preston Carpenter
On Sun, Apr 22, 2018 at 2:18 PM, Matt Turner wrote: > > > Do you mind using your real name? Sure, here is the patch again with my real name. From: Preston Carpenter On Wayland compositors such as Sway and Way Cooler Xwayland windows will be