vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Thu Apr  5 
08:44:02 2018 +0200| [cfbd43f7ee9c7df4a73842a85ab181839c1f64ec] | committer: 
Jean-Baptiste Kempf

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.

(cherry picked from commit 682d0e20d4037be2049c5ad16970f722b7df8723)
Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

 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)

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to