[vlc-devel] [PATCH 04/12] direct3d11: make sure the device created supports HW decoding for opaque inputs
Steve Lhomme
robux4 at gmail.com
Fri Apr 28 17:46:18 CEST 2017
From: Steve Lhomme <robux4 at videolabs.io>
---
modules/video_output/win32/direct3d11.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index f3cbd62b5d..2593160b4f 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1517,6 +1517,9 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
}
# endif
+ if (is_d3d11_opaque(fmt->i_chroma))
+ creationFlags |= D3D11_CREATE_DEVICE_VIDEO_SUPPORT;
+
DXGI_SWAP_CHAIN_DESC1 scd;
memset(&scd, 0, sizeof(scd));
scd.BufferCount = 2;
--
2.12.1
More information about the vlc-devel
mailing list