mutter/src
Jonas Ådahl fef5753a19 backends/native: Add basic KMS abstraction building blocks
The intention with KMS abstraction is to hide away accessing the drm
functions behind an API that allows us to have different kind of KMS
implementations, including legacy non-atomic and atomic. The intention
is also that the code interacting with the drm device should be able to
be run in a different thread than the main thread. This means that we
need to make sure that all drm*() API usage must only occur from within
tasks that eventually can be run in the dedicated thread.

The idea here is that MetaKms provides a outward facing API other places
of mutter can use (e.g. MetaGpuKms and friends), while MetaKmsImpl is
an internal implementation that only gets interacted with via "tasks"
posted via the MetaKms object. These tasks will in the future
potentially be run on the dedicated KMS thread. Initially, we don't
create any new threads.

Likewise, MetaKmsDevice is a outward facing representation of a KMS
device, while MetaKmsImplDevice is the corresponding implementation,
which only runs from within the MetaKmsImpl tasks.

This commit only moves opening and closing the device to this new API,
while leaking the fd outside of the impl enclosure, effectively making
the isolation for drm*() calls pointless. This, however, is necessary to
allow gradual porting of drm interaction, and eventually the file
descriptor in MetaGpuKms will be removed. For now, it's harmless, since
everything still run in the main thread.

https://gitlab.gnome.org/GNOME/mutter/issues/548
https://gitlab.gnome.org/GNOME/mutter/merge_requests/525
2019-06-20 13:31:55 +00:00
..
backends backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
compositor compositor: Add "locate_pointer" vmethod 2019-06-05 09:34:39 +00:00
core window/wayland: Don't always use constrained size when unfullscreening 2019-06-13 16:40:57 +00:00
meta enum-types: Use @basename@ in header comment 2019-06-12 18:01:36 +02:00
tests backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
ui theme: Remove DEBUG_FILL_STRUCT 2019-05-27 17:14:25 -05:00
wayland xwayland: Fix build without <sys/random.h> 2019-06-20 12:37:18 +02:00
x11 x11-display: Handle mapped XIDs per type 2019-06-06 21:35:11 +00:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-marshal.list renderer-native: Add hardware presentation timing 2018-11-23 11:01:30 +00:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml fixed typo 2018-07-24 13:16:36 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml Fix typo in RemoteDesktop dbus api 2019-05-22 16:21:57 +02:00
org.gnome.Mutter.ScreenCast.xml org.gnome.Mutter.ScreenCast: Document what was added in API version 2 2019-02-26 13:39:11 +00:00