[vlc-commits] direct3d11: only check the revision version of the AMD drivers

Steve Lhomme git at videolan.org
Tue Feb 12 08:14:11 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb 12 08:01:33 2019 +0100| [d0d438859575bae0cc94e227493657ec294be51f] | committer: Steve Lhomme

direct3d11: only check the revision version of the AMD drivers

No need to check the WDDM version or DirectX feature level

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

 modules/video_output/win32/direct3d11.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 1fe7d41a79..7040dbf8fb 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1506,10 +1506,7 @@ static bool CanUseTextureArray(vout_display_t *vd)
     return false;
 #else
     struct wddm_version WDDM = {
-        .wddm         = 22,
-        .d3d_features = 19,
         .revision     = 162,
-        .build        = 0,
     };
     if (D3D11CheckDriverVersion(&vd->sys->d3d_dev, GPU_MANUFACTURER_AMD, &WDDM) == VLC_SUCCESS)
         return true;
@@ -1540,10 +1537,7 @@ static bool BogusZeroCopy(vout_display_t *vd)
     case 0x15DD: // RX Vega 8/11 (Ryzen iGPU)
     {
         struct wddm_version WDDM = {
-            .wddm         = 0,
-            .d3d_features = 0,
             .revision     = 14011,
-            .build        = 0,
         };
         return D3D11CheckDriverVersion(&vd->sys->d3d_dev, GPU_MANUFACTURER_AMD, &WDDM) != VLC_SUCCESS;
     }



More information about the vlc-commits mailing list