diff options
author | LongChair <longchair@hotmail.com> | 2018-03-17 08:21:56 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-05-01 20:48:02 +0300 |
commit | 49bc07faea5f3c621eed437fadf68653b4b2498b (patch) | |
tree | 4d29c3655bd56ba9a6687445947203dff29c7178 /video/out/drm_common.c | |
parent | 9f2970f28a28076897fda1100de2b6eb9a92be79 (diff) | |
download | mpv-49bc07faea5f3c621eed437fadf68653b4b2498b.tar.bz2 mpv-49bc07faea5f3c621eed437fadf68653b4b2498b.tar.xz |
drm/atomic: add connector to atomic context
This patch adds
- DRM connector object to atomic context.
- fd property to the drm atomic object as well as a method to read blob type properties.
This allows to ensure that the proper connector is picked up, especially when specifying it
from the commandline, and also allows to make sure we're using the right one when embedding
with interop into an application.
Diffstat (limited to 'video/out/drm_common.c')
-rw-r--r-- | video/out/drm_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/drm_common.c b/video/out/drm_common.c index 8723f59bd3..e0b0581834 100644 --- a/video/out/drm_common.c +++ b/video/out/drm_common.c @@ -285,7 +285,8 @@ struct kms *kms_create(struct mp_log *log, const char *connector_spec, mp_verbose(log, "No DRM Atomic support found\n"); } else { mp_verbose(log, "DRM Atomic support found\n"); - kms->atomic_context = drm_atomic_create_context(kms->log, kms->fd, kms->crtc_id, overlay_id); + kms->atomic_context = drm_atomic_create_context(kms->log, kms->fd, kms->crtc_id, + kms->connector->connector_id, overlay_id); if (!kms->atomic_context) { mp_err(log, "Failed to create DRM atomic context\n"); goto err; |