summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2021-01-22 23:07:38 +0200
committersfan5 <sfan5@live.de>2021-10-25 20:37:03 +0200
commitf56043759494dd584c8d82e7890f92fada18e34b (patch)
tree367d00e4b23f53d76a4229b42a69b1a960f4f4af /video/out/drm_common.h
parente6cf918eb8ba3e6892f7d22a6bbcbbae3e6b5bf5 (diff)
downloadmpv-f56043759494dd584c8d82e7890f92fada18e34b.tar.bz2
mpv-f56043759494dd584c8d82e7890f92fada18e34b.tar.xz
drm_common: enable specific device selection by means of path
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r--video/out/drm_common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h
index e11d240dca..5aa3681ea8 100644
--- a/video/out/drm_common.h
+++ b/video/out/drm_common.h
@@ -47,6 +47,7 @@ struct vt_switcher {
};
struct drm_opts {
+ char *drm_device_path;
char *drm_connector_spec;
char *drm_mode_spec;
int drm_atomic;
@@ -80,7 +81,9 @@ void vt_switcher_acquire(struct vt_switcher *s, void (*handler)(void*),
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,
+struct kms *kms_create(struct mp_log *log,
+ const char *drm_device_path,
+ const char *connector_spec,
const char *mode_spec,
int draw_plane, int drmprime_video_plane,
bool use_atomic);