I'm happy to announce the first publicly available release of The
Compositor Modules, the modular C++ library to easily write a Wayland
compositor. The release is available on GitHub. [1]
You can read the full announcement with more details about the library
exclusively on Phoronix. [2]
The goal
On Wed, Mar 11, 2020 at 8:21 PM Jason Ekstrand wrote:
>
> On Wed, Mar 11, 2020 at 12:31 PM Jason Ekstrand wrote:
> >
> > All,
> >
> > Sorry for casting such a broad net with this one. I'm sure most people
> > who reply will get at least one mailing list rejection. However, this
> > is an issue
On Wed, Nov 20, 2019 at 1:53 AM Guillem Jover wrote:
>
> Hi!
>
> On Sun, 2019-11-03 at 18:08:00 +0100, Roman Gilg wrote:
> > On Wed, Oct 23, 2019 at 5:33 PM Alan Coopersmith wrote:
> > > On 10/23/19 12:48 AM, Michael Joost wrote:
> > > > regarding your
On Fri, Nov 1, 2019 at 9:06 PM Lyude Paul wrote:
>
> Hi! Recently I've been working with the rest of the X.Org board to try to get
> X.org access to VESA memberships so that contributors that don't have an
> employer who is able/willing to join VESA can potentially get access to the
> various
On Wed, Oct 23, 2019 at 5:33 PM Alan Coopersmith
wrote:
>
> On 10/23/19 12:48 AM, Michael Joost wrote:
> > Hi Alan,
> >
> > regarding your recent patch in xorg/libXfont2 (strlcat/strlcpy fallbacks) I
> > ran into a problem on Linux while having libbsd installed. The configure
> > correctly
On Mon, Apr 22, 2019 at 1:30 PM Ferdi265 wrote:
>
> Hello,
>
> I investigated a bug I encountered while using the Sway Compositor and
> traced it back to some behaviour in Xwayland:
>
> The xdg_output and wl_output events are handled in such a way that
> output changes (e.g. position) sometimes
On Tue, Nov 6, 2018 at 7:50 AM Simon Ser wrote:
>
> On Monday, November 5, 2018 3:24 PM, Pekka Paalanen
> wrote:
> > I don't think it's a good idea to break Xwayland completely on
> > compositors that don't implement wl_surface version 4 or greater.
> >
> > It would make sense to bind
I'm a bit unsure on that one. I thought there is no cleanup code
necessary in Present on a reparent because in theory the current
Present code alone allows clients to flip arbitrary many child windows
to a certain parent window as long as they have the same dimension as
the parent. Of course a
Great detailed analysis in the backtrace! :)
What confused me at first was that the present_wnmd_flips_stop function is
called at all in this state because it should only be called when at least
one flip has been done and in this case xwl_window->present_window must
have been set to the
Ok, I just got a failing assert in xwl_present_flips_stop with the patch
when opening a context menu in Steam. Seems the xwl_present_flips_stop call
is coming in too late now after the presenting window has already been
changed.
>
#0 __GI_raise (sig=sig@entry=6) at
So I have it running now without problems for a few days. I tested it once
with CS:GO and Hitman and there were no crashes. I can't test the suspend
recovery because this is currently not working due to a problem in KWin.
Tested-by: Roman Gilg
___
xorg
On Mon, Aug 27, 2018 at 2:06 AM Lionel Landwerlin <
lionel.g.landwer...@intel.com> wrote:
> v2: Still notify aborted flips (Roman)
I also want to test it later this week when I've finished some other work,
but for now:
Reviewed-by: R
Looking at the code I think it would be better to not use an else, but put
the present_vblank_notify call before the if (vblank->abort_flip) line.
Even if the flip was aborted, the client should receive a complete event.
At least that's what we do in case of screen flips.
On Fri, Aug 24, 2018 at
The Valgrind backtrace is very similar to the gdb backtraces in:
https://bugs.freedesktop.org/show_bug.cgi?id=106620
The patch could be a fix for this bug as well, which would be awesome.
___
xorg-devel@lists.x.org: X.Org development
Archives:
The only question open to me is how the window and pixmap size can be
different at all at this point. But taking the Pixmap size is in any
case better.
I reviewed v3 on patchworks.
Reviewed-by: Roman Gilg
___
xorg-devel@lists.x.org: X.Org development
window flip mode"
Thank you for patching this difficult to find issue. That's a
behavioral change to screen flips, that I missed.
Reviewed-by: Roman Gilg
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
the time and the msc counter is monotonically
counting for a window so there should be no need to have different
CRTCs for different msc counters.
Tested the patch in a Plasma session with VLC and Skype.
Tested-by: Roman Gilg <subd...@gmail.com>
Reviewed-by: Roman Gilg <subd...@gmail.com>
On Sat, May 5, 2018 at 8:50 PM, Mario Kleiner
wrote:
> Thanks. Can you see if you get any freezes in kwin_x11 by "violent
> alt-tabbing" with patch 1? I've seen two such freezes within 8 hours
> of normal use yesterday, each occuring when i alt-tabbed (normally)
> and
Without this patch plasmashell on Xserver/Mesa master freezes on me
when opening the launcher menu (Kickoff). With the patch haven't
experienced freezes yet.
Haven't tested the Steam client yet. Might be a different problem though.
Tested-by: Roman Gilg <subd...@gmail.com>
On Fri, May 4
, which always get discarded on unmap. So that the
change directly worked for you without regressions is probably a
consequence of that.
On Fri, May 4, 2018 at 10:05 AM, Olivier Fourdan <ofour...@redhat.com> wrote:
> Hi Roman,
>
> On Fri, May 4, 2018 at 3:07 AM, Roman Gilg <subd..
Instead of reusing xwl_window introduce a persistent window struct for every
window, that asks for Present flips.
This struct saves all relevant data and is only freed on window destroy.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c
correctly in
present_wnmd_window_to_crtc_msc.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c | 10 +-
present/present.h | 2 +-
present/present_wnmd.c | 14 +-
3 files changed, 19 insertions(+), 7 deletions(-)
diff --gi
Modifiers support needs gbm as a dependency. Without setting the dependency
included headers are not found reliably and the build might fail if the
headers are not placed in the default system include paths.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xfree86/drivers/modes
the window_priv->msc value
instead).
On Fri, Apr 20, 2018 at 6:11 PM, Michel Dänzer <mic...@daenzer.net> wrote:
> On 2018-04-20 05:10 PM, Roman Gilg wrote:
>> Instead of getting the current msc value from the window, which might be
>> different to old one directly take
On Fri, Apr 20, 2018 at 6:23 PM, Olivier Fourdan wrote:
> Unfortunately, contrary to my initial tests, the black window still occurs
> randomly even with that patch applied.
That's unfortunate. How severe is it? Is it just for a short period or
longer? I believe you said on IRC
Clean up only if the request points to the presenting window or its top
parent window.
Since in this case all events are removed unconditionally, always stop
the timer.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c | 16
1 file chan
Instead of getting the current msc value from the window, which might be
different to old one directly take the last saved msc value saved in
the window_priv struct.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_wnmd.c | 7 +--
1 file changed, 1 insertion(+), 6 del
Reviewed-by: Roman Gilg <subd...@gmail.com>
On Thu, Apr 19, 2018 at 9:13 AM, Olivier Fourdan <ofour...@redhat.com> wrote:
> Regardless of the order we un-realize windows.
>
> Suggested-by: Roman Gilg <subd...@gmail.com>
> Signed-off-by: Olivier Fourdan <ofour...
On Wed, Apr 18, 2018 at 4:02 PM, Olivier Fourdan wrote:
> diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c
> index f403ff701..e835a1399 100644
> --- a/hw/xwayland/xwayland-present.c
> +++ b/hw/xwayland/xwayland-present.c
> @@ -73,13 +73,9 @@
yladn from 1.20 rc4.
Sorry for the annoyances. But I'm of course very glad you found them
before release. Thanks!
> This is due to commit 82df2ce3:
>
> Author: Roman Gilg <subd...@gmail.com>
> Date: Tue Aug 22 15:38:26 2017 +0200
>
> xwayland: Avoid repeatedl
Thank you Olivier. Sorry for that.
An alternative solution would be to only ifdef out the
xwl_glamor_pixmap_get_wl_buffer call in xwl_present_flip and otherwise
return FALSE. But we then would needlessly still build the Present
support when compiling without glamor.
Reviewed-by: Roman Gilg <s
On Sat, Apr 7, 2018 at 9:56 AM, Mike Lothian wrote:
> Switching to glx from egl gets things started for me
Do you mean switching from egl to glx as in switching the compositing
backend? And it did not work with egl backend but with glx?
The egl backend on X in KWin isn't
Link the newly introduced support for Present flips. For now flips can only
be used in rootless mode together with Glamor.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/hw/xwayland/xwayla
When the compositor is not sending frame callbacks while we still wait
on buffer release events fake a continuous msc counter with a timer.
Having this timer is a prerequisite for queuing events.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.
to not
suddenly regress on Xwayland only.
The sample client, that triggers this behavior, is the Steam client.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/xwayland/xwayland-pre
Queue present events to msc values. Fake msc events with a refresh rate of
about 60fps when flips are not possible. When flips are executed rely on
frame callbacks with a slow updating timer as fallback.
This is important for applications, that want to limit their framerate.
Signed-off-by: Roman
ake use of this functionality Xwayland must run rootless and with
Glamor/GBM.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/Makefile.am| 1 +
hw/xwayland/meson.build| 1 +
hw/xwayland/xwayland-present.c | 366 +
hw
To enable special functionality of window flips introduce for window flips
a separate set of driver facing function hooks.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h | 43 +++
present/present_priv.h | 1 +
2 files chang
Add arguments to give the caller more information and control
over the creation of a wl_buffer with GBM, in particular let
the caller determine the size of the buffer.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-glamor.c | 23 +--
hw/xw
Make sure that vblanks and windows get cleaned up correctly
in window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_screen.c | 33 -
present/present_vblank.c | 2 ++
2 files changed, 34 insertions(+), 1 deletion(-)
diff
Calculate damage before trying to flip and report it to the driver.
This allows drivers to optimize their rendering.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h | 3 ++-
present/present_wnmd.c | 24 +---
2 files changed, 15 insertions(
Allow drivers now to initialize window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h| 2 ++
present/present_screen.c | 23 ++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/present/present.h b/present/present.h
Add hooks to query caps, get crtcs, abort vblanks and destroy
a flip.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c| 28
present/present_priv.h | 33 +
present/present_scmd.c
Flipping pixmaps per window needs additional arguments in the
flip mode API. Add these as preperation for window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_execute.c | 2 ++
present/present_priv.h| 10 +++---
present/present_scmd.c
introduces the new mode as a stub. It additionally needs a
driver hook, such that it can get initialized and appropriate cleanup
functions.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am| 3 +-
present/meson.build| 1 +
present/present.h | 6 +
p
Introduce vblank property for flip modes, that demand explicite
allowance by the driver for vblanks to become idle.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 1 +
present/present_vblank.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/p
For window flip mode data about flips needs to be stored per window.
Add properties to 'present_window_priv' and initialize them on creation.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 10 ++
present/present_screen.c | 6 ++
2 files chang
To initialize easily different flip modes, refactor
'present_screen_init'.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_screen.c | 46 +-
1 file changed, 33 insertions(+), 13 deletions(-)
diff --git a/present/present_scre
To reduce future code duplication refactor timings adjustment out
as a separate function.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c | 38 ++
present/present_priv.h | 7 +++
present/present_scmd.
To be shared by multiple flip modes, refactor execute functionality,
such that logical chunks can go in new separate file.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am | 1 +
present/meson.build | 1 +
present/present_execute.c
Flip modes can now have different implementations of
present_can_window_flip.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c | 9 +
present/present_priv.h | 2 ++
present/present_scmd.c | 5 +++--
3 files changed, 14 insertions(+), 2 deletions(-)
diff
With the new internal flip mode API move vblank creation
and so on into a seperate file, such that it can be shared
between flip modes.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am | 3 +-
present/meson.build | 1 +
present/present_priv.h
Add some basic function hooks to our future present-internal flip mode API,
that will allow us to share functionality in between modes and move more code
in separate files.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 27 ---
p
Make present_pixmap a common function callable by any
flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c | 57 ++
present/present_priv.h | 68 +++---
present/present_scmd.
Add 'queue_vblank', 'flush' and 're_execute' hooks, that
are supposed to be shared with other flip modes.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 12
present/present_scmd.c | 3 +++
2 files changed, 15 insertions(+)
diff --git a/p
This revision rebases the patch set on current master and does changes
requested by Michel Dänzer.
Please note that while compilation works fine for me, I can't test the runtime
any longer because the latest changes to xserver master require a newer mesa
build, and although I tried extensively I
As a preperation for future flip mode alternatives move most of the
functionality from 'present.c' into a separate file.
Leave some functions needed by future other flip modes in 'present.c'.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am|1 +
present/meson
On Wed, Feb 28, 2018 at 6:43 PM, Michel Dänzer wrote:
> I'm unable to reproduce the issue you described with Steam (without this
> patch series applied). I'd really like to know where the bogus target
> MSC values you're seeing are coming from. What are the values of the
>
to an erroneous 64 to 32bit conversion.
The sample client, that triggers this behavior, is the Steam client.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xw
Queue present events to msc values. Fake msc events with a refresh rate of
about 60fps when flips are not possible. When flips are executed rely on
frame callbacks with a slow updating timer as fallback.
This is important for applications, that want to limit their framerate.
Signed-off-by: Roman
Add arguments to give the caller more information and control
over the creation of a wl_buffer with GBM, in particular let
the caller determine the size of the buffer.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-glamor.c | 19 +++
hw/xwayland/xway
When the compositor is not sending frame callbacks while we still wait
on buffer release events fake a continuous msc counter with a timer.
Having this timer is a prerequisite for queuing events.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.
ake use of this functionality Xwayland must run rootless and with
Glamor/GBM.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/Makefile.am| 1 +
hw/xwayland/meson.build| 1 +
hw/xwayland/xwayland-present.c | 365 +
hw
introduces the new mode as a stub. It additionally needs a
driver hook, such that it can get initialized and appropriate cleanup
functions.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am| 3 +-
present/meson.build| 1 +
present/present.h | 6 +
p
Make sure that vblanks and windows get cleaned up correctly
in window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_screen.c | 33 -
present/present_vblank.c | 2 ++
2 files changed, 34 insertions(+), 1 deletion(-)
diff
For window flip mode data about flips needs to be stored per window.
Add properties to 'present_window_priv' and initialize them on creation.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 10 ++
present/present_screen.c | 6 ++
2 files chang
Allow drivers now to initialize window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h| 2 ++
present/present_screen.c | 23 ++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/present/present.h b/present/present.h
Calculate damage before trying to flip and report it to the driver.
This allows drivers to optimize their rendering.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h | 3 ++-
present/present_wnmd.c | 24 +---
2 files changed, 15 insertions(
Introduce vblank property for flip modes, that demand explicite
allowance by the driver for vblanks to become idle.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 1 +
present/present_vblank.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/p
To enable special functionality of window flips introduce for window flips
a separate set of driver facing function hooks.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h | 43 +++
present/present_priv.h | 1 +
2 files chang
Flipping pixmaps per window needs additional arguments in the
flip mode API. Add these as preperation for window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_execute.c | 2 ++
present/present_priv.h| 10 +++---
present/present_scmd.c
To reduce future code duplication refactor timings adjustment out
as a separate function.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c | 38 ++
present/present_priv.h | 7 +++
present/present_scmd.
With the new internal flip mode API move vblank creation
and so on into a seperate file, such that it can be shared
between flip modes.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am | 3 +-
present/meson.build | 1 +
present/present_priv.h
Add hooks to query caps, get crtcs, abort vblanks and destroy
a flip.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c| 28
present/present_priv.h | 33 +
present/present_scmd.c
To initialize easily different flip modes, refactor
'present_screen_init'.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_screen.c | 46 +-
1 file changed, 33 insertions(+), 13 deletions(-)
diff --git a/present/present_scre
Add 'queue_vblank', 'flush' and 're_execute' hooks, that
are supposed to be shared with other flip modes.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 12
present/present_scmd.c | 3 +++
2 files changed, 15 insertions(+)
diff --git a/p
Make present_pixmap a common function callable by any
flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.c | 57 ++
present/present_priv.h | 68 +++---
present/present_scmd.
To be shared by multiple flip modes, refactor execute functionality,
such that logical chunks can go in new separate file.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am | 1 +
present/meson.build | 1 +
present/present_execute.c
As a preperation for future flip mode alternatives move most of the
functionality from 'present.c' into a separate file.
Leave some functions needed by future other flip modes in 'present.c'.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am| 1 +
present/meson
Add some basic function hooks to our future present-internal flip mode API,
that will allow us to share functionality in between modes and move more code
in separate files.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_priv.h | 26 +++---
p
This revision provides changes requested by Michel Dänzer. In particular
flips without copies in window flip mode are now possible and clients can
queue flips on Xwayland.
___
xorg-devel@lists.x.org: X.Org development
Archives:
On Tue, Feb 27, 2018 at 10:59 PM, Adam Jackson wrote:
> 4) https://patchwork.freedesktop.org/series/37274/
> Per-window flips for Xwayland. No xfree86 changes.
Michel gave me feedback on my patches in the last weeks and I did
changes to some parts because of that. I planned on
The helper xorg_list_is_empty returns True when the list is empty and not when
it contains one or more elements.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
include/list.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/list.h b/include/list.h
index 3
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
include/list.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/list.h b/include/list.h
index 3f0574d..f81d97f 100644
--- a/include/list.h
+++ b/include/list.h
@@ -211,7 +211,8 @@ xorg_list_del(struct xorg_list
On Fri, Feb 2, 2018 at 5:11 PM, Michel Dänzer wrote:
> Taking a step back, do we even need to keep around the original pixmap
> and unflip to it at all? I had a chat on IRC about this with Keith a
> while ago, see the attached log excerpt.
>
> Keith's main concern is that the
decided to first go for a simple implementation by just copying
the pixmap content in order to decrease the overall complexity of the
patch set.
On Thu, Feb 1, 2018 at 4:33 PM, Michel Dänzer <mic...@daenzer.net> wrote:
> On 2018-01-29 02:34 PM, Roman Gilg wrote:
>> In contrast to s
> wrote:
> On Mon, 2018-01-29 at 14:34 +0100, Roman Gilg wrote:
>
>> @@ -100,6 +128,21 @@ typedef struct present_screen_info {
>>
>> } present_screen_info_rec, *present_screen_info_ptr;
>>
>> +typedef struct present_wnmd_info {
>> +uint32_t
Add functionality for queuing events as requested by Present.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c | 73 +-
1 file changed, 51 insertions(+), 22 deletions(-)
diff --git a/hw/xwayland/xwayland-present.
This is a RFC on a follow-up patch to my recently posted patch series on the
xorg-devel mailing list to enable per window flips of Present Pixmaps to
Wayland surfaces:
https://lists.freedesktop.org/archives/xorg-devel/2018-January/055674.html
With the attached patch queuing events should be
/2018-January/055674.html
The above patch series only allows flips..."
and so on.
On Mon, Jan 29, 2018 at 5:54 PM, Roman Gilg <subd...@gmail.com> wrote:
> The above patch series only allows flips on a child window with the same
> dimensions as its parent xwl_window. For
Do flips for child windows via subsurfaces if the Wayland server
supports them.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-present.c | 57 +-
hw/xwayland/xwayland.c | 6 -
hw/xwayland/xwayland.h
The above patch series only allows flips on a child window with the same
dimensions as its parent xwl_window. For flips on child windows (for example
the video view port of a video player in windowed mode, see here:
http://www.subdiff.de/assets/images/2017-07-28-a-new-beginning.jpg) I wanted
to
Make sure that vblanks and windows get cleaned up correctly
in window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_screen.c | 33 -
present/present_vblank.c | 2 ++
2 files changed, 34 insertions(+), 1 deletion(-)
diff
han the xwl_window,
* queuing events to MSC times,
* reporting UST values to present.
To make use of this functionality Xwayland must run rootless and with
Glamor/GBM.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/Makefile.am| 1 +
hw/xwayland/meson.build| 1 +
hw
Add arguments to allow the caller more information and control
over the creation of a wl_buffer with GBM, in particular let
the caller determine the size of the buffer.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
hw/xwayland/xwayland-glamor.c | 22 ++
hw/xw
Allow drivers now to initialize window flip mode.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h| 2 ++
present/present_screen.c | 23 ++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/present/present.h b/present/present.h
#endif /* _PRESENT_PRIV_H_ */
diff --git a/present/present_wnmd.c b/present/present_wnmd.c
new file mode 100644
index 000..c428232
--- /dev/null
+++ b/present/present_wnmd.c
@@ -0,0 +1,672 @@
+/*
+ * Copyright © 2018 Roman Gilg
+ *
+ * Permission to use, copy, modify, distribute, and sell this software a
To be shared by multiple flip modes, refactor execute functionality,
such that logical chunks can go in new separate file.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/Makefile.am | 1 +
present/meson.build | 1 +
present/present_execute.c
Calculate damage before trying to flip and report it to the driver.
This allows supporting drivers to optimize their rendering.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present.h | 3 ++-
present/present_wnmd.c | 24 +---
2 files changed, 15 inse
To initialize easily different flip modes, refactor
'present_screen_init'.
Signed-off-by: Roman Gilg <subd...@gmail.com>
---
present/present_screen.c | 46 +-
1 file changed, 33 insertions(+), 13 deletions(-)
diff --git a/present/present_scre
1 - 100 of 133 matches
Mail list logo