[vlc-commits] dxva2: use a more generic build version to test for Intel HEVC support
    Steve Lhomme 
    git at videolan.org
       
    Thu Apr  5 08:47:02 CEST 2018
    
    
  
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr  5 08:44:02 2018 +0200| [682d0e20d4037be2049c5ad16970f722b7df8723] | committer: Steve Lhomme
dxva2: use a more generic build version to test for Intel HEVC support
We don't care about the WDDM versions, only the real driver version.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=682d0e20d4037be2049c5ad16970f722b7df8723
---
 modules/codec/avcodec/dxva2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index f8f7713e22..9131cdc8db 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -502,9 +502,9 @@ static bool CanUseIntelHEVC(vlc_va_t *va)
     vlc_va_sys_t *sys = va->sys;
     /* it should be OK starting after driver 20.19.15.4835 */
     struct wddm_version WDMM = {
-        .wddm         = 20,
-        .d3d_features = 19,
-        .revision     = 15,
+        .wddm         = 0,
+        .d3d_features = 0,
+        .revision     = 0,
         .build        = 4836,
     };
     if (D3D9CheckDriverVersion(&sys->hd3d, &sys->d3d_dev, GPU_MANUFACTURER_INTEL, &WDMM) == VLC_SUCCESS)
    
    
More information about the vlc-commits
mailing list