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

Steve Lhomme git at videolan.org
Tue Feb 12 08:33:41 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb 12 08:01:33 2019 +0100| [2fbea81725c42a5305c5cd213359a08eaed800b4] | 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=2fbea81725c42a5305c5cd213359a08eaed800b4
---

 modules/video_output/win32/direct3d11.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 1fe7d41a79..e313c8c3c8 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,
+        .revision     = 162, // 17.5.1 - 2017/05/04
     };
     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,
+            .revision     = 14011, // 18.10.2 - 2018/06/11
         };
         return D3D11CheckDriverVersion(&vd->sys->d3d_dev, GPU_MANUFACTURER_AMD, &WDDM) != VLC_SUCCESS;
     }



More information about the vlc-commits mailing list