summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-03-07 19:53:24 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-03-10 15:49:55 -0800
commit8ff09f32176c457e6350621cd61d0cabf7e160df (patch)
tree6d73b588090e2b7be6e624b18f8b41db74b33769 /video/out/opengl/hwdec.c
parentd54b60c63d4fae913224d366a1e0c0701a1a2e5a (diff)
downloadmpv-8ff09f32176c457e6350621cd61d0cabf7e160df.tar.bz2
mpv-8ff09f32176c457e6350621cd61d0cabf7e160df.tar.xz
vo_opengl: add dxva2 interop to angle backend
Like dxinterop, this uses StretchRect or RGB conversion. This is unavoidable as long as we use the dxva2 API, as there is no way to access the raw hardware decoded Direct3D9 surfaces.
Diffstat (limited to 'video/out/opengl/hwdec.c')
-rw-r--r--video/out/opengl/hwdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec.c b/video/out/opengl/hwdec.c
index 300197ac00..b58af9bae9 100644
--- a/video/out/opengl/hwdec.c
+++ b/video/out/opengl/hwdec.c
@@ -28,6 +28,7 @@ extern const struct gl_hwdec_driver gl_hwdec_vaegl;
extern const struct gl_hwdec_driver gl_hwdec_vaglx;
extern const struct gl_hwdec_driver gl_hwdec_videotoolbox;
extern const struct gl_hwdec_driver gl_hwdec_vdpau;
+extern const struct gl_hwdec_driver gl_hwdec_dxva2egl;
extern const struct gl_hwdec_driver gl_hwdec_dxva2gldx;
extern const struct gl_hwdec_driver gl_hwdec_dxva2;
@@ -45,6 +46,9 @@ static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = {
&gl_hwdec_videotoolbox,
#endif
#if HAVE_DXVA2_HWACCEL
+#if HAVE_EGL_ANGLE
+ &gl_hwdec_dxva2egl,
+#endif
#if HAVE_GL_DXINTEROP
&gl_hwdec_dxva2gldx,
#endif