[vlc-commits] direct3d11: make sure the decoder pool format supports decoder output
Steve Lhomme
git at videolan.org
Tue May 2 10:13:13 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Apr 28 17:46:19 2017 +0200| [69842ee5fdedd4d5c78b90f0ce43cae71a309666] | committer: Jean-Baptiste Kempf
direct3d11: make sure the decoder pool format supports decoder output
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=69842ee5fdedd4d5c78b90f0ce43cae71a309666
---
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)
More information about the vlc-commits
mailing list