[vlc-devel] [PATCH 1/2] d3d11_fmt: don't use WARP devices at all

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


It just adds confusion between hardware decoders and the display and adds
nothing useful.

Fixes #18923
---
 modules/video_chroma/d3d11_fmt.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.h b/modules/video_chroma/d3d11_fmt.h
index 2483922934..950e274d81 100644
--- a/modules/video_chroma/d3d11_fmt.h
+++ b/modules/video_chroma/d3d11_fmt.h
@@ -193,7 +193,6 @@ static inline HRESULT D3D11_CreateDevice(vlc_object_t *obj, HINSTANCE hdecoder_d
 
     static const D3D_DRIVER_TYPE driverAttempts[] = {
         D3D_DRIVER_TYPE_HARDWARE,
-        D3D_DRIVER_TYPE_WARP,
 #if 0 /* ifndef NDEBUG */
         D3D_DRIVER_TYPE_REFERENCE,
 #endif
@@ -205,7 +204,7 @@ static inline HRESULT D3D11_CreateDevice(vlc_object_t *obj, HINSTANCE hdecoder_d
         D3D_FEATURE_LEVEL_9_3, D3D_FEATURE_LEVEL_9_2, D3D_FEATURE_LEVEL_9_1
     };
 
-    for (UINT driver = 0; driver < (hw_decoding?1:2); driver++) {
+    for (UINT driver = 0; driver < ARRAY_SIZE(driverAttempts); driver++) {
         D3D_FEATURE_LEVEL i_feature_level;
         hr = D3D11CreateDevice(NULL, driverAttempts[driver], NULL, creationFlags,
                     D3D11_features, ARRAY_SIZE(D3D11_features), D3D11_SDK_VERSION,
-- 
2.14.2



More information about the vlc-devel mailing list