[vlc-devel] [PATCH 2/2] d3d11_fmt: allow using level Direct3d11 11.0 rather than 11.1

Steve Lhomme robux4 at videolabs.io
Fri Oct 27 13:03:52 CEST 2017


It will work on Win8+ and will not be used on Win7 (unless forced).

On Win7 using D3D11 means displaying in RGBA rather than NV12 even with a
modern GPU and involves some extra conversion. So it's less efficient than
Direct3D9.
---
 modules/video_chroma/d3d11_fmt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d11_fmt.h b/modules/video_chroma/d3d11_fmt.h
index 950e274d81..abd55eb210 100644
--- a/modules/video_chroma/d3d11_fmt.h
+++ b/modules/video_chroma/d3d11_fmt.h
@@ -216,7 +216,7 @@ static inline HRESULT D3D11_CreateDevice(vlc_object_t *obj, HINSTANCE hdecoder_d
                     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_1 )
+            if ( obj->obj.force || i_feature_level >= D3D_FEATURE_LEVEL_11_0 )
                 break;
             msg_Dbg(obj, "Incompatible feature level %x", i_feature_level);
             ID3D11DeviceContext_Release(p_hd3d11->d3dcontext);
-- 
2.14.2



More information about the vlc-devel mailing list