mutter/src/backends/native
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
..
dbus-utils.c
dbus-utils.h
gen-default-modes.py
meta-backend-native-private.h
meta-backend-native-types.h udev: Add helpers to list DRM devices 2019-06-20 13:31:55 +00:00
meta-backend-native.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-backend-native.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-barrier-native.c Use a consistent style for enum braces 2019-02-28 09:31:01 +01:00
meta-barrier-native.h
meta-clutter-backend-native.c
meta-clutter-backend-native.h
meta-crtc-kms.c backends/native: Move underscan setting to MetaOutputKms 2019-04-02 09:38:45 +00:00
meta-crtc-kms.h backends/native: Move underscan setting to MetaOutputKms 2019-04-02 09:38:45 +00:00
meta-cursor-renderer-native.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-cursor-renderer-native.h
meta-drm-buffer-dumb.c drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer-dumb.h drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer-gbm.c drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer-gbm.h drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer.c drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer.h drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-gpu-kms.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-gpu-kms.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-input-settings-native.c
meta-input-settings-native.h
meta-kms-device.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-device.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl-device.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl-device.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl-simple.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl-simple.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-private.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-types.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms.c backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-launcher.c launcher: Explicitly look up object path for seat 2019-05-21 16:43:09 +02:00
meta-launcher.h
meta-monitor-manager-kms.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-monitor-manager-kms.h backends/native: Move primary_gpu into MetaRendererNative 2019-01-13 10:30:44 +00:00
meta-output-kms.c backends/native: Move underscan setting to MetaOutputKms 2019-04-02 09:38:45 +00:00
meta-output-kms.h
meta-renderer-native-gles3.c
meta-renderer-native-gles3.h
meta-renderer-native.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-renderer-native.h backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-stage-native.c clutter: Add API to get the resource scale of an actor 2019-03-01 17:46:49 +00:00
meta-stage-native.h
meta-udev.c backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-udev.h backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00