Re: [PATCH xserver 1/3] glamor: Scissor rectangle drawing to the bounds of the rects.

2017-08-01 Thread Michel Dänzer
On 02/08/17 05:59 AM, Eric Anholt wrote: > Scissors provide a critical hint to tiled renderers as to what tiles > need to be load/stored because they could be modified by the > rendering. > > The bounds calculation here is limited to when we have a small number > of rects (large enough to cover ro

Re: [PATCH xserver 3/3] glamor: Scissor Render composite operations to the bounds of the drawing.

2017-08-01 Thread Keith Packard
Eric Anholt writes: > Unlike the previous two fixes, this one introduces new GL calls and > statechanges of the scissor. However, given that our Render drawing > already does CPU side transformation and inefficient box upload, this > shouldn't be a limiting factor for Render acceleration. > > Su

Re: [PATCH xserver 1/3] glamor: Scissor rectangle drawing to the bounds of the rects.

2017-08-01 Thread Keith Packard
Eric Anholt writes: > Scissors provide a critical hint to tiled renderers as to what tiles > need to be load/stored because they could be modified by the > rendering. > > The bounds calculation here is limited to when we have a small number > of rects (large enough to cover rounded window corners

[PATCH xserver 3/3] glamor: Scissor Render composite operations to the bounds of the drawing.

2017-08-01 Thread Eric Anholt
Unlike the previous two fixes, this one introduces new GL calls and statechanges of the scissor. However, given that our Render drawing already does CPU side transformation and inefficient box upload, this shouldn't be a limiting factor for Render acceleration. Surprisingly, it improves x11perf -

[PATCH xserver 2/3] glamor: Scissor CopyArea to the bounds of the drawing.

2017-08-01 Thread Eric Anholt
Like the previous fix to rectangles, this reduces the area drawn on tiled renderers by letting the CPU-side tile setup know what tiles might be drawn at all. Surprisingly, it improves x11perf -copypixwin1 -repeat 1 -reps 1 on i965 by 2.93185% +/- 1.5561% (n=90). Signed-off-by: Eric Anholt --

[PATCH xserver 1/3] glamor: Scissor rectangle drawing to the bounds of the rects.

2017-08-01 Thread Eric Anholt
Scissors provide a critical hint to tiled renderers as to what tiles need to be load/stored because they could be modified by the rendering. The bounds calculation here is limited to when we have a small number of rects (large enough to cover rounded window corners, but probably not xeyes) to avoi

[PATCH xserver] meson: Fix xwayland build since xwayland-keyboard-grab.

2017-08-01 Thread Eric Anholt
The version detect was erroring out with 1.9 protos installed, and we weren't building the new code. Signed-off-by: Eric Anholt --- hw/xwayland/meson.build | 3 +++ meson.build | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/xwayland/meson.build b/hw/xwayland

Second Feedback request for my GSoC project to improve Present support in Xwayland

2017-08-01 Thread Roman Gilg
According to the feedback I received on my first mail (see: https://lists.x.org/archives/xorg-devel/2017-July/054136.html) I reworked huge parts of my code for enabling Present pixmap flips in Xwayland. The current code now provides the following functionality: Summary: (1) Dea

Re: [PATCH v3 xserver] xwayland: Add grab protocol support

2017-08-01 Thread Peter Hutterer
On Wed, Jul 12, 2017 at 11:51:08AM +0200, Olivier Fourdan wrote: > The keyboard grabbing protocol for Xwayland is included in > wayland-protocol 1.9. > > Update the wayland-protocol required version in both configure and meson > builds and add support for this new protocol in Xwayland. > > Signed

Re: [PATCH RFC xserver] xwayland: Add xdg-output support

2017-08-01 Thread Jonas Ådahl
On Tue, Aug 01, 2017 at 10:26:54AM +0200, Olivier Fourdan wrote: > This was added in wayland-protocols 1.10. > > Signed-off-by: Olivier Fourdan > --- > Note: This has not been tested with an actual compositor supporting > xdg-output > > configure.ac | 2 +- > hw/xwayland/Ma

[PATCH] Xext: Fix memory leaks in hashtable.

2017-08-01 Thread msrb
From: Michal Srb Do not forget to delete key and value of every item and the hashtable itself. --- Xext/hashtable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Xext/hashtable.c b/Xext/hashtable.c index 41b2e0013..93d1a2aec 100644 --- a/Xext/hashtable.c +++ b/Xext/hashtable.c @@ -77,10

[PATCH RFC xserver] xwayland: Add xdg-output support

2017-08-01 Thread Olivier Fourdan
This was added in wayland-protocols 1.10. Signed-off-by: Olivier Fourdan --- Note: This has not been tested with an actual compositor supporting xdg-output configure.ac | 2 +- hw/xwayland/Makefile.am | 9 +- hw/xwayland/xwayland-output.c | 71