summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_drm_egl.c
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2018-06-28 15:23:19 +0200
committersfan5 <sfan5@live.de>2019-05-04 14:17:11 +0200
commita776628d88cb6dab677ba8977d54861d24571c69 (patch)
treeade431e9ed65e686f9a3e44f873ef4875598e46e /video/out/opengl/context_drm_egl.c
parent23a324215b5aa9ea66a5d19fe7c5322c871eda64 (diff)
downloadmpv-a776628d88cb6dab677ba8977d54861d24571c69.tar.bz2
mpv-a776628d88cb6dab677ba8977d54861d24571c69.tar.xz
drm_common: Add option to toggle use of atomic modesetting
It is useful when debugging to be able to force atomic off, or as a workaround if atomic breaks for some user. Legacy modesetting is less likely to break by virtue of being a less complex API.
Diffstat (limited to 'video/out/opengl/context_drm_egl.c')
-rw-r--r--video/out/opengl/context_drm_egl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index d015eaa87e..f8360d3e62 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -766,7 +766,8 @@ static bool drm_egl_init(struct ra_ctx *ctx)
p->kms = kms_create(ctx->log, ctx->vo->opts->drm_opts->drm_connector_spec,
ctx->vo->opts->drm_opts->drm_mode_id,
ctx->vo->opts->drm_opts->drm_draw_plane,
- ctx->vo->opts->drm_opts->drm_drmprime_video_plane);
+ ctx->vo->opts->drm_opts->drm_drmprime_video_plane,
+ ctx->vo->opts->drm_opts->drm_atomic);
if (!p->kms) {
MP_ERR(ctx, "Failed to create KMS.\n");
return false;