summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-02-25 22:50:36 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2022-03-03 13:06:05 +0100
commit4b7671cf365e3fc421dcc55e070660dc42cf5793 (patch)
tree5fee46b6fab3507f43e22ed93017da8ff33666e2 /video/out
parentd4fc44e711aee61b34edb654587d6380abe39b05 (diff)
downloadmpv-4b7671cf365e3fc421dcc55e070660dc42cf5793.tar.bz2
mpv-4b7671cf365e3fc421dcc55e070660dc42cf5793.tar.xz
vo_gpu_next: expose EGLDisplay to pl_gpu
Straightforward and enables the import/export of dmabufs.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gpu_next/context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/gpu_next/context.c b/video/out/gpu_next/context.c
index 026cbe95fc..c24a7c197a 100644
--- a/video/out/gpu_next/context.c
+++ b/video/out/gpu_next/context.c
@@ -41,6 +41,9 @@
#if HAVE_GL
#include "video/out/opengl/context.h"
#include "video/out/opengl/ra_gl.h"
+# if HAVE_EGL
+#include <EGL/egl.h>
+# endif
#endif
#if HAVE_VULKAN
@@ -145,6 +148,10 @@ struct gpu_ctx *gpu_ctx_create(struct vo *vo, struct gl_video_opts *gl_opts)
pl_opengl_params(
.debug = ctx_opts->debug,
.allow_software = ctx_opts->allow_sw,
+# if HAVE_EGL
+ .egl_display = eglGetCurrentDisplay(),
+ .egl_context = eglGetCurrentContext(),
+# endif
)
);
if (!opengl)