mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
fef5753a19
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 |
||
---|---|---|
.. | ||
dbus-utils.c | ||
dbus-utils.h | ||
gen-default-modes.py | ||
meta-backend-native-private.h | ||
meta-backend-native-types.h | ||
meta-backend-native.c | ||
meta-backend-native.h | ||
meta-barrier-native.c | ||
meta-barrier-native.h | ||
meta-clutter-backend-native.c | ||
meta-clutter-backend-native.h | ||
meta-crtc-kms.c | ||
meta-crtc-kms.h | ||
meta-cursor-renderer-native.c | ||
meta-cursor-renderer-native.h | ||
meta-drm-buffer-dumb.c | ||
meta-drm-buffer-dumb.h | ||
meta-drm-buffer-gbm.c | ||
meta-drm-buffer-gbm.h | ||
meta-drm-buffer.c | ||
meta-drm-buffer.h | ||
meta-gpu-kms.c | ||
meta-gpu-kms.h | ||
meta-input-settings-native.c | ||
meta-input-settings-native.h | ||
meta-kms-device.c | ||
meta-kms-device.h | ||
meta-kms-impl-device.c | ||
meta-kms-impl-device.h | ||
meta-kms-impl-simple.c | ||
meta-kms-impl-simple.h | ||
meta-kms-impl.c | ||
meta-kms-impl.h | ||
meta-kms-private.h | ||
meta-kms-types.h | ||
meta-kms.c | ||
meta-kms.h | ||
meta-launcher.c | ||
meta-launcher.h | ||
meta-monitor-manager-kms.c | ||
meta-monitor-manager-kms.h | ||
meta-output-kms.c | ||
meta-output-kms.h | ||
meta-renderer-native-gles3.c | ||
meta-renderer-native-gles3.h | ||
meta-renderer-native.c | ||
meta-renderer-native.h | ||
meta-stage-native.c | ||
meta-stage-native.h | ||
meta-udev.c | ||
meta-udev.h |