diff options
author | Anton Kindestam <antonki@kth.se> | 2018-06-28 15:23:19 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-05-04 14:17:11 +0200 |
commit | a776628d88cb6dab677ba8977d54861d24571c69 (patch) | |
tree | ade431e9ed65e686f9a3e44f873ef4875598e46e /video/out/drm_common.h | |
parent | 23a324215b5aa9ea66a5d19fe7c5322c871eda64 (diff) | |
download | mpv-a776628d88cb6dab677ba8977d54861d24571c69.tar.bz2 mpv-a776628d88cb6dab677ba8977d54861d24571c69.tar.xz |
drm_common: Add option to toggle use of atomic modesetting
It is useful when debugging to be able to force atomic off, or as a
workaround if atomic breaks for some user. Legacy modesetting is less
likely to break by virtue of being a less complex API.
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r-- | video/out/drm_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h index d9f086cd4e..f700e90ef5 100644 --- a/video/out/drm_common.h +++ b/video/out/drm_common.h @@ -48,6 +48,7 @@ struct vt_switcher { struct drm_opts { char *drm_connector_spec; int drm_mode_id; + int drm_atomic; int drm_draw_plane; int drm_drmprime_video_plane; int drm_format; @@ -65,7 +66,8 @@ void vt_switcher_release(struct vt_switcher *s, void (*handler)(void*), void *user_data); struct kms *kms_create(struct mp_log *log, const char *connector_spec, - int mode_id, int draw_plane, int drmprime_video_plane); + int mode_id, int draw_plane, int drmprime_video_plane, + bool use_atomic); void kms_destroy(struct kms *kms); double kms_get_display_fps(const struct kms *kms); |