[vlc-commits] d3d11_fmt: allow using level Direct3d11 11.0 rather than 11.1

Steve Lhomme git at videolan.org
Fri Oct 27 17:53:47 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Oct 27 13:03:52 2017 +0200| [1e8a46564644c947251114be167adf1f1ca3b282] | committer: Jean-Baptiste Kempf

d3d11_fmt: allow using level Direct3d11 11.0 rather than 11.1

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.

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

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

 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 c8994535bf..a41a9c0631 100644
--- a/modules/video_chroma/d3d11_fmt.h
+++ b/modules/video_chroma/d3d11_fmt.h
@@ -209,7 +209,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(*pp_d3dcontext);



More information about the vlc-commits mailing list