-
Notifications
You must be signed in to change notification settings - Fork 111
[Wayland] Direct scanout #744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Sunderland93
wants to merge
27
commits into
linuxmint:master
Choose a base branch
from
Sunderland93:wayland_direct_scanout
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2c6918f
wayland/surface: Put buffer reference on heap
Sunderland93 0f28967
drm-buffer/gbm: Support both surface and standalone buffers
Sunderland93 efae29f
window/x11: Use G_DECLARE_DERIVABLE_TYPE()
Sunderland93 fae6a93
surface-actor-x11: Move window related unredirect logic to MetaWindowX11
Sunderland93 469ddbb
clutter/actor: Add semi-private API to check for transitions
Sunderland93 c6a98b3
wayland: Make MetaWaylandBufferRef reference counted
Sunderland93 09066db
wayland/buffer-ref: Add helpers for use count tracking
Sunderland93 b9839b6
cogl/onscreen: Add API to scanout a buffer directly
Sunderland93 6f5cddb
clutter/view: Make it possible to assign a temporary direct scanout
Sunderland93 d054eb2
renderer/native: Add API to get primary GPU
Sunderland93 ba9706c
onscreen/native: Add API to check whether buffer is scanout compatible
Sunderland93 d65bb64
wayland/dma-buf: Don't advertise modifier support by default
Sunderland93 3236dd2
wayland/dma-buf: Handle getting dma-buf from detached buffer handle
Sunderland93 d8481e0
wayland: Add API to acquire a CoglScanout from a surface
Sunderland93 f0de49a
util: Move MetaLater to its own file
Sunderland93 6056fb6
display: Initialize MetaCompositor in two steps
Sunderland93 58ffc4e
later: Make MetaCompositor the owner of the MetaLaters state
Sunderland93 f48bc60
later: Listen to MetaCompositor signal instead of clutter
Sunderland93 88e6bda
compositor: Add support for direct scanout of Wayland surfaces
Sunderland93 bfd97cb
debian: update symbols for libmuffin0
Sunderland93 3b066b3
Fix build
Sunderland93 d895b01
Fix build
Sunderland93 3c9b5c7
wayland/dma-buf: Handle failing to import scanout DMA buffer
Sunderland93 05b81e6
Use custom page flip function when retrying failed flips
Sunderland93 4863480
backends: force enable modifiers on tagged devices
Sunderland93 76854a0
add missing systemd-dev dependency
Sunderland93 bbfa8ec
compositor/native: fix parent class
Sunderland93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Copyright (C) 2019 Red Hat Inc. | ||
| * | ||
| * This library is free software; you can redistribute it and/or | ||
| * modify it under the terms of the GNU Lesser General Public | ||
| * License as published by the Free Software Foundation; either | ||
| * version 2 of the License, or (at your option) any later version. | ||
| * | ||
| * This library is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| * Lesser General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Lesser General Public | ||
| * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| #include "cogl-config.h" | ||
|
|
||
| #include "cogl-scanout.h" | ||
|
|
||
| G_DEFINE_INTERFACE (CoglScanout, cogl_scanout, G_TYPE_OBJECT) | ||
|
|
||
| static void | ||
| cogl_scanout_default_init (CoglScanoutInterface *iface) | ||
| { | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| * Copyright (C) 2019 Red Hat Inc. | ||
| * | ||
| * This library is free software; you can redistribute it and/or | ||
| * modify it under the terms of the GNU Lesser General Public | ||
| * License as published by the Free Software Foundation; either | ||
| * version 2 of the License, or (at your option) any later version. | ||
| * | ||
| * This library is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| * Lesser General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Lesser General Public | ||
| * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| #ifndef COGL_SCANOUT_H | ||
| #define COGL_SCANOUT_H | ||
|
|
||
| #include "cogl/cogl-types.h" | ||
|
|
||
| #include <glib-object.h> | ||
|
|
||
| #define COGL_TYPE_SCANOUT (cogl_scanout_get_type ()) | ||
| COGL_EXPORT | ||
| G_DECLARE_INTERFACE (CoglScanout, cogl_scanout, | ||
| COGL, SCANOUT, GObject) | ||
|
|
||
| struct _CoglScanoutInterface | ||
| { | ||
| GTypeInterface parent_iface; | ||
| }; | ||
|
|
||
| #endif /* COGL_SCANOUT_H */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| DRIVER=="tegra-host1x", SUBSYSTEM=="platform", TAG+="muffin-device-requires-kms-modifiers" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| usr/lib/*/libmuffin.so.* | ||
| usr/lib/*/muffin/*.so.* | ||
| usr/lib/udev/rules.d/61-muffin.rules | ||
| usr/libexec/muffin-restart-helper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not checked or freed in dispose()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
next_scanoutdoes not need to be released inclutter_stage_view_dispose()becauseClutterStageViewdoes not own it at disposal time. By the timedispose()runs,next_scanoutis guaranteed to be either NULL or no longer owned by the stage view.