[vlc-devel] [PATCH] direct3d11: allow 9.3 support by default

Steve Lhomme robux4 at videolabs.io
Wed Nov 29 12:28:27 CET 2017


On Win7 by default we'll try D3D11 for hardware decoding and it will fail because
it doesn't support all 11.0 for decoding. But support with 9.3 should work and is
indeed supported when forced. Performance wise is should be similar to D3D9 as
D3D9 do some copying internally that we do explicitly in this case with D3D11.

D3D11 is already used when hardware decoding is not used on Win7.

Fixes #19140 with automatic setup.
---
 modules/video_chroma/d3d11_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 2d6e696c20..ecaa53e943 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -208,7 +208,7 @@ HRESULT D3D11_CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
                     driverAttempts[driver], i_feature_level);
 #endif
             /* we can work with legacy levels but only if forced */
-            if ( obj->obj.force || i_feature_level >= D3D_FEATURE_LEVEL_11_0 )
+            if ( obj->obj.force || i_feature_level >= D3D_FEATURE_LEVEL_9_3 )
                 break;
             msg_Dbg(obj, "Incompatible feature level %x", i_feature_level);
             ID3D11DeviceContext_Release(out->d3dcontext);
-- 
2.14.2



More information about the vlc-devel mailing list