Re: [PATCH weston] xwm: fix intermittent half-drawn decorations problem

2017-01-17 Thread Daniel Stone
problem in my > experiments. > > Signed-off-by: Pekka Paalanen Oh dear. Reviewed-by: Daniel Stone Cheers, Daniel ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH weston v2 00/24] Initial Xwayland window positioning, with XWM reordering

2017-01-17 Thread Daniel Stone
('add set_toplevel_with_position to internal API' .. 'implement set_xwayland_position') seem safe to push and are: Reviewed-by: Daniel Stone 'react to geometry changes' makes me a little nervous; is there a way you can see that this can be resequenced or moved such

Re: [PATCH v2] compositor-drm: allow mode frequency selection

2017-01-17 Thread Daniel Stone
Hi Fabien, On 17 January 2017 at 16:17, Fabien Dessenne wrote: > As an option, allow to specify a mode (from the configuration file) by > its refresh rate. > Example of valid syntax: > - "mode=1920x1080"Select a 1920x1080 mode, refresh rate undefined. > - "mode=1920x1080@60" Select the (or on

Re: [PATCH weston v2 00/24] Initial Xwayland window positioning, with XWM reordering

2017-01-18 Thread Daniel Stone
Hi, On 18 January 2017 at 12:02, Pekka Paalanen wrote: > On Tue, 17 Jan 2017 15:44:32 + > Daniel Stone wrote: >> 'react to geometry changes' makes me a little nervous; is there a way >> you can see that this can be resequenced or moved such that we don't &g

Re: [PATCH] Remove dbus-launch from weston.desktop

2017-01-18 Thread Daniel Stone
Hi Ben, On 22 December 2016 at 08:56, Ben wrote: > Most display managers handle starting a dbus session daemon for you, so > it does not make sense to start our own. Without this patch, if you run > weston from gdm, programs cannot connect to the dbus session daemon. Right you are. I can see bot

Re: [PATCH v2 wayland 4/5] protocol: add axis_source.wheel_tilt

2017-01-18 Thread Daniel Stone
ies, and the Weston changes are: Reviewed-by: Daniel Stone If no-one has any objections, I'll merge this at the end of the week. Cheers, Daniel ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-18 Thread Daniel Stone
Hi Emilio, On 17 January 2017 at 19:58, Emilio Pozuelo Monfort wrote: > index 223382ce..94b4bfa9 100644 > --- a/libweston/compositor-rdp.c > +++ b/libweston/compositor-rdp.c > @@ -664,13 +664,21 @@ rdp_peer_context_new(freerdp_peer* client, > RdpPeerContext* context) > context->rfx_conte

Re: [PATCH weston] clients: fix errno handling

2017-01-19 Thread Daniel Stone
On 18 January 2017 at 22:21, Peter Hutterer wrote: > clients/editor.c: In function ‘read_file’: > clients/editor.c:1578:16: warning: logical ‘or’ applied to non-boolean > constant [-Wlogical-op] > errno = errsv || EINVAL; > > This works in the shell, but not in C. Introduced in 411ffabbb56b > >

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-19 Thread Daniel Stone
Hi Emilio, On 18 January 2017 at 17:43, Emilio Pozuelo Monfort wrote: > Based on a patch from John Moser > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850658 > > Signed-off-by: Emilio Pozuelo Monfort > --- > libweston/compositor-rdp.c | 8 > 1 file changed, 8 insertions(+) > >

Re: [PATCH weston 66/68] compositor-drm: Test plane states before application

2017-01-19 Thread Daniel Stone
Hi Fabien, On 19 January 2017 at 10:52, Fabien DESSENNE wrote: > On 09/12/16 20:58, Daniel Stone wrote: >> @@ -1706,10 +1718,21 @@ drm_output_prepare_scanout_view(struct >> drm_output_state *output_state, >> state->dest_h != (unsigned) output-&g

[PATCH weston] Add comments and whitespace to repaint machinery

2017-01-19 Thread Daniel Stone
repaint_needed / repaint_scheduled are surprisingly subtle. Explode the conditional with side-effects into more obvious separate calls, and document what they do. Signed-off-by: Daniel Stone --- libweston/compositor.c | 27 +-- 1 file changed, 21 insertions(+), 6

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-23 Thread Daniel Stone
Hi Pekka, On 23 January 2017 at 14:15, Pekka Paalanen wrote: > On Fri, 20 Jan 2017 11:31:08 +0100 > Emilio Pozuelo Monfort wrote: >> This version works for me... > > Hi guys, > > I found another guest to the party. Using net-misc/freerdp-2.0.0_pre20160722 > Weston master fails to build with: > >

Re: [PATCH wayland] dtddata: Use standard permission notice

2017-01-25 Thread Daniel Stone
viewed-by: Daniel Stone Cheers, Daniel ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-26 Thread Daniel Stone
Hi, On 23 January 2017 at 15:45, Daniel Stone wrote: > On 23 January 2017 at 14:15, Pekka Paalanen wrote: >> However, updating to net-misc/freerdp-2.0.0_pre20161219 allows things >> to build for me again. There is just one warning: > > How about this fixup? > diff --gi

Re: [PATCH weston 2/2] compositor-drm: Restore use-current-mode functionality

2017-01-26 Thread Daniel Stone
Hi Armin, On 10 November 2016 at 10:20, Armin Krezović wrote: > On 09.11.2016 15:43, Daniel Stone wrote: >> On 9 October 2016 at 22:48, Armin Krezović wrote: >>> diff --git a/compositor/main.c b/compositor/main.c >>> index 320305c..ffeadfb 100644 >>> --- a/co

Re: [PATCH wayland] dtddata: Use standard permission notice

2017-01-26 Thread Daniel Stone
On 25 January 2017 at 15:01, Daniel Stone wrote: > This, and any other patch to wayland, wayland-protocols, or weston, to > migrate any code copyright Collabora or the Raspberry Pi Foundation to > the standard license text, are: > Reviewed-by: Daniel Stone ... and pu

Re: [PATCH wayland] tests: Test wl_argument_from_va_list

2017-01-26 Thread Daniel Stone
Hi Yong, On 23 November 2016 at 15:38, Yong Bakos wrote: > connection-test.c did not cover wl_argument_from_va_list, so add one > test that specifically tests this method. Easy enough, reviewed and pushed: To ssh://git.freedesktop.org/git/wayland/wayland de908658..8fe8a2bb push -> master Th

Re: [PATCH wayland-protocols] linux-dmabuf-unstable: Use standard copyright notice

2017-01-27 Thread Daniel Stone
Hi Yong, On 23 January 2017 at 14:18, Yong Bakos wrote: > From: Yong Bakos Thanks for catching this! To ssh://git.freedesktop.org/git/wayland/wayland-protocols 375385e..ab228a6 push -> master Cheers, Daniel ___ wayland-devel mailing list wayland

Re: [PATCH weston 10/68] compositor-drm: Make scanout view preparation more stringent

2017-01-27 Thread Daniel Stone
Hi, On 27 January 2017 at 14:25, Derek Foreman wrote: > On 09/12/16 01:57 PM, Daniel Stone wrote: >> +static int >> +drm_view_transform_supported(struct weston_view *ev) >> +{ >> + return !ev->transform.enabled || >> +

[PATCH weston v2] tests: Remove buffer-count

2017-01-27 Thread Daniel Stone
hardware plane, skipping GPU composition. In light of all this, just remove the test. Signed-off-by: Daniel Stone --- Makefile.am | 7 -- protocol/weston-test.xml | 7 -- tests/buffer-count-test.c | 172 -- tests

Re: [weston 1/2] linux-dmabuf: implement immediate dmabuf import

2017-01-30 Thread Daniel Stone
Hi Pekka, On 30 January 2017 at 12:51, Pekka Paalanen wrote: > On Mon, 30 Jan 2017 16:00:06 +0530 > Varad Gautam wrote: >> Instead of always always creating a wl_resource and identifying an invalid >> wl_buffer on commit in weston, how about treating an invalid import just as >> any other cause

Re: [PATCH weston 1/2] compositor-drm: update connectors with connector config

2017-02-06 Thread Daniel Stone
Hi, On 6 February 2017 at 10:29, Pekka Paalanen wrote: > On Thu, 2 Feb 2017 14:06:55 + > "Ucan, Emre (ADITG/SW1)" wrote: >> weston can be started with --connector option to be initialized >> with a particular output. But in the update_outputs this option >> is not considered and output is cr

Re: [PATCH weston 1/2] compositor-drm: update connectors with connector config

2017-02-06 Thread Daniel Stone
Hi Pekka, On 6 February 2017 at 12:00, Pekka Paalanen wrote: > On Mon, 6 Feb 2017 11:05:51 + > Daniel Stone wrote: >> I think we've got to choose between fixing it for 1.13 and removing it >> immediately after release (which I will happily do), or just ripping >&

Re: [PATCH weston v2] (multiple): Use standard permission notice

2017-02-07 Thread Daniel Stone
Hi, On 7 February 2017 at 13:56, Pekka Paalanen wrote: > I believe all the Collabora copyrighted code is ok for the change, and > I would not expect anyone of the other copyright holders to complain > since we already did the same fix in 2015, and IIRC it wasn't necessary > then to ask all copyri

Re: [PATCH weston 1/2] compositor-drm: Construct mode list in create_output_for_connector

2017-02-07 Thread Daniel Stone
Hi Armin, On 9 October 2016 at 22:48, Armin Krezović wrote: > And properly deconstruct it in drm_output_destroy. > > Might be useful for finding out which modes are supported > before even setting them, in case we want to extend the > modesetting API. This is (finally): Revi

Re: [PATCH v2] clients: teach simple-dmabuf-v4l to deal with flipped input

2017-02-08 Thread Daniel Stone
Hi, On 8 February 2017 at 10:23, Pekka Paalanen wrote: > On Tue, 7 Feb 2017 17:17:41 -0800 > Bryce Harrington wrote: >> Breaks the build on older linux kernels. >> >> CC clients/weston_simple_dmabuf_v4l-simple-dmabuf-v4l.o >> clients/simple-dmabuf-v4l.c:358:25: warning: ‘struct v4l2_quer

[PATCH weston 1/3] compositor-drm: Remove crtc_allocator

2017-02-09 Thread Daniel Stone
only use of crtc_allocator with a list walk across outputs. Signed-off-by: Daniel Stone Reported-by: Peter Senna Tschudin --- libweston/compositor-drm.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/libweston/compositor-drm.c b/libw

[PATCH weston 3/3] compositor-drm: Remove connector_allocator

2017-02-09 Thread Daniel Stone
Remove the last usage of connector_allocator, which was to check for displays which have been hot-unplugged, and replace it with an array which doesn't rely on the connector IDs remaining below 32 (or 64). Signed-off-by: Daniel Stone Reported-by: Peter Senna Tschudin --- libweston/compo

[PATCH weston 2/3] compositor-drm: Avoid connector_allocator for hotplugs

2017-02-09 Thread Daniel Stone
Rather than using connector_allocator to determine whether an output is newly connected or not, use a list walk across all outputs instead. Signed-off-by: Daniel Stone Reported-by: Peter Senna Tschudin --- libweston/compositor-drm.c | 25 - 1 file changed, 20 insertions

[PATCH weston 0/3] compositor-drm: Allow high object IDs

2017-02-09 Thread Daniel Stone
The KMS backend was previously using a 32-bit-wide bitmask to mark out CRTCs and connectors it had already allocated to outputs, to avoid trying to reuse them across multiple outputs. Unfortunately, this relied on KMS object IDs remaining below 32, and even extending that out to 64 doesn't fix tha

[PATCH weston v2 1/3] compositor-drm: Remove crtc_allocator

2017-02-09 Thread Daniel Stone
only use of crtc_allocator with a list walk across outputs. Signed-off-by: Daniel Stone Reported-by: Peter Senna Tschudin --- libweston/compositor-drm.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) v2: Split drm_output_find_by_crtc into a separate fun

[PATCH weston v2 2/3] compositor-drm: Avoid connector_allocator for hotplugs

2017-02-09 Thread Daniel Stone
Rather than using connector_allocator to determine whether an output is newly connected or not, use a list walk across all outputs instead. Signed-off-by: Daniel Stone Reported-by: Peter Senna Tschudin --- libweston/compositor-drm.c | 31 +-- 1 file changed, 25

[PATCH weston v2 0/3] compositor-drm: Allow high object IDs

2017-02-09 Thread Daniel Stone
Hi, Pekka quite rightly suggested that some small helper functions would make this patchset more reasonable; fair enough. Patches 1 and 2 certainly look a bit better, but patch 3 unfortunately couldn't benefit since we needed to do the reverse lookup (for every drm_output we track, is it still pre

[PATCH weston v2 3/3] compositor-drm: Remove connector_allocator

2017-02-09 Thread Daniel Stone
Remove the last usage of connector_allocator, which was to check for displays which have been hot-unplugged, and replace it with an array which doesn't rely on the connector IDs remaining below 32 (or 64). Signed-off-by: Daniel Stone Reported-by: Peter Senna Tschudin --- libweston/compo

Re: [PATCH weston v2 0/3] compositor-drm: Allow high object IDs

2017-02-09 Thread Daniel Stone
Hi, On 9 February 2017 at 16:44, Daniel Stone wrote: > Pekka quite rightly suggested that some small helper functions would > make this patchset more reasonable; fair enough. > > Patches 1 and 2 certainly look a bit better, but patch 3 unfortunately > couldn't benefit since

[PATCH v3 weston] compositor-drm: Ignore non-KMS devices

2017-02-10 Thread Daniel Stone
vices present, will hit this. Signed-off-by: Daniel Stone Reported-by: Thierry Reding Reported-by: Daniel Vetter --- libweston/compositor-drm.c | 88 +- 1 file changed, 55 insertions(+), 33 deletions(-) Resend/ping. Given that this breaks actual

Re: [PATCH weston 01/68] libweston: Add pixel-format helpers

2017-02-13 Thread Daniel Stone
Hi, On 14 December 2016 at 15:59, Pekka Paalanen wrote: > On Fri, 9 Dec 2016 19:57:16 + > Daniel Stone wrote: >> + { >> + .format = DRM_FORMAT_RGBX, >> + .gl_format = GL_RGBA, >> + .gl_type = GL_UNSIGNED_SHORT_4

Re: [PATCH v3 weston] compositor-drm: Ignore non-KMS devices

2017-02-13 Thread Daniel Stone
Hi Emil, Thanks for the review! On 10 February 2017 at 19:51, Emil Velikov wrote: > On 10 February 2017 at 17:43, Daniel Stone wrote: >> +static bool >> +drm_device_is_kms(struct drm_backend *b, struct udev_device *device) >> +{ >> + [...] >> + >&g

[PATCH weston v4] compositor-drm: Ignore non-KMS devices

2017-02-13 Thread Daniel Stone
vices present, will hit this. Signed-off-by: Daniel Stone Reported-by: Thierry Reding Reported-by: Daniel Vetter --- libweston/compositor-drm.c | 90 +- 1 file changed, 57 insertions(+), 33 deletions(-) diff --git a/libweston/compositor-drm.c b/libw

Re: [PATCH weston v2] xwm: Add icon support to the frame

2017-02-13 Thread Daniel Stone
Hi Emmanuel, On 8 December 2016 at 01:55, Emmanuel Gil Peyrot wrote: > @@ -1146,6 +1150,48 @@ weston_wm_window_schedule_repaint(struct > weston_wm_window *window) > } > > static void > +weston_wm_handle_icon(struct weston_wm *wm, struct weston_wm_window *window) > +{ > + xcb_get_property

Re: [PATCH 2/2] compositor-drm: Mark eDP connection as internal

2017-02-13 Thread Daniel Stone
Hi Armin, On 8 February 2017 at 12:55, Armin Krezović wrote: > Signed-off-by: Armin Krezović I've pushed this one as trivially correct, thanks: To ssh://git.freedesktop.org/git/wayland/weston e6b7136..9bcf4c5 push -> master Cheers, Daniel ___ way

Re: [PATCH 1/2] libbacklight: Fix backlight detection on recent kernels

2017-02-13 Thread Daniel Stone
Hi Armin, On 8 February 2017 at 12:55, Armin Krezović wrote: > I don't know when it started happening, but recent kernels > give different names for pci_device and backlight parent. > > pci_device is tied to the GPU PCI ID, while backlight parent > is tied to the connector, rather than the GPU it

[PATCH weston] Update COPYING

2017-02-13 Thread Daniel Stone
Include a list of every copyright statement within the COPYING file. Signed-off-by: Daniel Stone --- COPYING | 37 - 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/COPYING b/COPYING index faefd8f..418b4b4 100644 --- a/COPYING +++ b/COPYING

Re: [PATCH weston v2] (multiple): Use standard permission notice

2017-02-13 Thread Daniel Stone
Hi Yong, On 23 January 2017 at 14:17, Yong Bakos wrote: > From: Yong Bakos > > A handful of source files were not using the MIT Expat text in > COPYING. Update these files to bring them inline with the rest, > standardizing on the MIT Expat text. Something weird with the patch, but hand-applyin

Re: [PATCH weston 2/2] libweston/launcher: use C99 initializers for the iface(s)

2017-02-13 Thread Daniel Stone
Hi Emil, On 10 February 2017 at 20:14, Emil Velikov wrote: > Makes the code easier to read and browse through. Thanks, these both seem trivially correct; I'll push them whenever the tree reopens. Cheers, Daniel ___ wayland-devel mailing list wayland-d

Re: [PATCH weston v4] compositor-drm: Ignore non-KMS devices

2017-02-14 Thread Daniel Stone
Hi Emil, On 13 February 2017 at 23:42, Emil Velikov wrote: > On 13 February 2017 at 18:57, Daniel Stone wrote: >> /* >> * Find primary GPU >> * Some systems may have multiple DRM devices attached to a single seat. >> This > Completely forgot: we want t

[PATCH weston 3/7] timespec: Add timespec_to_msec helper

2017-02-14 Thread Daniel Stone
Paralleling timespec_to_nsec, converts to milliseconds. Signed-off-by: Daniel Stone --- libweston/compositor.c | 2 +- shared/timespec-util.h | 11 +++ tests/timespec-test.c | 9 + 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/libweston/compositor.c b

[PATCH weston 5/7] Don't delay initial output paint

2017-02-14 Thread Daniel Stone
utterly wasted time. Add an explicit stamp == NULL, to determine that we are just beginning our repaint loop, that the timings are in fact totally invalid, and that it would be beneficial to repaint the output immediately. Signed-off-by: Daniel Stone --- libweston/compositor-drm.c | 3

[PATCH weston 1/7] timespec: Add timespec_add_nsec helper

2017-02-14 Thread Daniel Stone
Add a (timespec) = (timespec) + (nsec) helper, to save intermediate conversions to nanoseconds in its users. Signed-off-by: Daniel Stone --- Makefile.am| 10 shared/timespec-util.h | 21 + tests/timespec-test.c | 126

[PATCH weston 0/7] Grouped output repaint

2017-02-14 Thread Daniel Stone
Hi, One of the nice features of atomic modesetting is, well, atomicity of modesetting. Specifically that you can perform one call across every output to set every mode in one go. The previous atomic series implemented the nuclear pageflip side of atomic modesetting (for one output, every plane rec

[PATCH weston 4/7] Calculate next-frame target time in absolute space

2017-02-14 Thread Daniel Stone
multiple repaints together when timing allows. Signed-off-by: Daniel Stone --- libweston/compositor.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index a28738ec9..9eab0e298 100644 --- a

[PATCH weston 2/7] timespec: Add timespec_add_msec helper

2017-02-14 Thread Daniel Stone
Add a (timespec) = (timespec) + (msec) helper, to save intermediate conversions in its users. Signed-off-by: Daniel Stone --- shared/timespec-util.h | 21 + tests/timespec-test.c | 11 +++ 2 files changed, 32 insertions(+) diff --git a/shared/timespec-util.h b

[PATCH weston 6/7] Switch to global output repaint hook

2017-02-14 Thread Daniel Stone
iterates all of them, scheduling the repaint for the first available time. Signed-off-by: Daniel Stone Cc: Mario Kleiner Cc: Pekka Paalanen --- libweston/compositor.c | 101 + libweston/compositor.h | 3 +- 2 files changed, 79 insertions(+), 25

[PATCH weston 7/7] Allow backends to group repaint flushes

2017-02-14 Thread Daniel Stone
Implement new repaint_begin and repaint_flush hooks inside weston_backend, allowing backends to gang together repaints which trigger at the same time. Signed-off-by: Daniel Stone --- libweston/compositor-drm.c | 5 +++-- libweston/compositor-fbdev.c| 3 ++- libweston/compositor

Re: [PATCH weston v4] compositor-drm: Ignore non-KMS devices

2017-02-14 Thread Daniel Stone
Hi Emil, On 14 February 2017 at 09:48, Daniel Stone wrote: > On 13 February 2017 at 23:42, Emil Velikov wrote: >> Thinking about this a bit more this won't fly either, I'm afraid. In >> the previous version we'll keep potentially old/unwanted device open, >&

[PATCH weston v5] compositor-drm: Ignore non-KMS devices

2017-02-14 Thread Daniel Stone
vices present, will hit this. Signed-off-by: Daniel Stone Cc: Emil Velikov Reported-by: Thierry Reding Reported-by: Daniel Vetter --- libweston/compositor-drm.c | 142 +++-- 1 file changed, 100 insertions(+), 42 deletions(-) v5: Document find_primar

Re: [PATCH weston 1/7] timespec: Add timespec_add_nsec helper

2017-02-14 Thread Daniel Stone
Hi, On 14 February 2017 at 14:09, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 13:18:01 + > Daniel Stone wrote: >> Add a (timespec) = (timespec) + (nsec) helper, to save intermediate >> conversions to nanoseconds in its users. > > I recall some comments about usi

Re: [PATCH weston 2/7] timespec: Add timespec_add_msec helper

2017-02-14 Thread Daniel Stone
Hi, On 14 February 2017 at 14:24, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 13:18:02 + > Daniel Stone wrote: >> +/* Add a millisecond value to a timespec >> + * >> + * \param r[out] result: a + b >> + * \param a[in] base operand as timespec >> + *

Re: [PATCH weston 1/7] timespec: Add timespec_add_nsec helper

2017-02-14 Thread Daniel Stone
Hi, On 14 February 2017 at 15:02, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 14:21:17 + > Daniel Stone wrote: >> On 14 February 2017 at 14:09, Pekka Paalanen wrote: >> > On Tue, 14 Feb 2017 13:18:01 +0000 >> > Daniel Stone wrote: >> >> +static i

[PATCH weston v6] compositor-drm: Ignore non-KMS devices

2017-02-14 Thread Daniel Stone
vices present, will hit this. Signed-off-by: Daniel Stone Reviewed-by: Emil Velikov Reported-by: Thierry Reding Reported-by: Daniel Vetter --- libweston/compositor-drm.c | 145 - 1 file changed, 103 insertions(+), 42 deletions(-) This is now R-b, bu

Re: [PATCH weston] Update COPYING

2017-02-15 Thread Daniel Stone
Hi Jan, On 15 February 2017 at 15:05, Jan Engelhardt wrote: > On Wednesday 2017-02-15 16:02, Derek Foreman wrote: >>> diff --git a/COPYING b/COPYING >>> index faefd8f..418b4b4 100644 >>> --- a/COPYING >>> +++ b/COPYING >>> @@ -1,8 +1,35 @@ >>> +Copyright © 2008 Tungsten Graphics, Inc. >>> +Copyri

Re: [PATCH weston 5/7] Don't delay initial output paint

2017-02-16 Thread Daniel Stone
Hi, On 16 February 2017 at 14:31, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 13:18:05 + > Daniel Stone wrote: >> On startup, we cannot lock on to the repaint timer because it is unknown >> to us. We deal with this by claiming that the moment of entry into the >> re

[PATCH weston 1/2] screen-share: Avoid NULL dereference

2017-02-16 Thread Daniel Stone
Don't try to dereference the seat if it's NULL. Signed-off-by: Daniel Stone --- compositor/screen-share.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compositor/screen-share.c b/compositor/screen-share.c index bcb9def..069da1d 100644 --- a/compositor/scre

[PATCH weston 2/2] screen-share: Use wl_list_for_each_safe on destroy

2017-02-16 Thread Daniel Stone
Destroying the shared seat removes the link from so->seat_list. Signed-off-by: Daniel Stone --- compositor/screen-share.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compositor/screen-share.c b/compositor/screen-share.c index 069da1d..a6f82b1 100644 --- a/composi

[PATCH weston] clients: Fix build without Cairo/GLES2

2017-02-16 Thread Daniel Stone
If we're building with EGL support generally, but without Cairo/GLESv2, building the clients fail, because window.c defines the EGL native types, however platform.h also brings these in. Signed-off-by: Daniel Stone Cc: Emil Velikov Cc: Bryce Harrington --- clients/window.c | 2 +- 1

Re: [PATCH weston 5/7] Don't delay initial output paint

2017-02-17 Thread Daniel Stone
Hi, On 17 February 2017 at 14:22, Pekka Paalanen wrote: > On Thu, 16 Feb 2017 14:53:39 + > Daniel Stone wrote: >> I was about to say 'this doesn't gain us anything', except if all >> clients do submit and trigger repaint immediately, there's a 7ms grac

Re: [PATCH weston 1/7] timespec: Add timespec_add_nsec helper

2017-02-17 Thread Daniel Stone
Hi, On 14 February 2017 at 14:09, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 13:18:01 + > Daniel Stone wrote: >> +ZUC_TEST(timespec_test, timespec_add_nsec) >> +{ >> + struct timespec a, r; > > An array and a loop to ease readability? :-) I had a flash

Re: [PATCH weston 4/7] Calculate next-frame target time in absolute space

2017-02-17 Thread Daniel Stone
Hi, On 16 February 2017 at 10:23, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 13:18:04 + > Daniel Stone wrote: >> @@ -2389,34 +2390,35 @@ weston_output_finish_frame(struct weston_output >> *output, >> presented_fl

Re: [PATCH weston] Update COPYING

2017-02-17 Thread Daniel Stone
Hi, On 17 February 2017 at 17:12, Bryce Harrington wrote: > On Fri, Feb 17, 2017 at 07:50:45AM -0600, Derek Foreman wrote: >> How about we just remove all the copyrights from COPYING and let >> anyone that needs to collate this list do it themselves... >> >> That way we don't need to remember to

Re: [PATCH weston] Update COPYING

2017-02-27 Thread Daniel Stone
Hi Bryce, Sorry, totally neglected this whilst travelling. On 17 February 2017 at 18:09, Bryce Harrington wrote: > On Fri, Feb 17, 2017 at 05:19:55PM +0000, Daniel Stone wrote: >> On 17 February 2017 at 17:12, Bryce Harrington wrote: >> > It seems atypical amongst open sourc

Re: weston-simple-egl fullscreen broken?

2017-02-27 Thread Daniel Stone
Hi Fabien, On 6 February 2017 at 16:56, Fabien DESSENNE wrote: > I remember I used to get « weston-simple-egl -f » working fine. > But it does not work anymore : nothing is displayed. From the logs I can see > (among others) zxdg_toplevel_v6.configure and wl_surface.commit > Testing with another

Re: [PATCH weston 15/68] compositor-drm: Add explicit type member to drm_fb

2017-02-27 Thread Daniel Stone
Hi Pekka, Thanks for the thoughtful review, as ever. On 22 February 2017 at 13:45, Pekka Paalanen wrote: > On Tue, 21 Feb 2017 15:29:09 +0200 Pekka Paalanen wrote: >> On Fri, 9 Dec 2016 19:57:30 +0000 Daniel Stone >> wrote: >> > @@ -452,15 +461,19 @@ drm_output_rele

Re: [PATCH weston 17/68] compositor-drm: Refactor destroy drm_fb function

2017-02-27 Thread Daniel Stone
Hi, On 21 February 2017 at 13:58, Pekka Paalanen wrote: > On Fri, 9 Dec 2016 19:57:32 +0000 Daniel Stone wrote: >> diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c >> index af43a15..7dbfc6b 100644 >> --- a/libweston/compositor-drm.c >> +++ b

Re: [PATCH weston 19/68] compositor-drm: Refcount drm_fb

2017-02-27 Thread Daniel Stone
Hi Pekka, On 21 February 2017 at 15:19, Pekka Paalanen wrote: > On Fri, 9 Dec 2016 19:57:34 +0000 Daniel Stone wrote: >> @@ -312,6 +316,7 @@ drm_fb_create_dumb(struct drm_backend *b, int width, int >> height, >> if (!fb->format->depth || !fb->format->b

Re: [PATCH weston 21/68] compositor-drm: Use drm_fb for cursor buffers

2017-02-27 Thread Daniel Stone
Hi, On 22 February 2017 at 14:08, Pekka Paalanen wrote: > On Fri, 9 Dec 2016 19:57:36 +0000 Daniel Stone wrote: > looks like this patch causes an FB to be created from cursor bo-s, and > this was not done before and the FBs are not used yet. I think this > requires an explanation i

Re: weston-simple-egl fullscreen broken?

2017-02-27 Thread Daniel Stone
Hi Arnaud, On 27 February 2017 at 23:12, Arnaud Vrac wrote: > On Mon, Feb 27, 2017 at 11:18 PM Daniel Stone wrote: >> On 6 February 2017 at 16:56, Fabien DESSENNE wrote: >> > I remember I used to get « weston-simple-egl -f » working fine. >> > But it does no

Re: [PATCH weston 19/68] compositor-drm: Refcount drm_fb

2017-02-28 Thread Daniel Stone
Hi, On 28 February 2017 at 10:59, Pekka Paalanen wrote: > On Mon, 27 Feb 2017 22:58:48 +0000 Daniel Stone wrote: >> It's indeed almost certainly a bugfix: if you have one client buffer >> with multiple views, both of which could be promoted to scanout, >> you'll

Re: [PATCH weston 6/7] Switch to global output repaint hook

2017-02-28 Thread Daniel Stone
pped for brevity, and are fixed in the coming revision. > On Tue, 14 Feb 2017 13:18:06 + Daniel Stone wrote: >> + if (first_time == 0x) >> + return; >> + >> + /* Now we switch first_time into relative units for the time

Re: [PATCH weston] Update COPYING

2017-02-28 Thread Daniel Stone
Hi Bryce, On 1 March 2017 at 00:22, Bryce Harrington wrote: > On Mon, Feb 27, 2017 at 10:17:21PM +0000, Daniel Stone wrote: >> Yeah, I don't think we're big enough that having separate files makes >> much sense. What I'm mostly just stuck with is the copyright &g

Re: [PATCH weston 19/68] compositor-drm: Refcount drm_fb

2017-03-01 Thread Daniel Stone
Hi, On 1 March 2017 at 10:29, Pekka Paalanen wrote: > On Tue, 28 Feb 2017 14:46:21 +0000 Daniel Stone wrote: >> On 28 February 2017 at 10:59, Pekka Paalanen wrote: >> > The important thing to document about this change is that is exchanges >> > a (almost never hit)

[PATCH weston v2 01/11] timespec: Add timespec_add_nsec helper

2017-03-01 Thread Daniel Stone
Add a (timespec) = (timespec) + (nsec) helper, to save intermediate conversions to nanoseconds in its users. Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen --- Makefile.am| 10 shared/timespec-util.h | 21 + tests/timespec-test.c | 124

[PATCH weston v2 00/11] Grouped output repaint

2017-03-01 Thread Daniel Stone
Hi, I'm submitting v2 of this series after Pekka's review. At this point, we now keep all time values in absolute timespec structs, only using normalisation to nsec for relative comparisons. This required the addition of subtraction helpers, suggested by Pekka, but reimplemented to work with signed

[PATCH weston v2 06/11] Don't delay initial output paint

2017-03-01 Thread Daniel Stone
previous state is unknown, e.g. at startup, or coming back from DPMS off. Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen --- libweston/compositor-drm.c | 3 +-- libweston/compositor.c | 9 + 2 files changed, 10 insertions(+), 2 deletions(-) v2: Add assert to verify usage

[PATCH weston v2 05/11] Calculate next-frame target time in absolute space

2017-03-01 Thread Daniel Stone
multiple repaints together when timing allows. Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen --- libweston/compositor.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) v2: No changes. diff --git a/libweston/compositor.c b/libweston/compositor.c

[PATCH weston v2 04/11] timespec: Add timespec subtraction helpers

2017-03-01 Thread Daniel Stone
Add helpers to subtract two timespecs, then return the difference in either milliseconds or nanoseconds. These will be used to compare timestamps during the repaint cycle. Signed-off-by: Daniel Stone Suggested-by: Pekka Paalanen --- shared/timespec-util.h | 26 ++ tests

[PATCH weston v2 02/11] timespec: Add timespec_add_msec helper

2017-03-01 Thread Daniel Stone
Add a (timespec) = (timespec) + (msec) helper, to save intermediate conversions in its users. Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen --- shared/timespec-util.h | 12 tests/timespec-test.c | 11 +++ 2 files changed, 23 insertions(+) v2: Trivially

[PATCH weston v2 08/11] Change boolean repaint_scheduled to tristate enum

2017-03-01 Thread Daniel Stone
weston_output_finish_frame() and the backends than seems currently appropriate. Signed-off-by: Daniel Stone --- libweston/compositor.c | 20 +--- libweston/compositor.h | 9 - 2 files changed, 25 insertions(+), 4 deletions(-) v2: New in this revision. Required by change to avoid

[PATCH weston v2 09/11] Switch to global output repaint timer

2017-03-01 Thread Daniel Stone
iterates all of them, scheduling the repaint for the first available time. Signed-off-by: Daniel Stone Cc: Mario Kleiner Cc: Pekka Paalanen --- libweston/compositor.c | 113 - libweston/compositor.h | 6 ++- 2 files changed, 88 insertions(+), 31

[PATCH weston v2 07/11] Change repaint_needed to bool

2017-03-01 Thread Daniel Stone
It is only used as a binary value. Signed-off-by: Daniel Stone --- libweston/compositor-drm.c | 2 +- libweston/compositor-fbdev.c | 2 +- libweston/compositor.c | 4 ++-- libweston/compositor.h | 5 - 4 files changed, 8 insertions(+), 5 deletions(-) v2: New in this revision

[PATCH weston v2 03/11] timespec: Add timespec_to_msec helper

2017-03-01 Thread Daniel Stone
Paralleling timespec_to_nsec, converts to milliseconds. Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen --- libweston/compositor.c | 2 +- shared/timespec-util.h | 11 +++ tests/timespec-test.c | 9 + 3 files changed, 21 insertions(+), 1 deletion(-) v2: No changes

[PATCH weston v2 11/11] Allow backends to group repaint flushes

2017-03-01 Thread Daniel Stone
Implement new repaint_begin and repaint_flush hooks inside weston_backend, allowing backends to gang together repaints which trigger at the same time. Signed-off-by: Daniel Stone --- libweston/compositor-drm.c | 5 +++-- libweston/compositor-fbdev.c| 3 ++- libweston/compositor

[PATCH weston v2 10/11] [RFC] Account for very large repaint window misses

2017-03-01 Thread Daniel Stone
they miss by multiples of the repaint window, adjust them until the next repaint timestamp is in the future. I was unable to find from discussion of the original development whether or not this is desirable; I can see an argument both ways. Hence, RFC tag. Signed-off-by: Daniel Stone Cc: Pekka

[PATCH weston v3 08/11] Change boolean repaint_scheduled to quad-state enum

2017-03-03 Thread Daniel Stone
up by some asserts. Signed-off-by: Daniel Stone --- libweston/compositor.c | 20 +--- libweston/compositor.h | 10 +- 2 files changed, 26 insertions(+), 4 deletions(-) v3: Only this patch has changed in this revision of the series. Tri-state wasn't actually enou

[PATCH weston v9 01/62] libweston: Add pixel-format helpers

2017-03-03 Thread Daniel Stone
Rather than duplicating knowledge of pixel formats across several components, create a custom central repository. Differential Revision: https://phabricator.freedesktop.org/D1511 Signed-off-by: Daniel Stone --- Makefile.am | 2 + libweston/pixel-formats.c | 403

[PATCH weston v9 02/62] meson: pixel-formats

2017-03-03 Thread Daniel Stone
Differential Revision: https://phabricator.freedesktop.org/D1512 Signed-off-by: Daniel Stone --- libweston/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/meson.build b/libweston/meson.build index db4347f..8127602 100644 --- a/libweston/meson.build +++ b/libweston

[PATCH weston v9 03/62] compositor-drm: Calculate more cursor state up front

2017-03-03 Thread Daniel Stone
Make drm_output_set_cursor more deterministic, by calculating more state and performing more plane manipulation, inside drm_output_prepare_cursor_view. Differential Revision: https://phabricator.freedesktop.org/D1485 Signed-off-by: Daniel Stone Reviewed-by: Derek Foreman --- libweston

[PATCH weston v9 04/62] compositor-drm: Add explicit type member to drm_fb

2017-03-03 Thread Daniel Stone
Revision: https://phabricator.freedesktop.org/D1488 Signed-off-by: Daniel Stone Reviewed-by: Pekka Paalanen --- libweston/compositor-drm.c | 55 ++ 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/composi

[PATCH weston v9 11/62] compositor-drm: Rename current/next FB members

2017-03-03 Thread Daniel Stone
#x27; is used as the last framebuffer for which we know configuration has been fully applied, i.e. CRTC set executed or pageflip requested and event received. Rename these members to fb_current and fb_pending, doing some small reordering of drm_output whilst in the vicinity. Signed-off-by: Daniel

[PATCH weston v9 00/62] Atomic modesetting support, with atomicity

2017-03-03 Thread Daniel Stone
Hi all, Building on the previous series, as well as the global repaint timer series which I've just sent out for more review (thanks Pekka!), here is v9 of atomic. The most interesting feature is that it is now atomic. As mentioned in the patch changelogs, in order to use the atomic API correctly,

[PATCH weston v9 25/62] compositor-drm: Introduce drm_plane_state structure

2017-03-03 Thread Daniel Stone
part of output->state_last, and is not directly visible from the plane itself. Signed-off-by: Daniel Stone Differential Revision: https://phabricator.freedesktop.org/D1412 Signed-off-by: Daniel Stone --- libweston/compositor-drm.c | 334 + 1 f

<    2   3   4   5   6   7   8   9   10   11   >