summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorLongChair <longchair@hotmail.com>2018-03-17 08:21:56 +0100
committerJan Ekström <jeebjp@gmail.com>2018-05-01 20:48:02 +0300
commit49bc07faea5f3c621eed437fadf68653b4b2498b (patch)
tree4d29c3655bd56ba9a6687445947203dff29c7178 /libmpv
parent9f2970f28a28076897fda1100de2b6eb9a92be79 (diff)
downloadmpv-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 'libmpv')
-rw-r--r--libmpv/opengl_cb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpv/opengl_cb.h b/libmpv/opengl_cb.h
index dd9ab2cf09..682068133a 100644
--- a/libmpv/opengl_cb.h
+++ b/libmpv/opengl_cb.h
@@ -177,6 +177,9 @@ struct mpv_opengl_cb_drm_params {
// currently used crtc id
int crtc_id;
+ // currently used connector id
+ int connector_id;
+
// pointer to the drmModeAtomicReq that is being used for the renderloop.
// This atomic request pointer should be usually created at every renderloop.
struct _drmModeAtomicReq *atomic_request;