[vlc-devel] [PATCH 05/12] direct3d11: make sure the decoder pool format supports decoder output

Steve Lhomme robux4 at gmail.com
Fri Apr 28 17:46:19 CEST 2017


From: Steve Lhomme <robux4 at videolabs.io>

---
 modules/video_output/win32/direct3d11.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 2593160b4f..d41e1a02e5 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -582,6 +582,8 @@ static const d3d_format_t *GetOutputFormat(vout_display_t *vd, vlc_fourcc_t i_sr
     UINT i_quadSupportFlags = D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_SHADER_LOAD;
     if (blendable)
         i_quadSupportFlags |= D3D11_FORMAT_SUPPORT_BLENDABLE;
+    if (b_allow_opaque && is_d3d11_opaque(i_src_chroma))
+        i_quadSupportFlags |= D3D11_FORMAT_SUPPORT_DECODER_OUTPUT;
 
     for (const d3d_format_t *output_format = GetRenderFormatList();
          output_format->name != NULL; ++output_format)
-- 
2.12.1



More information about the vlc-devel mailing list