This series adds necessary code to support horizontal
output layout configuration using weston's config
file.
The output placement is relative to an output that
specifies outputs it should be placed next to, either
left of, or right of a given output. If there's a
conflicting output on that positi
This moves current output positioning code and scale/transform
application to the compositor itself, so the compositor
can configure output layouts any way it wants.
A helper function for setting x and y coordinates is also
added, and couple of assertions to weston_output_enable()
as well, to make
This patch adds horizontal output layout configuration using
the previously added code.
When an output is added, it looks for outputs that it should
be placed next to, if they are specified. If such output is
found, output layout is updated if needed (outputs on a given
position are moved right if
This is required for implementing output layout setting
which relies on current output width and height, and
those are calculated in this function.
It also changes the function signature to make use
of already stored scale and transform values in the
weston_output object.
Signed-off-by: Armin Kre
This adds weston specific output object, which contains information
about output's position, relative to other outputs. DRM and Windowed
backends code has been updated to make use of the new code and
parse new configuration options for a given output, if it was
specified.
New configuration file op
No good can come of this... the cursor plane's constraints are too
heavy to make bothering with this worthwhile.
To see the bug this fixes, set your output scale to 2 and then
launch weston-scaler -s and perform an action that makes the cursor
disappear (such as typing in a weston terminal the cur
On 30/09/16 02:39 PM, Daniel Stone wrote:
Hi Derek,
On Friday, 30 September 2016, Derek Foreman mailto:der...@osg.samsung.com>> wrote:
+static bool
+viewport_is_cursor_compatible(struct weston_buffer_viewport *viewport)
+{
+ /* While we could technically relax soem of thes
Hi Derek,
On Friday, 30 September 2016, Derek Foreman wrote:
>
> +static bool
> +viewport_is_cursor_compatible(struct weston_buffer_viewport *viewport)
> +{
> + /* While we could technically relax soem of these constraints
> +* if we implemented cropping in cursor_bo_update, it does
On 30/09/16 04:28 AM, Tomohito Esaki wrote:
Multiplanar formats are supported by using drmModeAddFB2 and bypassing
gbm. If drmModeAddFB2 isn't available, the existing gbm bo import path
is used and multiplanar formats are unsupported.
I'm not sure we should be doing anything with the existing s
No good can come of this... the cursor plane's constraints are too
heavy to make bothering with this worthwhile.
To see the bug this fixes, set your output scale to 2 and then
launch weston-scaler -s and perform an action that makes the cursor
disappear (such as typing in a weston terminal the cur
If only the source of a viewport is set, the width and height must
be integer or the protocol mandates that the compositor generate an
error. This is because using only the source is a crop, and the
width and height become the surface size - all surface sizes must
be integer.
Weston was fixed to
On Fri, Sep 30, 2016 at 06:28:52PM +0900, Tomohito Esaki wrote:
> This implementations bypasses gbm and passes the dmabuf handles directly
> to libdrm for composition.
>
> Signed-off-by: Tomohito Esaki
> ---
> libweston/compositor-drm.c | 125
> ++---
> 1
On Fri, Sep 30, 2016 at 06:28:51PM +0900, Tomohito Esaki wrote:
> The drm_fb destroy callback to mostly the same thing regardless of
> whether the buffer is a dumb buffer or gbm buffer. This patch refactors
> the common parts into a new function that can be called for both cases.
>
> Signed-off-by
On Fri, Sep 30, 2016 at 02:07:38PM +0200, Armin Krezović wrote:
> On 30.09.2016 13:59, Eric Engestrom wrote:
> > On Fri, Sep 30, 2016 at 11:36:24AM +0100, Murray Calavera wrote:
> >> On 30 September 2016 at 11:10, Eric Engestrom
> >> wrote:
> >>
> >>> On Thu, Sep 29, 2016 at 09:26:16PM +0100, Murr
On 30 September 2016 at 12:59, Eric Engestrom
wrote:
> On Fri, Sep 30, 2016 at 11:36:24AM +0100, Murray Calavera wrote:
> > On 30 September 2016 at 11:10, Eric Engestrom >
> > wrote:
> >
> > > On Thu, Sep 29, 2016 at 09:26:16PM +0100, Murray Calavera wrote:
> > > > error.h is a gnu extension and
This patch makes use of recently implemented
EGL_KHR_no_config_context extension in Mesa,
which superseeds EGL_MESA_configless_context.
See also (and the follow-up patch):
https://lists.freedesktop.org/archives/mesa-dev/2016-September/128510.html
v2:
- Extend existing infrastructure for EGL_ME
On 30.09.2016 13:04, Emil Velikov wrote:
> On 28 September 2016 at 20:54, Armin Krezović
> wrote:
>> On 27.09.2016 15:18, Emmanuel Gil Peyrot wrote:
>>> On Tue, Sep 27, 2016 at 12:29:51PM +0200, Armin Krezović wrote:
This patch makes use of recently implemented
EGL_KHR_no_config_context
This patch implements additional functionality that will be used
for configuring, enabling and disabling weston's outputs. Its
indended use is by the compositors or user programs that want to
be able to configure, enable or disable an output at any time. An
output can only be configured while it's
This is a complete port of the X11 backend that
uses recently added output handling API for output
configuration.
- Output can be configured at runtime by passing the
necessary configuration parameters, which can be
filled in manually, obtained from the configuration
file or obtained from th
v2:
- Rebased for latest changes.
v3:
- Rebased for changes in wayland backend.
Reviewed-by: Quentin Glidic
Reviewed-by: Pekka Paalanen
Signed-off-by: Armin Krezović
---
libweston/compositor-drm.c | 2 +-
libweston/compositor-fbdev.c| 2 +-
libweston/compositor-headless.c | 2 +-
This is a complete port of the Wayland backend that
uses the recently added output handling API for output
configuration.
- Output can be configured at runtime by passing the
necessary configuration parameters, which can be
filled in manually, obtained from the configuration
file or obtained
Reviewed-by: Quentin Glidic
Reviewed-by: Pekka Paalanen
Signed-off-by: Armin Krezović
---
libweston/compositor.h | 14 --
1 file changed, 14 deletions(-)
diff --git a/libweston/compositor.h b/libweston/compositor.h
index 6cca4f3..3e486d5 100644
--- a/libweston/compositor.h
+++ b/li
Reviewed-by: Pekka Paalanen
Signed-off-by: Armin Krezović
---
libweston/compositor-rdp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libweston/compositor-rdp.c b/libweston/compositor-rdp.c
index d385a31..223382c 100644
--- a/libweston/compositor-rdp.c
+++ b/libweston/compositor-rdp.c
This is a complete port of the headless backend that
uses the recently added output handling API for output
configuration.
- Output can be configured at runtime by passing the
necessary configuration parameters, which can be
filled in manually, obtained from the configuration
file or obtaine
This implements output configuration for outputs which use
previously added weston_windowed_output_api. The function
takes an output that's to be configured, default configuration
that's to be set in case no configuration is specified in
the config file or on command line and optional third argumen
This is a complete port of the RDP backend that uses
the recently added output handling API for output
configuration.
Output can be configured at runtime by passing the
necessary configuration parameters, which can be
filled in manually or obtained from the command line
using previously added func
This is a complete port of the DRM backend that uses
the recently added output handling API for output
configuration.
Output can be configured at runtime by passing the
necessary configuration parameters, which can be
filled in manually or obtained from the configuration
file using previously adde
Reviewed-by: Quentin Glidic
Reviewed-by: Pekka Paalanen
Signed-off-by: Armin Krezović
---
libweston/compositor.c | 124 -
1 file changed, 41 insertions(+), 83 deletions(-)
diff --git a/libweston/compositor.c b/libweston/compositor.c
index e5deeab
This is (hopefully final) take 4 of my new output configuration API.
This series addresses some minor issues found during the DRM backend
review and contains some (rather major) refactoring of the Wayland
backend to bring back old --fullscreen behaviour and address some
minor issues.
For informat
They were required for transitional phase in order not to
break previous weston_output_init(). Now, they can even
be initialized on enable, or left with defaults if backend
doesn't support them.
Reviewed-by: Pekka Paalanen
Signed-off-by: Armin Krezović
---
libweston/compositor.c | 3 ---
1 file
This adds new plugin-specific API for configuring outputs
on "windowed" backends, such as X11, wayland/non-fullscreen
and even headless (although, it doesn't have any windows,
its configuration is very similar). It can be used from
compositors to configure pending outputs and should be used
with pr
This is a complete port of the fbdev backend that uses
the recently added output handling API for output
configuration.
It is required that the scale and transform values are
set using the previously added functionality.
After everything has been set, output needs to be
enabled manually using wes
On 30.09.2016 13:59, Eric Engestrom wrote:
> On Fri, Sep 30, 2016 at 11:36:24AM +0100, Murray Calavera wrote:
>> On 30 September 2016 at 11:10, Eric Engestrom
>> wrote:
>>
>>> On Thu, Sep 29, 2016 at 09:26:16PM +0100, Murray Calavera wrote:
error.h is a gnu extension and not available in othe
On Fri, Sep 30, 2016 at 11:36:24AM +0100, Murray Calavera wrote:
> On 30 September 2016 at 11:10, Eric Engestrom
> wrote:
>
> > On Thu, Sep 29, 2016 at 09:26:16PM +0100, Murray Calavera wrote:
> > > error.h is a gnu extension and not available in other
> > > popular libcs like musl. This patch pr
On Thu, 18 Aug 2016 18:42:28 +0200
Armin Krezović wrote:
> This is take 3 of my new output configuration API.
>
> Two major changes happened:
>
> - weston_output_init_pending() was split into
> weston_compositor_add_pending_output(), so
> weston_output_init_pending() wouldn't announce
> a
On 28 September 2016 at 20:54, Armin Krezović wrote:
> On 27.09.2016 15:18, Emmanuel Gil Peyrot wrote:
>> On Tue, Sep 27, 2016 at 12:29:51PM +0200, Armin Krezović wrote:
>>> This patch makes use of recently implemented
>>> EGL_KHR_no_config_context extension in Mesa,
>>> which superseeds EGL_MESA_
On 30 September 2016 at 11:10, Eric Engestrom
wrote:
> On Thu, Sep 29, 2016 at 09:26:16PM +0100, Murray Calavera wrote:
> > error.h is a gnu extension and not available in other
> > popular libcs like musl. This patch provides a replacement.
> >
> > Signed-off-by: Murray Calavera
>
> How did you
On Thu, Sep 29, 2016 at 09:26:16PM +0100, Murray Calavera wrote:
> error.h is a gnu extension and not available in other
> popular libcs like musl. This patch provides a replacement.
>
> Signed-off-by: Murray Calavera
How did you test this? For me, `CC=musl-gcc ./autogen.sh` stops on:
[...]
On Tue, 16 Aug 2016 10:05:57 +0200
Olivier Fourdan wrote:
> Add a new API to let compositor decide whether or not a wl_global
> should be advertised to the clients via wl_registry_bind() or
> display_get_registry()
>
> By using its own filter, the compositor can decide which wl_global would
> be
Add the viewport offset position into the sprite plane cropping
calculation. Without this patch the sprite plane always outputs from the
top left corner of the source buffer.
Signed-off-by: Tomohito Esaki
---
libweston/compositor-drm.c | 13 +
1 file changed, 13 insertions(+)
diff -
Multiplanar formats are supported by using drmModeAddFB2 and bypassing
gbm. If drmModeAddFB2 isn't available, the existing gbm bo import path
is used and multiplanar formats are unsupported.
Signed-off-by: Tomohito Esaki
---
libweston/compositor-drm.c | 53 +++
This implementations bypasses gbm and passes the dmabuf handles directly
to libdrm for composition.
Signed-off-by: Tomohito Esaki
---
libweston/compositor-drm.c | 125 ++---
1 file changed, 107 insertions(+), 18 deletions(-)
diff --git a/libweston/composi
The drm_fb destroy callback to mostly the same thing regardless of
whether the buffer is a dumb buffer or gbm buffer. This patch refactors
the common parts into a new function that can be called for both cases.
Signed-off-by: Tomohito Esaki
---
libweston/compositor-drm.c | 31 ---
These patches add support multiplanar formats by using linux_dmabuf instead of
gbm for scanout/sprite plane importing.
When rendering linux_dmabuf buffers, gbm isn't required, and multiplanar
formats can be supported by using drmModeAddFB2() instead of gbm_import().
The first patch refactors dest
From: Yong Bakos
Other singleton objects in the protocol are described as such.
Add a singleton adjective to the wl_registry description, making it
similar to other descriptions.
Signed-off-by: Yong Bakos
---
protocol/wayland.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff
45 matches
Mail list logo