From 49bc07faea5f3c621eed437fadf68653b4b2498b Mon Sep 17 00:00:00 2001 From: LongChair Date: Sat, 17 Mar 2018 08:21:56 +0100 Subject: 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. --- video/out/drm_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/drm_common.c') 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; -- cgit v1.2.3