summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_drm_egl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-20 19:41:29 +0100
committerwm4 <wm4@nowhere>2016-01-20 19:41:29 +0100
commit68366b05f283d8f12f5602c74954e2ec986b2f50 (patch)
tree812859932e800bdabbfc3ab489cba889e4aaaee9 /video/out/opengl/context_drm_egl.c
parentca00e347fc8bf8c7ddfd45ef488180c49537e698 (diff)
downloadmpv-68366b05f283d8f12f5602c74954e2ec986b2f50.tar.bz2
mpv-68366b05f283d8f12f5602c74954e2ec986b2f50.tar.xz
vo_opengl: add KMS/DRM VAAPI hardware decoding interop
Just requires glueing it together with Bloat Super Glue (tm).
Diffstat (limited to 'video/out/opengl/context_drm_egl.c')
-rw-r--r--video/out/opengl/context_drm_egl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index 6cc5ef092b..e613fca38a 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -353,6 +353,9 @@ static int drm_egl_init(struct MPGLContext *ctx, int flags)
void *(*gpa)(const GLubyte*) = (void *(*)(const GLubyte*))eglGetProcAddress;
mpgl_load_functions(ctx->gl, gpa, egl_exts, ctx->vo->log);
+ ctx->native_display_type = "drm";
+ ctx->native_display = (void *)(intptr_t)p->kms->fd;
+
// required by gbm_surface_lock_front_buffer
eglSwapBuffers(p->egl.display, p->egl.surface);