summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-02-14 03:46:17 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-02-17 09:07:12 -0800
commit2d1f42089c31cd3238129303b13e1aa5ddfcfce2 (patch)
tree44ce8f27aafea244cbfd576c385cbc026d79184d /video/out/opengl/hwdec.c
parent084162d6fe9033cb3499a7013a2489a70e1aed93 (diff)
downloadmpv-2d1f42089c31cd3238129303b13e1aa5ddfcfce2.tar.bz2
mpv-2d1f42089c31cd3238129303b13e1aa5ddfcfce2.tar.xz
vo_opengl: dxinterop: add dxva2 passthrough
Use dxva2 surface to fill RGB IDirect3DSurface9 shared with opengl via DXRegisterObjectNV.
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 6afc9b6efd..3349c06f15 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_dxva2gldx;
extern const struct gl_hwdec_driver gl_hwdec_dxva2;
static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = {
@@ -43,6 +44,9 @@ static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = {
#if HAVE_VIDEOTOOLBOX_GL
&gl_hwdec_videotoolbox,
#endif
+#if HAVE_DXVA2_DXINTEROP
+ &gl_hwdec_dxva2gldx,
+#endif
#if HAVE_DXVA2_HWACCEL
&gl_hwdec_dxva2,
#endif