Re: How to support mixed DPI in Xwayland?

2017-09-07 Thread Adam Jackson
On Thu, 2017-09-07 at 12:17 -0400, Olivier Fourdan wrote: > But we dismissed that solution, having different X11 screens is not very > practical, mutter does not support multiple screens for a start, and > things like drag'n drop, copy/paste, root properties, etc. all would > become quite

Re: [PATCH libpciaccess] linux: support 32 bit PCI domains

2017-09-07 Thread Adam Jackson
On Fri, 2017-08-25 at 18:03 -0700, Alex Goins wrote: > On Wed, 12 Jul 2017, Adam Jackson wrote: > > As far as xserver is concerned, it's not an ABI break. We never embed a > > struct pci_device in any ABI types, only pointers to them, and they're > > always allocated by the library anyway so

[PATCH libpciaccess] linux: support 32 bit PCI domains (v2)

2017-09-07 Thread Adam Jackson
From: Stephen Hemminger The PCI domain may be larger than 16 bits on Microsoft Azure and other virtual environments. PCI busses reported by ACPI are limited to 16 bits, but in Azure the domain value for pass through devices is intentionally larger than 16 bits to

Re: [PATCH 00/27] edid-decode: fixes and new features and checks

2017-09-07 Thread Hans Verkuil
On 09/07/2017 06:47 PM, Adam Jackson wrote: > On Thu, 2017-09-07 at 08:53 +0200, Hans Verkuil wrote: > >> Just wondering who will pick this up and (hopefully) merge it and >> when? >> I have more edid-decode patches pending and I was wondering whether I >> should post those new patches only, or

[PATCH 5/8] edid-decode: add DCI-P3 support in colorimetry block

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil This bit was added in CTA-861-G. Signed-off-by: Hans Verkuil --- edid-decode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edid-decode.c b/edid-decode.c index caf35907..d0da48e2 100644 --- a/edid-decode.c +++

[PATCH 6/8] edid-decode: support HLG, decode luminance values

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil Add support for the new CTA-861-G Hybrid Log-Gamma transfer function. Also decode the luminance values in the static metadata block to cd/m^2 values. Signed-off-by: Hans Verkuil --- Makefile | 2 +- edid-decode.c | 15

[PATCH 4/8] edid-decode: add new CTA-861-G VIC codes

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil The CTA-861-G standard (successor to CEA-861-F) adds new VIC codes. Signed-off-by: Hans Verkuil --- edid-decode.c | 93 +++ 1 file changed, 81 insertions(+), 12

[PATCH 0/8] edid-decode: support new blocks, fix bad bit tests

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil This second round of patches adds support for new post-CEA-861-F EDID additions. The last patch fixes three badly broken bit-tests. Arnaud Vrac caught one of those three as well: https://patchwork.freedesktop.org/patch/174655/ But this patch fixes

[PATCH 2/8] edid-decode: update Speaker Allocation data block

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil More bits are now in use, implement support for those. Signed-off-by: Hans Verkuil --- edid-decode.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/edid-decode.c

[PATCH 3/8] edid-decode: add support for Room/Speaker data blocks

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil Support the Room Configuration Data Block and the Speaker Location Data Block. Signed-off-by: Hans Verkuil --- edid-decode.c | 79 --- 1 file changed, 76 insertions(+), 3

[PATCH 8/8] edid-decode: fix broken bit tests

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil 'if (x[0] >> i)' is not how you test if bit i is set. 'if (x[0] & (1 << i))' works a lot better! Signed-off-by: Hans Verkuil --- edid-decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 1/8] edid-decode: update Audio Block with CEA-861.2

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil Add support for extended audio formats and report the format specific information. Signed-off-by: Hans Verkuil --- edid-decode.c | 45 + 1 file changed, 41 insertions(+), 4

[PATCH 7/8] edid-decode: add HDR Dynamic Metadata Data Block

2017-09-07 Thread Hans Verkuil
From: Hans Verkuil Support this CTA-861-G data block. Signed-off-by: Hans Verkuil --- edid-decode.c | 33 + 1 file changed, 33 insertions(+) diff --git a/edid-decode.c b/edid-decode.c index effcf777..cdba099d

[PATCH libICE 2/2] iceauth.c: FIX warning: unused variable 'ret' in 'arc4random_buf'

2017-09-07 Thread walter harms
commit ff5e59f32255913bb1cdf51441b98c9107ae165b left ret outside the #if causing a gcc warnung: In function 'arc4random_buf': iceauth.c:89:13: warning: unused variable 'ret' [-Wunused-variable] fixed by moving #if 1 up Signed-off-by: Walter Harms --- src/iceauth.c | 2 +-

Re: [PATCH 00/27] edid-decode: fixes and new features and checks

2017-09-07 Thread Adam Jackson
On Thu, 2017-09-07 at 08:53 +0200, Hans Verkuil wrote: > Just wondering who will pick this up and (hopefully) merge it and > when? > I have more edid-decode patches pending and I was wondering whether I > should post those new patches only, or wait until this set is merged > (my preference).

[PATCH libICE 1/2] connect.c: FIX 'iceConn' shadows a previous local, [-Wshadow]

2017-09-07 Thread walter harms
In function 'IceOpenConnection': gcc give the following warning: connect.c:106:11: warning: declaration of 'iceConn' shadows a previous local [-Wshadow] fixed by renaming 2. iceConn to iConn (and all its uses) Signed-off-by: Walter Harms --- src/connect.c | 34

How to support mixed DPI in Xwayland?

2017-09-07 Thread Olivier Fourdan
Hi all, For quite some time now [1] we've been trying to figure out a way to have mixed DPI, both non-HiDPI capable X11 clients (e.g. xterm) and HiDPI aware X11 clients coexists on Xwayland. Typically, the compositor would scale the surface for xterm when on a HiDPI monitor, but would leave

[PATCH xserver 2/2] xwayland: apply output scale to monitor resolution

2017-09-07 Thread Olivier Fourdan
Weston scales Xwayland surfaces by the output scale, meaning that an X11 client mapping a window on size (W x H) will actually be: (W x size) x (H x size) However, Xwayland ignores the output scale factor when advertising the monitor size and resolution meaning that an X11 client trying to

[PATCH xserver 0/2] Add xdg-output support

2017-09-07 Thread Olivier Fourdan
Hi, This is actually the 3rd iteration of the xdg-output support patch for Xwayland. Changes in this iteration include obvious bug fixes (like binding to the correct interface actually helps...) and other more important fixes like waiting for both wl_output and xdg-output done events before

[PATCH v3 xserver 1/2] xwayland: Add optional xdg-output support

2017-09-07 Thread Olivier Fourdan
The xdg-output protocol aims at describing outputs in way which is more in line with the concept of an output on desktop oriented systems. For now it just features the position and logical size which describe the output position and size in the global compositor space. This is however much

Re: [PATCH libICE 1/7] Added visibility annotations.

2017-09-07 Thread Emil Velikov
On 9 May 2016 at 17:52, Adam Jackson wrote: > On Sun, 2016-05-08 at 09:19 +0100, Emil Velikov wrote: >> From: Yury Gribov >> >> This allow us to be good citizen by hiding the private symbols and >> reducing the overall size of the binary. >> >> Note:

Re: [PATCH libICE 0/3] Fix memory access

2017-09-07 Thread Emil Velikov
On 7 July 2017 at 11:23, Eric Engestrom wrote: > Fix a few free() of static strings and strncpy() of NULL. > > BTW, there hasn't been a release in quite a few years, but some of the > fixes might be interesting, especially ff5e59f322 "Use getentropy() if >

Re: [PATCH 00/27] edid-decode: fixes and new features and checks

2017-09-07 Thread Hans Verkuil
Hi all, On 08/31/2017 01:40 PM, Hans Verkuil wrote: > From: Hans Verkuil > > This edid-decode patch series has been sitting in my git repo for > way too long, so it is time to upstream this. > > We (that is Cisco Systems Norway) have been using this to verify > both our