[vlc-devel] [PATCH 3/3] d3d11_fmt: log when we decide not to use a D3D11 device

Steve Lhomme robux4 at videolabs.io
Tue Oct 17 14:20:10 CEST 2017


---
 modules/video_chroma/d3d11_fmt.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_chroma/d3d11_fmt.h b/modules/video_chroma/d3d11_fmt.h
index 963c54abf0..1c5971d7c7 100644
--- a/modules/video_chroma/d3d11_fmt.h
+++ b/modules/video_chroma/d3d11_fmt.h
@@ -209,8 +209,10 @@ static inline HRESULT D3D11_CreateDevice(vlc_object_t *obj, HINSTANCE hdecoder_d
                     (void *)*pp_d3ddevice, (void *)*pp_d3dcontext,
                     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 )
                 break;
+            msg_Dbg(obj, "Incompatible feature level");
             ID3D11DeviceContext_Release(*pp_d3dcontext);
             *pp_d3dcontext = NULL;
             ID3D11Device_Release(*pp_d3ddevice);
-- 
2.14.2



More information about the vlc-devel mailing list