diff options
author | LongChair <longchair@hotmail.com> | 2018-04-29 17:46:23 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-05-01 20:48:02 +0300 |
commit | ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef (patch) | |
tree | a7464c8db4f154423ee148c2c6e08f047b41a762 /video/out/vo_drm.c | |
parent | 49bc07faea5f3c621eed437fadf68653b4b2498b (diff) | |
download | mpv-ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef.tar.bz2 mpv-ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef.tar.xz |
drm/atomic: refactor planes names
We are currently using primary / overlay planes drm objects, assuming that primary plane is osd and overlay plane is video.
This commit is doing two things :
- replace the primary / overlay planes members with osd and video planes member without the assumption
- Add two more options to determine which one of the primary / overlay is associated to osd / video.
- It will default osd to overlay and video to primary if unspecified
Diffstat (limited to 'video/out/vo_drm.c')
-rw-r--r-- | video/out/vo_drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index b25f036256..ed41d2aab0 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -420,7 +420,8 @@ static int preinit(struct vo *vo) p->kms = kms_create( vo->log, vo->opts->drm_opts->drm_connector_spec, vo->opts->drm_opts->drm_mode_id, - vo->opts->drm_opts->drm_overlay_id); + vo->opts->drm_opts->drm_osd_plane_id, + vo->opts->drm_opts->drm_video_plane_id); if (!p->kms) { MP_ERR(vo, "Failed to create KMS.\n"); goto err; |