[vlc-commits] direct3d11: make sure the device created supports HW decoding for opaque inputs

Steve Lhomme git at videolan.org
Tue May 2 10:07:42 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Apr 28 17:46:18 2017 +0200| [19211699ac4d9c03489420a9d5e30ebc097cf948] | committer: Jean-Baptiste Kempf

direct3d11: make sure the device created supports HW decoding for opaque inputs

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19211699ac4d9c03489420a9d5e30ebc097cf948
---

 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;



More information about the vlc-commits mailing list