summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2021-07-22 18:59:54 -0500
committerDudemanguy <random342@airmail.cc>2021-07-23 17:54:58 +0000
commit747b1520012e6035c1f6746e20480f76e8f83918 (patch)
tree9e95d202cbd4bd0cbbbc3920e6a2ff3d2dead517
parent5ed0338eea505685e2beef36eec04fa9cb0f6d78 (diff)
downloadmpv-747b1520012e6035c1f6746e20480f76e8f83918.tar.bz2
mpv-747b1520012e6035c1f6746e20480f76e8f83918.tar.xz
context_drm_egl: allow autoprobe selection
This was explictly coded to avoid the autoprobe way back when in 2015[1] with no real explanation. In theory, there shouldn't be any issues allowing this. If a user runs mpv in tty, this is probably what they actually want in most cases. Perhaps something strange happens on nvidia, but it should just fail anyway during the autoprobe. [1]: https://github.com/mpv-player/mpv/commit/f757163058c2e5c7136213b0f79923fcea34b71a
-rw-r--r--video/out/opengl/context_drm_egl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index 4bae27f1a7..6a74a841da 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -726,11 +726,6 @@ static void drm_egl_get_vsync(struct ra_ctx *ctx, struct vo_vsync_info *info)
static bool drm_egl_init(struct ra_ctx *ctx)
{
- if (ctx->opts.probing) {
- MP_VERBOSE(ctx, "DRM EGL backend can be activated only manually.\n");
- return false;
- }
-
struct priv *p = ctx->priv = talloc_zero(ctx, struct priv);
p->ev.version = DRM_EVENT_CONTEXT_VERSION;
p->ev.page_flip_handler = &drm_pflip_cb;